]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: Drop sc_ prefix when adding checks to meson
authorAndrea Bolognani <abologna@redhat.com>
Mon, 23 May 2022 13:47:43 +0000 (15:47 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 24 May 2022 09:09:50 +0000 (11:09 +0200)
All checks are added to the syntax-check suite, and this name is
displayed prominently in the output of 'meson test', so there
really is no need to include the sc_ prefix too.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
build-aux/meson.build

index 96562a4f4a22ebe66c3d7341c196f31fff5fa395..fcd231a386fa2968567329ff47047fa95e709e71 100644 (file)
@@ -47,7 +47,7 @@ configure_file(
 
 rc = run_command(
   'sed', '-n',
-  's/^\\(sc_[a-zA-Z0-9_-]*\\):.*/\\1/p',
+  's/^sc_\\([a-zA-Z0-9_-]*\\):.*/\\1/p',
   meson.current_source_dir() / 'syntax-check.mk',
   check: true,
 )
@@ -62,7 +62,7 @@ if git
     test(
       target,
       make_prog,
-      args: [ '-C', meson.current_build_dir(), target ],
+      args: [ '-C', meson.current_build_dir(), 'sc_@0@'.format(target) ],
       depends: [
         potfiles_dep,
       ],