-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autotest: meson build script clean up
unselected test were built and may failed if the corresponding feature is not available and/or not defined un devicetree (e.g. SHM)
- Loading branch information
1 parent
1ae1963
commit 1d26e31
Showing
6 changed files
with
55 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
# SPDX-FileCopyrightText: 2023-2024 Ledger SAS | ||
# SPDX-FileCopyrightText: 2023 - 2025 Ledger SAS | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
autotest_inc = include_directories('.') | ||
|
||
autotest_headerset.add( | ||
files( | ||
'testlib/assert.h', | ||
'testlib/log.h', | ||
) | ||
) | ||
|
||
devices_template_h = files(['devices-dt.h.in']) | ||
devices_dtsgen_h = dtsgen.process(devices_template_h) | ||
autotest_headerset.add(devices_dtsgen_h) | ||
|
||
shm_template_h = files(['shms-dt.h.in']) | ||
shm_dtsgen_h = dtsgen.process(shm_template_h) | ||
|
||
autotest_headers = files( | ||
'testlib/assert.h', | ||
'testlib/log.h', | ||
) | ||
autotest_headerset.add(when: 'CONFIG_TEST_SHM', if_true: shm_dtsgen_h) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,18 @@ | ||
# SPDX-FileCopyrightText: 2023 Ledger SAS | ||
# SPDX-FileCopyrightText: 2023 - 2025 Ledger SAS | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
# note: to avoid printf implementation redundancy, the kernel lexer for debug | ||
# print mode is used as-is | ||
autotest_sources = files( | ||
'main.c', | ||
'printf.c', | ||
'ssp.c', | ||
'tests/test_ipc.c', | ||
'tests/test_signal.c', | ||
'tests/test_handle.c', | ||
'tests/test_sleep.c', | ||
'tests/test_cycles.c', | ||
'tests/test_yield.c', | ||
'tests/test_random.c', | ||
'tests/test_gpio.c', | ||
'tests/test_map.c', | ||
'tests/test_shm.c', | ||
'tests/test_dma.c', | ||
'tests/test_irq.c', | ||
'../../kernel/src/managers/debug/log_lexer.c', | ||
|
||
autotest_sourceset.add( | ||
files( | ||
'main.c', | ||
'printf.c', | ||
'ssp.c', | ||
'../../kernel/src/managers/debug/log_lexer.c', | ||
) | ||
) | ||
|
||
subdir('arch') | ||
subdir('drivers') | ||
subdir('tests') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-FileCopyrightText: 2023 - 2025 Ledger SAS | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
autotest_sourceset.add(when: 'CONFIG_TEST_CYCLES', if_true: files('test_cycles.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_DMA', if_true: files('test_dma.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_GPIO', if_true: files('test_gpio.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_HANDLE', if_true: files('test_handle.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_IPC', if_true: files('test_ipc.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_IRQ', if_true: files('test_irq.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_MAP', if_true: files('test_map.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_RANDOM', if_true: files('test_random.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_SHM', if_true: files('test_shm.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_SIGNAL', if_true: files('test_signal.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_SLEEP', if_true: files('test_sleep.c')) | ||
autotest_sourceset.add(when: 'CONFIG_TEST_YIELD', if_true: files('test_yield.c')) |