mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
404991789b
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
167 lines
4.0 KiB
Makefile
167 lines
4.0 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
## Copyright (C) 2005-2019 Red Hat, Inc.
|
|
##
|
|
## This library is free software; you can redistribute it and/or
|
|
## modify it under the terms of the GNU Lesser General Public
|
|
## License as published by the Free Software Foundation; either
|
|
## version 2.1 of the License, or (at your option) any later version.
|
|
##
|
|
## This library is distributed in the hope that it will be useful,
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
## Lesser General Public License for more details.
|
|
##
|
|
## You should have received a copy of the GNU Lesser General Public
|
|
## License along with this library. If not, see
|
|
## <http://www.gnu.org/licenses/>.
|
|
|
|
if WITH_QEMU
|
|
test_helpers += qemucapsprobe
|
|
endif WITH_QEMU
|
|
|
|
if WITH_VBOX
|
|
test_programs += vboxsnapshotxmltest
|
|
endif WITH_VBOX
|
|
|
|
if WITH_VMX
|
|
test_programs += vmx2xmltest xml2vmxtest
|
|
endif WITH_VMX
|
|
|
|
if WITH_VMWARE
|
|
test_programs += vmwarevertest
|
|
endif WITH_VMWARE
|
|
|
|
if WITH_YAJL
|
|
test_programs += virjsontest
|
|
endif WITH_YAJL
|
|
|
|
if WITH_NSS
|
|
test_helpers += nsslinktest nssguestlinktest
|
|
endif WITH_NSS
|
|
|
|
test_scripts =
|
|
libvirtd_test_scripts = \
|
|
libvirtd-fail \
|
|
libvirtd-pool \
|
|
virsh-auth \
|
|
virsh-cpuset \
|
|
virsh-define-dev-segfault \
|
|
virsh-int-overflow \
|
|
virsh-optparse \
|
|
virsh-read-bufsiz \
|
|
virsh-read-non-seekable \
|
|
virsh-schedinfo \
|
|
virsh-self-test \
|
|
virt-admin-self-test \
|
|
virsh-checkpoint \
|
|
virsh-snapshot \
|
|
virsh-start \
|
|
virsh-undefine \
|
|
virsh-uriprecedence \
|
|
virsh-vcpupin \
|
|
$(NULL)
|
|
|
|
if WITH_LIBVIRTD
|
|
test_scripts += $(libvirtd_test_scripts)
|
|
endif WITH_LIBVIRTD
|
|
|
|
if WITH_SECDRIVER_APPARMOR
|
|
if WITH_LIBVIRTD
|
|
test_scripts += virt-aa-helper-test
|
|
endif WITH_LIBVIRTD
|
|
endif WITH_SECDRIVER_APPARMOR
|
|
|
|
if WITH_LINUX
|
|
check-access: file-access-clean
|
|
VIR_TEST_FILE_ACCESS=1 $(MAKE) $(AM_MAKEFLAGS) check
|
|
$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/check-file-access.py \
|
|
$(abs_builddir)/test_file_access.txt \
|
|
$(abs_srcdir)/permitted_file_access.txt | sort -u
|
|
|
|
file-access-clean:
|
|
> test_file_access.txt
|
|
endif WITH_LINUX
|
|
|
|
noinst_PROGRAMS = $(test_programs) $(test_helpers)
|
|
|
|
TESTS = $(test_programs) \
|
|
$(test_scripts)
|
|
|
|
VALGRIND = valgrind --quiet --leak-check=full --trace-children=yes \
|
|
--trace-children-skip="*/tools/virsh","*/tests/commandhelper","/usr/bin/*" \
|
|
--suppressions=$(abs_srcdir)/.valgrind.supp
|
|
valgrind:
|
|
$(MAKE) check VG="$(LIBTOOL) --mode=execute $(VALGRIND)"
|
|
|
|
if WITH_QEMU
|
|
qemucapsprobe_SOURCES = \
|
|
qemucapsprobe.c
|
|
qemucapsprobe_LDADD = \
|
|
libqemutestdriver.la $(LDADDS)
|
|
endif WITH_QEMU
|
|
|
|
if WITH_VBOX
|
|
vboxsnapshotxmltest_SOURCES = \
|
|
vboxsnapshotxmltest.c \
|
|
testutils.c testutils.h
|
|
vbox_LDADDS = ../src/libvirt_driver_vbox_impl.la
|
|
vboxsnapshotxmltest_LDADD = $(LDADDS) $(vbox_LDADDS)
|
|
endif WITH_VBOX
|
|
|
|
if WITH_VMX
|
|
vmx2xmltest_SOURCES = \
|
|
vmx2xmltest.c \
|
|
testutils.c testutils.h
|
|
vmx2xmltest_LDADD = $(LDADDS)
|
|
|
|
xml2vmxtest_SOURCES = \
|
|
xml2vmxtest.c \
|
|
testutils.c testutils.h
|
|
xml2vmxtest_LDADD = $(LDADDS)
|
|
endif WITH_VMX
|
|
|
|
if WITH_VMWARE
|
|
vmwarevertest_SOURCES = \
|
|
vmwarevertest.c \
|
|
testutils.c testutils.h
|
|
vmwarevertest_LDADD = $(LDADDS)
|
|
endif WITH_VMWARE
|
|
|
|
if WITH_NSS
|
|
## Intentionaly not linking with anything else.
|
|
## See the test source for more detailed explanation.
|
|
nsslinktest_SOURCES = nsslinktest.c
|
|
nsslinktest_CFLAGS = \
|
|
$(AM_CFLAGS) \
|
|
-I$(top_srcdir)/tools/nss
|
|
nsslinktest_LDADD = ../tools/nss/libnss_libvirt_impl.la
|
|
nsslinktest_LDFLAGS = $(NULL)
|
|
|
|
nssguestlinktest_SOURCES = nsslinktest.c
|
|
nssguestlinktest_CFLAGS = \
|
|
-DLIBVIRT_NSS_GUEST \
|
|
$(AM_CFLAGS) \
|
|
-I$(top_srcdir)/tools/nss
|
|
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)
|