mirror of
https://github.com/mudita/MuditaOS.git
synced 2025-12-23 22:17:57 -05:00
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>
18 lines
452 B
C++
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);
|
|
}
|