]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: tests: add ESX specific tests
authorPavel Hrdina <phrdina@redhat.com>
Mon, 27 Jul 2020 09:36:22 +0000 (11:36 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:05 +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>
src/esx/meson.build
tests/Makefile.am
tests/meson.build

index a79cc5b834411e7ae6c0778469370a30f265dfe8..f2d59462feb0a5a7163745b5abda580f0a64250b 100644 (file)
@@ -62,3 +62,5 @@ if conf.has('WITH_ESX')
 else
   sym_files += 'libvirt_esx.syms'
 endif
+
+esx_inc_dir = include_directories('.')
index ace1ae827c062382b2eaa35e66596de9dae8c592..381a7921cf58ebff4ce42f02a622b30de41250b4 100644 (file)
@@ -70,10 +70,6 @@ if WITH_OPENVZ
 test_programs += openvzutilstest
 endif WITH_OPENVZ
 
-if WITH_ESX
-test_programs += esxutilstest
-endif WITH_ESX
-
 if WITH_VBOX
 test_programs += vboxsnapshotxmltest
 endif WITH_VBOX
@@ -371,16 +367,6 @@ openvzutilstest_LDADD = $(LDADDS) \
        ../src/libvirt_driver_openvz.la
 endif WITH_OPENVZ
 
-if WITH_ESX
-esxutilstest_SOURCES = \
-       esxutilstest.c \
-       testutils.c testutils.h
-esxutilstest_LDADD = $(LDADDS)
-esxutilstest_CFLAGS = \
-       -I$(top_builddir)/src/esx \
-       $(AM_CFLAGS)
-endif WITH_ESX
-
 if WITH_VBOX
 vboxsnapshotxmltest_SOURCES = \
        vboxsnapshotxmltest.c \
index 63106fc0b65de6829914b36a3fb15e352adb1e76..bc42b1c86ae1ed72c9422e8872187c63929e31a5 100644 (file)
@@ -366,6 +366,12 @@ if conf.has('WITH_DBUS')
   endif
 endif
 
+if conf.has('WITH_ESX')
+  tests += [
+    { 'name': 'esxutilstest', 'include': [ esx_inc_dir ] },
+  ]
+endif
+
 foreach data : tests
   test_sources = '@0@.c'.format(data['name'])
   test_bin = executable(