]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: set suite for all tests, and adjust suite for some tests 28628/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 26 Jun 2023 16:28:32 +0000 (01:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 Aug 2023 11:37:16 +0000 (20:37 +0900)
meson.build
src/ukify/test/meson.build
test/meson.build

index cf217c1bf0f711b649078b16f08389e6706be217..9d10d76d9f9f151dab0643e4ded2301c369b8c08 100644 (file)
@@ -2712,7 +2712,8 @@ foreach dict : modules
                      test_dlopen,
                      # path to dlopen must include a slash
                      args : lib.full_path(),
-                     depends : lib)
+                     depends : lib,
+                     suite : is_nss ? 'nss' : 'pam')
         endif
 endforeach
 
@@ -2888,7 +2889,8 @@ if git.found()
                         test('check-includes',
                              files('tools/check-includes.py'),
                              args: all_files,
-                             env : ['PROJECT_SOURCE_ROOT=@0@'.format(project_source_root)])
+                             env : ['PROJECT_SOURCE_ROOT=@0@'.format(project_source_root)],
+                             suite : 'headers')
                 endif
         endif
 
index e78e76c673cec6a44983492490f04a6d779d5ae7..5870ccc06ccca1c2c42d0a67398a625482aeea25 100644 (file)
@@ -15,5 +15,6 @@ if want_ukify and want_tests != 'false'
         test('test-ukify',
              files('test_ukify.py'),
              args: args,
-             env : test_env)
+             env : test_env,
+             suite : 'ukify')
 endif
index 59d9a63a11d373532e3460e3aad017ae1ea3a47a..97ec7ee5c5ff31e21bc9692f62b999c8ab7da5c8 100644 (file)
@@ -63,7 +63,8 @@ if conf.get('ENABLE_SYSUSERS') == 1
                      test_sysusers_sh,
                      # https://github.com/mesonbuild/meson/issues/2681
                      args : exe.full_path(),
-                     depends : exe)
+                     depends : exe,
+                     suite : 'sysusers')
 
                 if have_standalone_binaries
                         exe = executables_by_name.get('systemd-sysusers.standalone')
@@ -71,7 +72,8 @@ if conf.get('ENABLE_SYSUSERS') == 1
                              test_sysusers_sh,
                              # https://github.com/mesonbuild/meson/issues/2681
                              args : exe.full_path(),
-                             depends : exe)
+                             depends : exe,
+                             suite : 'sysusers')
                 endif
         endif
 
@@ -108,7 +110,8 @@ if want_tests != 'false'
              # https://github.com/mesonbuild/meson/issues/2681
              args : [systemctl.full_path(),
                      systemd_id128.full_path()],
-             depends : [systemctl, systemd_id128])
+             depends : [systemctl, systemd_id128],
+             suite : 'systemctl')
 endif
 
 ############################################################
@@ -118,7 +121,8 @@ if want_tests != 'false' and conf.get('HAVE_SYSV_COMPAT') == 1
         exe = executables_by_name.get('systemd-sysv-generator')
         test('sysv-generator-test',
              sysv_generator_test_py,
-             depends : exe)
+             depends : exe,
+             suite : 'sysv')
 endif
 
 ############################################################
@@ -129,7 +133,8 @@ if want_tests != 'false' and conf.get('HAVE_BLKID') == 1 and conf.get('ENABLE_BO
         test('test-bootctl-json',
              test_bootctl_json_sh,
              args : exe.full_path(),
-             depends : exe)
+             depends : exe,
+             suite : 'boot')
 endif
 
 ############################################################
@@ -140,14 +145,16 @@ if want_tests != 'false' and conf.get('ENABLE_TMPFILES') == 1
         test('test-systemd-tmpfiles',
              test_systemd_tmpfiles_py,
              args : exe.full_path(),
-             depends : exe)
+             depends : exe,
+             suite : 'tmpfiles')
 
         if have_standalone_binaries
                 exe = executables_by_name.get('systemd-tmpfiles.standalone')
                 test('test-systemd-tmpfiles.standalone',
                      test_systemd_tmpfiles_py,
                      args : exe.full_path(),
-                     depends : exe)
+                     depends : exe,
+                     suite : 'tmpfiles')
         endif
 endif
 
@@ -159,7 +166,8 @@ if want_tests != 'false'
         test('test-compare-versions',
              test_compare_versions_sh,
              args : exe.full_path(),
-             depends : exe)
+             depends : exe,
+             suite : 'test')
 endif
 if install_tests
         install_data(test_compare_versions_sh,
@@ -178,7 +186,7 @@ if want_tests != 'false'
         exe = executables_by_name.get('udevadm')
         test('udev-rules-check',
              exe,
-             suite : 'dist',
+             suite : 'udev',
              args : ['verify', '--resolve-names=never', all_rules])
 endif
 
@@ -200,7 +208,8 @@ if want_tests != 'false'
              # https://github.com/mesonbuild/meson/issues/2681
              args : exe.full_path(),
              env : test_env,
-             depends : exe)
+             depends : exe,
+             suite : 'fstab')
 endif
 if install_tests
         install_data('test-fstab-generator.sh',
@@ -217,7 +226,8 @@ if want_tests != 'false'
              test_network_generator_conversion_sh,
              # https://github.com/mesonbuild/meson/issues/2681
              args : exe.full_path(),
-             depends : exe)
+             depends : exe,
+             suite : 'network')
 endif
 if install_tests
         install_data('test-network-generator-conversion.sh',
@@ -236,7 +246,8 @@ if want_tests != 'false'
              args : ['-v'],
              env : ['UDEV_RULE_RUNNER=' + exe.full_path()],
              depends : exe,
-             timeout : 180)
+             timeout : 180,
+             suite : 'udev')
 endif
 if install_tests
         install_data(
@@ -284,7 +295,7 @@ if want_tests != 'false' and conf.get('HAVE_DMI') == 1
                 source = project_source_root / p
                 test('dmidecode_' + fs.stem(p),
                      udev_dmi_memory_id_test,
-                     suite : 'dist',
+                     suite : 'udev',
                      args : [exe.full_path(),
                              source,
                              source + '.txt'],
@@ -307,5 +318,6 @@ if want_tests != 'false' and conf.get('ENABLE_KERNEL_INSTALL') == 1
              test_kernel_install_sh,
              env : test_env,
              args : args,
-             depends : deps)
+             depends : deps,
+             suite : 'kernel-install')
 endif