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_test_programs = [
'augparse',
'black',
'flake8',
'pdwtags',
'pytest',
]
optional_programs = [
'dmidecode',
'ebtables',
'flake8',
'ip',
'ip6tables',
'iptables',
@ -809,11 +814,9 @@ optional_programs = [
'mm-ctl',
'modprobe',
'ovs-vsctl',
'pdwtags',
'pytest',
'rmmod',
'tc',
]
] + optional_test_programs
foreach name : optional_programs
prog = find_program(name, required: false, dirs: libvirt_sbin_path)