Added support to run tests in place.

- ./configure --enable-tests && make
	- kyua test -k tests/xbps/Kyuafile
This commit is contained in:
Juan RP 2014-10-06 11:59:16 +02:00
parent 7fb6320e0b
commit 01781b3b7e
18 changed files with 60 additions and 19 deletions

View File

@ -7,7 +7,7 @@ all:
install:
install -d $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
install -m644 Kyuafile $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
install -m644 ../Kyuafile $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
uninstall:
-rm -f $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)/Kyuafile

View File

@ -0,0 +1,14 @@
syntax("kyuafile", 1)
test_suite("libxbps")
include('util/Kyuafile')
include('cmpver/Kyuafile')
include('pkgpattern_match/Kyuafile')
include('plist_match/Kyuafile')
include('plist_match_virtual/Kyuafile')
include('find_pkg_obsoletes/Kyuafile')
include('config/Kyuafile')
include('find_pkg_orphans/Kyuafile')
include('pkgdb/Kyuafile')
include('shell/Kyuafile')

View File

@ -0,0 +1,5 @@
syntax("kyuafile", 1)
test_suite("libxbps")
atf_test_program{name="cmpver_test"}

View File

@ -1,7 +1,8 @@
TOPDIR = ../../../..
-include $(TOPDIR)/config.mk
TESTSSUBDIR = xbps/libxbps/cmpver
TEST = cmpver_test
EXTRA_FILES = Kyuafile
include ../Makefile.inc
include $(TOPDIR)/mk/test.mk

View File

@ -7,7 +7,7 @@ all:
install:
install -d $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
install -m644 Kyuafile $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
install -m644 ../Kyuafile $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
uninstall:
-rm -f $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)/Kyuafile

View File

@ -0,0 +1,5 @@
syntax("kyuafile", 1)
test_suite("libxbps")
atf_test_program{name="find_pkg_obsoletes_test"}

View File

@ -1,7 +1,8 @@
TOPDIR = ../../../..
-include $(TOPDIR)/config.mk
TESTSSUBDIR = xbps/libxbps/find_pkg_obsoletes
TEST = find_pkg_obsoletes_test
EXTRA_FILES = Kyuafile
include ../Makefile.inc
include $(TOPDIR)/mk/test.mk

View File

@ -0,0 +1,5 @@
syntax("kyuafile", 1)
test_suite("libxbps")
atf_test_program{name="pkgpattern_match_test"}

View File

@ -1,7 +1,8 @@
TOPDIR = ../../../..
-include $(TOPDIR)/config.mk
TESTSSUBDIR = xbps/libxbps/pkgpattern_match
TEST = pkgpattern_match_test
EXTRA_FILES = Kyuafile
include ../Makefile.inc
include $(TOPDIR)/mk/test.mk

View File

@ -0,0 +1,5 @@
syntax("kyuafile", 1)
test_suite("libxbps")
atf_test_program{name="plist_match_test"}

View File

@ -1,7 +1,8 @@
TOPDIR = ../../../..
-include $(TOPDIR)/config.mk
TESTSSUBDIR = xbps/libxbps/plist_match
TEST = plist_match_test
EXTRA_FILES = Kyuafile
include ../Makefile.inc
include $(TOPDIR)/mk/test.mk

View File

@ -0,0 +1,5 @@
syntax("kyuafile", 1)
test_suite("libxbps")
atf_test_program{name="plist_match_virtual_test"}

View File

@ -1,7 +1,8 @@
TOPDIR = ../../../..
-include $(TOPDIR)/config.mk
TESTSSUBDIR = xbps/libxbps/plist_match_virtual
TEST = plist_match_virtual_test
EXTRA_FILES = Kyuafile
include ../Makefile.inc
include $(TOPDIR)/mk/test.mk

View File

@ -2,12 +2,6 @@ syntax("kyuafile", 1)
test_suite("libxbps")
atf_test_program{name="util_test"}
atf_test_program{name="cmpver_test"}
atf_test_program{name="pkgpattern_match_test"}
atf_test_program{name="plist_match_test"}
atf_test_program{name="plist_match_virtual_test"}
atf_test_program{name="find_pkg_obsoletes_test"}
atf_test_program{name="issue6_test"}
atf_test_program{name="issue18_test"}
atf_test_program{name="issue20_test"}
@ -23,7 +17,3 @@ atf_test_program{name="vpkg_test"}
atf_test_program{name="install_test"}
atf_test_program{name="preserve_files_test"}
atf_test_program{name="update_shlibs"}
include('config/Kyuafile')
include('find_pkg_orphans/Kyuafile')
include('pkgdb/Kyuafile')

View File

@ -1,11 +1,12 @@
TOPDIR = ../../../..
-include $(TOPDIR)/config.mk
TESTSSUBDIR = xbps/libxbps/shell
TESTSHELL = conf_files_test issue6_test issue18_test issue20_test remove_test
TESTSHELL+= replace_test installmode_test obsoletefiles_test
TESTSHELL+= issue31_test scripts_test incorrect_deps_test
TESTSHELL+= vpkg_test install_test preserve_files_test
TESTSHELL+= update_shlibs
EXTRA_FILES = Kyuafile
include ../Makefile.inc
include $(TOPDIR)/mk/test.mk

View File

@ -0,0 +1,5 @@
syntax("kyuafile", 1)
test_suite("libxbps")
atf_test_program{name="util_test"}

View File

@ -1,7 +1,8 @@
TOPDIR = ../../../..
-include $(TOPDIR)/config.mk
TESTSSUBDIR = xbps/libxbps/util
TEST = util_test
EXTRA_FILES = Kyuafile
include ../Makefile.inc
include $(TOPDIR)/mk/test.mk