Added support to run tests in place.
- ./configure --enable-tests && make - kyua test -k tests/xbps/Kyuafile
This commit is contained in:
parent
7fb6320e0b
commit
01781b3b7e
@ -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
|
||||
|
14
tests/xbps/libxbps/Kyuafile
Normal file
14
tests/xbps/libxbps/Kyuafile
Normal 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')
|
5
tests/xbps/libxbps/cmpver/Kyuafile
Normal file
5
tests/xbps/libxbps/cmpver/Kyuafile
Normal file
@ -0,0 +1,5 @@
|
||||
syntax("kyuafile", 1)
|
||||
|
||||
test_suite("libxbps")
|
||||
|
||||
atf_test_program{name="cmpver_test"}
|
@ -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
|
||||
|
@ -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
|
||||
|
5
tests/xbps/libxbps/find_pkg_obsoletes/Kyuafile
Normal file
5
tests/xbps/libxbps/find_pkg_obsoletes/Kyuafile
Normal file
@ -0,0 +1,5 @@
|
||||
syntax("kyuafile", 1)
|
||||
|
||||
test_suite("libxbps")
|
||||
|
||||
atf_test_program{name="find_pkg_obsoletes_test"}
|
@ -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
|
||||
|
5
tests/xbps/libxbps/pkgpattern_match/Kyuafile
Normal file
5
tests/xbps/libxbps/pkgpattern_match/Kyuafile
Normal file
@ -0,0 +1,5 @@
|
||||
syntax("kyuafile", 1)
|
||||
|
||||
test_suite("libxbps")
|
||||
|
||||
atf_test_program{name="pkgpattern_match_test"}
|
@ -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
|
||||
|
5
tests/xbps/libxbps/plist_match/Kyuafile
Normal file
5
tests/xbps/libxbps/plist_match/Kyuafile
Normal file
@ -0,0 +1,5 @@
|
||||
syntax("kyuafile", 1)
|
||||
|
||||
test_suite("libxbps")
|
||||
|
||||
atf_test_program{name="plist_match_test"}
|
@ -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
|
||||
|
5
tests/xbps/libxbps/plist_match_virtual/Kyuafile
Normal file
5
tests/xbps/libxbps/plist_match_virtual/Kyuafile
Normal file
@ -0,0 +1,5 @@
|
||||
syntax("kyuafile", 1)
|
||||
|
||||
test_suite("libxbps")
|
||||
|
||||
atf_test_program{name="plist_match_virtual_test"}
|
@ -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
|
||||
|
@ -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')
|
@ -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
|
||||
|
5
tests/xbps/libxbps/util/Kyuafile
Normal file
5
tests/xbps/libxbps/util/Kyuafile
Normal file
@ -0,0 +1,5 @@
|
||||
syntax("kyuafile", 1)
|
||||
|
||||
test_suite("libxbps")
|
||||
|
||||
atf_test_program{name="util_test"}
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user