From: Pavel Hrdina Date: Mon, 27 Jul 2020 09:41:16 +0000 (+0200) Subject: meson: tests: add yajl specific tests X-Git-Tag: v6.7.0-rc1~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5369dd8f6e143373aee142af515e8bc9e1b9720c;p=thirdparty%2Flibvirt.git meson: tests: add yajl specific tests Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa Reviewed-by: Neal Gompa --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 86e8c37583..75201e1ebe 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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) diff --git a/tests/meson.build b/tests/meson.build index 6f4fe84e28..edb07e339f 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -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(