Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
else
sym_files += 'libvirt_esx.syms'
endif
+
+esx_inc_dir = include_directories('.')
test_programs += openvzutilstest
endif WITH_OPENVZ
-if WITH_ESX
-test_programs += esxutilstest
-endif WITH_ESX
-
if WITH_VBOX
test_programs += vboxsnapshotxmltest
endif WITH_VBOX
../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 \
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(