2024-05-11 20:22:10 +02:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2024-05-12 21:27:58 +02:00
name = fs . name ( meson . current_source_dir ( ) )
unit = configure_file (
input : files ( '../test.service.in' ) ,
output : '@0@.service' . format ( name ) ,
2024-05-31 16:29:00 +09:00
# Disable user service manager by default for performance.
configuration : integration_test_template [ 'configuration' ] + {
'wants' : '' ,
'after' : '' ,
} ,
2024-05-12 21:27:58 +02:00
)
foreach testcase : [
'btrfs_basic' ,
'iscsi_lvm' ,
'long_sysfs_path' ,
'lvm_basic' ,
'mdadm_basic' ,
'mdadm_lvm' ,
'multipath_basic_failover' ,
'nvme_basic' ,
'nvme_subsystem' ,
'simultaneous_events' ,
2024-05-28 14:08:18 +02:00
'virtio_scsi_basic' ,
2024-05-12 21:27:58 +02:00
'virtio_scsi_identically_named_partitions' ,
2024-05-11 20:22:10 +02:00
]
2024-05-12 21:27:58 +02:00
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 ) ) ,
] ,
2024-05-15 07:27:00 +02:00
'priority' : 10 ,
2024-05-28 15:54:35 +02:00
'vm' : true ,
2024-12-07 13:36:39 +09:00
# Suppress ASan error
# 'multipathd[1820]: ==1820==ERROR: AddressSanitizer: Joining already joined thread, aborting.'
'sanitizer-exclude-regex' : 'multipathd'
2024-05-12 21:27:58 +02:00
} ,
]
endforeach