]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: also run compile tests for libudev.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Oct 2018 17:12:13 +0000 (02:12 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 3 Nov 2018 09:00:47 +0000 (18:00 +0900)
src/systemd/meson.build

index dde0aaf7819c932bcff9eeb49327a3bb2b42eaa4..e0c967efc575e77b5d3f8771bff558d4e564ff31 100644 (file)
@@ -65,11 +65,11 @@ if cxx.found()
         endif
 endif
 
-foreach header : _systemd_headers + _not_installed_headers
+foreach header : _systemd_headers + _not_installed_headers + ['../libudev/libudev.h']
         foreach opt : opts
-                name = ''.join([header, ':'] + opt)
+                name = ''.join(['cc-', header.split('/')[-1], ':'] + opt)
                 if want_tests != 'false'
-                        test('cc-' + name,
+                        test(name,
                              check_compilation_sh,
                              args : cc.cmd_array() + ['-c', '-x'] + opt +
                                     ['-Werror', '-include',