Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
include logging/Makefile.inc.am
include locking/Makefile.inc.am
include admin/Makefile.inc.am
-include test/Makefile.inc.am
include esx/Makefile.inc.am
include vmx/Makefile.inc.am
include vmware/Makefile.inc.am
subdir('esx')
subdir('hyperv')
subdir('openvz')
+subdir('test')
subdir('vmware')
+++ /dev/null
-# vim: filetype=automake
-
-TEST_DRIVER_SOURCES = \
- test/test_driver.c \
- test/test_driver.h \
- $(NULL)
-TEST_DRIVER_ASSETS = test/test-screenshot.png
-
-DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(TEST_DRIVER_SOURCES))
-
-if WITH_TEST
-
-driver_test_asset_DATA = $(TEST_DRIVER_ASSETS)
-driver_test_assetdir = $(pkgdatadir)
-
-noinst_LTLIBRARIES += libvirt_driver_test.la
-libvirt_la_BUILT_LIBADD += libvirt_driver_test.la
-libvirt_driver_test_la_CFLAGS = \
- -I$(srcdir)/conf \
- $(AM_CFLAGS) \
- $(NULL)
-libvirt_driver_test_la_SOURCES = $(TEST_DRIVER_SOURCES)
-endif WITH_TEST
--- /dev/null
+test_driver_sources = [
+ 'test_driver.c',
+]
+
+test_driver_assets = [
+ 'test-screenshot.png',
+]
+
+if conf.has('WITH_TEST')
+ test_lib = static_library(
+ 'virt_test',
+ [
+ test_driver_sources,
+ ],
+ dependencies: [
+ src_dep,
+ ],
+ include_directories: [
+ conf_inc_dir,
+ ],
+ )
+
+ install_data(test_driver_assets, install_dir: pkgdatadir)
+endif