meson: make each dmidecode a separate test

This allows them to be executed in parallel and also gives us
better reporting.

The dump files are renamed to avoid repeating "dmidecode-dump", since that
string is already present in the subdirectory name.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-12-17 09:21:29 +01:00
parent 68f18549c5
commit 2b7b142e97
7 changed files with 51 additions and 37 deletions
+17 -9
View File
@@ -184,15 +184,23 @@ if dmi_arches.contains(host_machine.cpu_family())
endif
foreach prog : udev_id_progs
executable(prog[0].split('/')[0],
prog,
include_directories : includes,
c_args : ['-DLOG_REALM=LOG_REALM_UDEV'],
dependencies : [versiondep],
link_with : udev_link_with,
install_rpath : udev_rpath,
install : true,
install_dir : udevlibexecdir)
name = prog[0].split('/')[0]
exe = executable(
name,
prog,
include_directories : includes,
c_args : ['-DLOG_REALM=LOG_REALM_UDEV'],
dependencies : [versiondep],
link_with : udev_link_with,
install_rpath : udev_rpath,
install : true,
install_dir : udevlibexecdir)
# TODO: let's use a dictionary instead as soon as we can depend on meson >= 0.47.
if name == 'dmi_memory_id'
dmi_memory_id_path = exe.full_path()
endif
endforeach
if install_sysconfdir