From 801e7c16742a29656ca5f7690a2486d5de49ab73 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Thu, 6 Oct 2022 11:00:31 +0200 Subject: meson: Move programmer test sources into programmer definition Move the definition of the programmer test source files into the dictionary defining the programmers itself. This way there is a better overview about which of the available programmers have tests and which don't. Also, to keep the tests working, iterate over all programmers and add their test source files to the list of sources that should be built. Signed-off-by: Felix Singer Change-Id: I307faaf8a9f7ae3c54bd96e7d871a3abb8aadea3 Reviewed-on: https://review.coreboot.org/c/flashrom/+/68162 Reviewed-by: Angel Pons Reviewed-by: Anastasia Klimchuk Tested-by: build bot (Jenkins) --- tests/meson.build | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/meson.build b/tests/meson.build index 66adb92bd..893cca889 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -19,15 +19,6 @@ test_srcs = files( 'flashrom.c', 'spi25.c', 'lifecycle.c', - 'dummyflasher.c', - 'nicrealtek.c', - 'raiden_debug_spi.c', - 'dediprog.c', - 'linux_mtd.c', - 'linux_spi.c', - 'parade_lspcon.c', - 'mediatek_i2c_spi.c', - 'realtek_mst_i2c_spi.c', 'layout.c', 'chip.c', 'chip_wp.c', @@ -37,6 +28,10 @@ if not programmer.get('dummy').get('active') test_srcs += programmer.get('dummy').get('srcs') endif +foreach p_name, p_data : programmer + test_srcs += p_data.get('test_srcs') +endforeach + mocks = [ '-Wl,--wrap=strdup', '-Wl,--wrap=physunmap', -- cgit v1.2.3