build: Split optional programs into test and rest

To be used in the following commit.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Martin Kletzander 2024-02-19 10:23:27 +01:00
parent 9bf50bd99d
commit ece58c0a5d

View File

@ -795,12 +795,17 @@ endforeach
# optional programs # optional programs
optional_programs = [ optional_test_programs = [
'augparse', 'augparse',
'black', 'black',
'flake8',
'pdwtags',
'pytest',
]
optional_programs = [
'dmidecode', 'dmidecode',
'ebtables', 'ebtables',
'flake8',
'ip', 'ip',
'ip6tables', 'ip6tables',
'iptables', 'iptables',
@ -809,11 +814,9 @@ optional_programs = [
'mm-ctl', 'mm-ctl',
'modprobe', 'modprobe',
'ovs-vsctl', 'ovs-vsctl',
'pdwtags',
'pytest',
'rmmod', 'rmmod',
'tc', 'tc',
] ] + optional_test_programs
foreach name : optional_programs foreach name : optional_programs
prog = find_program(name, required: false, dirs: libvirt_sbin_path) prog = find_program(name, required: false, dirs: libvirt_sbin_path)