Files
MuditaOS/test/filesystem.cpp
Marcin Smoczyński 74ae1a6589 [EGD-7031] Remove UT deps to the production image
Remove dependency to the production image by creating separate sysroot
for test assets alongside with a test image Test.img.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-07-27 23:36:37 +02:00

18 lines
452 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <iosyscalls.hpp>
auto constexpr TESTS_SYSROOT = "test-sysroot";
auto constexpr IMAGE_NAME = "Test.img";
void __attribute__((constructor)) setup_sysroot()
{
iosyscalls_set_sysroot(TESTS_SYSROOT);
}
void __attribute__((constructor)) setup_disk_image()
{
iosyscalls_set_image_name(IMAGE_NAME);
}