mirror of
https://github.com/clearlinux/clr-boot-manager.git
synced 2026-10-03 15:29:15 +00:00
We should not rely on these being present on the filesystem and the space we use is minimal. On top of that, we need at a later stage dynamically choose gpt or non-gpt MBR blocks depending on the device, so we need both available no matter what. Punch a hole so the bootloader can easily get the wanted_boot_mask and decide whether the GPT or non-GPT mbr.bin is needed.
43 lines
976 B
Meson
43 lines
976 B
Meson
# Each test must follow the convention: check-$name.c, i.e. "check-os-release.c"
|
|
desired_tests = [
|
|
'cmdline',
|
|
'core',
|
|
'grub2',
|
|
'legacy',
|
|
'os-release',
|
|
'probe',
|
|
'select-bootloader',
|
|
'syslinux',
|
|
'uefi',
|
|
]
|
|
|
|
test_dependencies = [
|
|
link_libcbm,
|
|
libcbm_dependencies,
|
|
dep_check,
|
|
]
|
|
|
|
# Shared sources between each test run
|
|
libtest_sources = [
|
|
'harness.c',
|
|
]
|
|
|
|
# Create a new executable for every given test in desired_tests
|
|
foreach test_name : desired_tests
|
|
tmp_exec = executable(
|
|
'test-@0@'.format(test_name),
|
|
sources: [
|
|
'check-@0@.c'.format(test_name),
|
|
] + libtest_sources,
|
|
dependencies: [
|
|
test_dependencies,
|
|
],
|
|
c_args: [
|
|
'-DTOP_BUILD_DIR="@0@/root/test-root-@1@"'.format(meson.current_build_dir(), test_name),
|
|
'-DTOP_DIR="@0@"'.format(test_top_dir),
|
|
],
|
|
install: false,
|
|
)
|
|
test(test_name, tmp_exec)
|
|
endforeach
|