systemd/test/TEST-64-UDEV-STORAGE/meson.build
Daan De Meyer 5692f87160 test: Run TEST-64-UDEV-STORAGE with mkosi
We add a configure script for each subtest to add the required
qemu arguments.

Co-authored-by: Richard Maw <richard.maw@codethink.co.uk>
2024-05-14 12:43:28 +02:00

38 lines
1.3 KiB
Meson

# SPDX-License-Identifier: LGPL-2.1-or-later
name = fs.name(meson.current_source_dir())
unit = configure_file(
input : files('../test.service.in'),
output : '@0@.service'.format(name),
configuration : integration_test_template['configuration'],
)
foreach testcase : [
'btrfs_basic',
'iscsi_lvm',
'long_sysfs_path',
'lvm_basic',
'mdadm_basic',
'mdadm_lvm',
'megasas2_basic',
'multipath_basic_failover',
'nvme_basic',
'nvme_subsystem',
'simultaneous_events',
'virtio_scsi_identically_named_partitions',
]
integration_tests += [
integration_test_template + {
'name' : '@0@-@1@'.format(name, testcase),
# Make sure the service is still named TEST-64-UDEV-STORAGE.service.
'unit' : unit,
'cmdline' : integration_test_template['cmdline'] + [
'systemd.setenv=TEST_FUNCTION_NAME=testcase_@0@'.format(testcase)
],
'mkosi-args' : integration_test_template['mkosi-args'] + [
'--configure-script', files('@0@.configure'.format(testcase)),
],
},
]
endforeach