]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
src/meson: introduce srcdir and builddir into augeas_test_data dictionary
authorPavel Hrdina <phrdina@redhat.com>
Tue, 18 Aug 2020 13:36:55 +0000 (15:36 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 18 Aug 2020 14:35:47 +0000 (16:35 +0200)
This will be used later to specify different include directories for
augparse binary to run augeas tests.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/meson.build

index b1c9993bc06afd6f4445c5806db9f3bdad3fad88..96ec3e26757d216f01ceb484bc13524e9e73b943 100644 (file)
@@ -689,6 +689,8 @@ endforeach
 #   each entry is a dictionary with following items:
 #   * name: daemon name to run the test for (required)
 #   * file: test file to use (required)
+#   * srcdir: path to source dir with aug files (required)
+#   * builddir: path to build dir with aug files (required)
 augeas_test_data = []
 
 foreach data : virt_daemon_confs
@@ -753,7 +755,12 @@ foreach data : virt_daemon_confs
     install: true,
     install_dir: virt_test_aug_dir,
   )
-  augeas_test_data += { 'name': data['name'], 'file': augeas_test_file }
+  augeas_test_data += {
+    'name': data['name'],
+    'file': augeas_test_file,
+    'srcdir': meson.current_source_dir(),
+    'builddir': meson.current_build_dir(),
+  }
 endforeach
 
 
@@ -960,8 +967,8 @@ if augparse_prog.found()
       'check-augeas-@0@'.format(data['name']),
       augparse_prog,
       args: [
-        '-I', meson.current_source_dir(),
-        '-I', meson.current_build_dir(),
+        '-I', data['srcdir'],
+        '-I', data['builddir'],
         data['file'].full_path(),
       ],
     )