mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 05:25:18 +00:00
make: split test driver build rules into test/Makefile.inc.am
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
82ef8c49ae
commit
c8da8363d2
@ -72,6 +72,7 @@ libvirt_la_BUILT_LIBADD =
|
|||||||
|
|
||||||
include uml/Makefile.inc.am
|
include uml/Makefile.inc.am
|
||||||
include phyp/Makefile.inc.am
|
include phyp/Makefile.inc.am
|
||||||
|
include test/Makefile.inc.am
|
||||||
|
|
||||||
install-data-extra: $(INSTALL_DATA_DIRS:%=install-data-%)
|
install-data-extra: $(INSTALL_DATA_DIRS:%=install-data-%)
|
||||||
uninstall-data-extra: $(INSTALL_DATA_DIRS:%=install-data-%)
|
uninstall-data-extra: $(INSTALL_DATA_DIRS:%=install-data-%)
|
||||||
@ -776,7 +777,6 @@ DRIVER_SOURCE_FILES += \
|
|||||||
$(REMOTE_DRIVER_SOURCES) \
|
$(REMOTE_DRIVER_SOURCES) \
|
||||||
$(SECRET_DRIVER_SOURCES) \
|
$(SECRET_DRIVER_SOURCES) \
|
||||||
$(STORAGE_DRIVER_SOURCES) \
|
$(STORAGE_DRIVER_SOURCES) \
|
||||||
$(TEST_DRIVER_SOURCES) \
|
|
||||||
$(VBOX_DRIVER_SOURCES) \
|
$(VBOX_DRIVER_SOURCES) \
|
||||||
vbox/vbox_tmpl.c \
|
vbox/vbox_tmpl.c \
|
||||||
$(VMWARE_DRIVER_SOURCES) \
|
$(VMWARE_DRIVER_SOURCES) \
|
||||||
@ -824,11 +824,6 @@ check-local: check-protocol check-symfile check-symsorting \
|
|||||||
check-aclperms check-admin-symfile check-admin-symsorting
|
check-aclperms check-admin-symfile check-admin-symsorting
|
||||||
.PHONY: check-protocol $(PROTOCOL_STRUCTS:structs=struct)
|
.PHONY: check-protocol $(PROTOCOL_STRUCTS:structs=struct)
|
||||||
|
|
||||||
# Mock driver, covering domains, storage, networks, etc
|
|
||||||
TEST_DRIVER_SOURCES = \
|
|
||||||
test/test_driver.c test/test_driver.h
|
|
||||||
TEST_DRIVER_ASSETS = test/test-screenshot.png
|
|
||||||
|
|
||||||
# Now the Hypervisor specific drivers
|
# Now the Hypervisor specific drivers
|
||||||
XEN_DRIVER_SOURCES = \
|
XEN_DRIVER_SOURCES = \
|
||||||
xen/block_stats.c xen/block_stats.h \
|
xen/block_stats.c xen/block_stats.h \
|
||||||
@ -1338,18 +1333,6 @@ GENERATED_SYM_FILES = \
|
|||||||
libvirt_admin.syms libvirt_admin.def \
|
libvirt_admin.syms libvirt_admin.def \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
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)
|
|
||||||
libvirt_driver_test_la_SOURCES = $(TEST_DRIVER_SOURCES)
|
|
||||||
endif WITH_TEST
|
|
||||||
|
|
||||||
if WITH_REMOTE
|
if WITH_REMOTE
|
||||||
noinst_LTLIBRARIES += libvirt_driver_remote.la
|
noinst_LTLIBRARIES += libvirt_driver_remote.la
|
||||||
libvirt_la_BUILT_LIBADD += libvirt_driver_remote.la
|
libvirt_la_BUILT_LIBADD += libvirt_driver_remote.la
|
||||||
@ -2107,8 +2090,6 @@ access/viraccessapichecklxc.c: $(srcdir)/rpc/gendispatch.pl \
|
|||||||
|
|
||||||
# Add all conditional sources just in case...
|
# Add all conditional sources just in case...
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
$(TEST_DRIVER_SOURCES) \
|
|
||||||
$(TEST_DRIVER_ASSETS) \
|
|
||||||
$(REMOTE_DRIVER_SOURCES) \
|
$(REMOTE_DRIVER_SOURCES) \
|
||||||
$(XEN_DRIVER_SOURCES) \
|
$(XEN_DRIVER_SOURCES) \
|
||||||
$(QEMU_DRIVER_SOURCES) \
|
$(QEMU_DRIVER_SOURCES) \
|
||||||
|
26
src/test/Makefile.inc.am
Normal file
26
src/test/Makefile.inc.am
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
TEST_DRIVER_SOURCES = \
|
||||||
|
test/test_driver.c \
|
||||||
|
test/test_driver.h \
|
||||||
|
$(NULL)
|
||||||
|
TEST_DRIVER_ASSETS = test/test-screenshot.png
|
||||||
|
|
||||||
|
DRIVER_SOURCE_FILES += $(TEST_DRIVER_SOURCES)
|
||||||
|
|
||||||
|
EXTRA_DIST += \
|
||||||
|
$(TEST_DRIVER_SOURCES) \
|
||||||
|
$(TEST_DRIVER_ASSETS) \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user