]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: tests: add yajl specific tests
authorPavel Hrdina <phrdina@redhat.com>
Mon, 27 Jul 2020 09:41:16 +0000 (11:41 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:06 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
tests/Makefile.am
tests/meson.build

index 86e8c37583aa8b9abb6271cde81e434239045ff6..75201e1ebe187a76713319f440fb2a3f2fe22855 100644 (file)
@@ -20,10 +20,6 @@ if WITH_QEMU
 test_helpers += qemucapsprobe
 endif WITH_QEMU
 
-if WITH_YAJL
-test_programs += virjsontest
-endif WITH_YAJL
-
 if WITH_NSS
 test_helpers += nsslinktest nssguestlinktest
 endif WITH_NSS
@@ -71,10 +67,9 @@ file-access-clean:
        > test_file_access.txt
 endif WITH_LINUX
 
-noinst_PROGRAMS = $(test_programs) $(test_helpers)
+noinst_PROGRAMS = $(test_helpers)
 
-TESTS = $(test_programs) \
-       $(test_scripts)
+TESTS = $(test_scripts)
 
 VALGRIND = valgrind --quiet --leak-check=full --trace-children=yes \
        --trace-children-skip="*/tools/virsh","*/tests/commandhelper","/usr/bin/*" \
@@ -107,21 +102,3 @@ nssguestlinktest_CFLAGS = \
 nssguestlinktest_LDADD = ../tools/nss/libnss_libvirt_guest_impl.la
 nssguestlinktest_LDFLAGS = $(NULL)
 endif WITH_NSS
-
-if WITH_YAJL
-virmacmaptest_SOURCES = \
-       virmacmaptest.c testutils.h testutils.c
-virmacmaptest_LDADD = $(LDADDS)
-
-virnetdevopenvswitchtest_SOURCES = \
-       virnetdevopenvswitchtest.c testutils.h testutils.c
-virnetdevopenvswitchtest_LDADD = $(LDADDS)
-
-test_programs += \
-       virmacmaptest \
-       virnetdevopenvswitchtest
-endif WITH_YAJL
-
-virjsontest_SOURCES = \
-       virjsontest.c testutils.h testutils.c
-virjsontest_LDADD = $(LDADDS)
index 6f4fe84e280e5df215e8a073abf030ab04979376..edb07e339faaab69ea2436e5f520a5f02a62f035 100644 (file)
@@ -538,6 +538,14 @@ if conf.has('WITH_VMX')
   ]
 endif
 
+if conf.has('WITH_YAJL')
+  tests += [
+    { 'name': 'virjsontest' },
+    { 'name': 'virmacmaptest' },
+    { 'name': 'virnetdevopenvswitchtest' },
+  ]
+endif
+
 foreach data : tests
   test_sources = '@0@.c'.format(data['name'])
   test_bin = executable(