mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-08 21:17:49 +03:00
Move tests under /tests directory
Keep tests separated from the code
This commit is contained in:
parent
d81f7c047f
commit
2736081940
@ -2,7 +2,7 @@ NULL =
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
SUBDIRS = icons src man po data
|
||||
SUBDIRS = icons src man po data tests
|
||||
|
||||
AM_DISTCHECK_CONFIGURE_FLAGS = --disable-update-mimedb
|
||||
EXTRA_DIST = \
|
||||
|
@ -255,6 +255,7 @@ AC_CONFIG_FILES([
|
||||
po/Makefile.in
|
||||
src/Makefile
|
||||
src/virt-viewer.rc
|
||||
tests/Makefile
|
||||
virt-viewer.spec
|
||||
])
|
||||
AC_OUTPUT
|
||||
|
@ -144,46 +144,6 @@ libvirt_viewer_la_CFLAGS = \
|
||||
$(COMMON_CFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
check_PROGRAMS = test-version-compare test-monitor-mapping
|
||||
TESTS = $(check_PROGRAMS)
|
||||
test_version_compare_SOURCES = \
|
||||
test-version-compare.c \
|
||||
$(NULL)
|
||||
test_version_compare_LDFLAGS = \
|
||||
$(GLIB2_LIBS) \
|
||||
$(GTK_LIBS) \
|
||||
$(LIBXML2_LIBS) \
|
||||
$(NULL)
|
||||
test_version_compare_CFLAGS = \
|
||||
-DLOCALE_DIR=\""$(datadir)/locale"\" \
|
||||
$(GLIB2_CFLAGS) \
|
||||
$(GTK_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(NULL)
|
||||
test_version_compare_LDADD = \
|
||||
libvirt-viewer-util.la \
|
||||
$(NULL)
|
||||
|
||||
test_monitor_mapping_SOURCES = \
|
||||
test-monitor-mapping.c \
|
||||
$(NULL)
|
||||
test_monitor_mapping_LDFLAGS = \
|
||||
$(GLIB2_LIBS) \
|
||||
$(GTK_LIBS) \
|
||||
$(LIBXML2_LIBS) \
|
||||
$(NULL)
|
||||
test_monitor_mapping_CFLAGS = \
|
||||
-DLOCALE_DIR=\""$(datadir)/locale"\" \
|
||||
$(GLIB2_CFLAGS) \
|
||||
$(GTK_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(NULL)
|
||||
test_monitor_mapping_LDADD = \
|
||||
libvirt-viewer-util.la \
|
||||
$(NULL)
|
||||
|
||||
if HAVE_LIBVIRT
|
||||
bin_PROGRAMS += virt-viewer
|
||||
virt_viewer_SOURCES = \
|
||||
|
29
tests/Makefile.am
Normal file
29
tests/Makefile.am
Normal file
@ -0,0 +1,29 @@
|
||||
NULL =
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-DLOCALE_DIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/src/ \
|
||||
-I$(top_srcdir)/tests/ \
|
||||
$(GLIB2_CFLAGS) \
|
||||
$(GTK_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
LDADD= \
|
||||
$(top_builddir)/src/libvirt-viewer-util.la \
|
||||
$(GLIB2_LIBS) \
|
||||
$(GTK_LIBS) \
|
||||
$(LIBXML2_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
TESTS = test-version-compare test-monitor-mapping
|
||||
check_PROGRAMS = $(TESTS)
|
||||
test_version_compare_SOURCES = \
|
||||
test-version-compare.c \
|
||||
$(NULL)
|
||||
|
||||
test_monitor_mapping_SOURCES = \
|
||||
test-monitor-mapping.c \
|
||||
$(NULL)
|
||||
|
||||
-include $(top_srcdir)/git.mk
|
Loading…
Reference in New Issue
Block a user