summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-10-06 11:00:31 +0200
committerFelix Singer <felixsinger@posteo.net>2022-11-11 15:02:01 +0000
commit801e7c16742a29656ca5f7690a2486d5de49ab73 (patch)
tree7a57bbd1c224c94e33abc41ba22a371de6e6898f /tests
parent3bba710d98b60eba7ebbae0869fd58f7dc987afd (diff)
downloadflashrom-801e7c16742a29656ca5f7690a2486d5de49ab73.tar.gz
flashrom-801e7c16742a29656ca5f7690a2486d5de49ab73.tar.bz2
flashrom-801e7c16742a29656ca5f7690a2486d5de49ab73.zip
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 <felixsinger@posteo.net> Change-Id: I307faaf8a9f7ae3c54bd96e7d871a3abb8aadea3 Reviewed-on: https://review.coreboot.org/c/flashrom/+/68162 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/meson.build13
1 files changed, 4 insertions, 9 deletions
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',