mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2025-04-21 12:27:27 +03:00
qpkg: added regression test harness and a few tests
- Makefile (test, tests, valgrind): new targets to run regression tests - test/Common: test harness (adapted from fped) - test/minpkg: test minimum package definition - test/prereq: test basic prerequisite queries
This commit is contained in:
@@ -38,7 +38,7 @@ endif
|
||||
|
||||
# ----- Rules -----------------------------------------------------------------
|
||||
|
||||
.PHONY: all jlime openwrt clean spotless
|
||||
.PHONY: all jlime openwrt test tests valgrind clean spotless
|
||||
|
||||
all: qpkg rbtest
|
||||
|
||||
@@ -62,6 +62,18 @@ qpkg: $(OBJS_qpkg)
|
||||
|
||||
rbtest: $(OBJS_rbtest)
|
||||
|
||||
# ----- Tests -----------------------------------------------------------------
|
||||
|
||||
test tests: all
|
||||
LANG= sh -c \
|
||||
'passed=0 && cd test && \
|
||||
for n in [a-z]*; do \
|
||||
[ $$n != core ] && SCRIPT=$$n CWD_PREFIX=.. . ./$$n; done; \
|
||||
echo "Passed all $$passed tests"'
|
||||
|
||||
valgrind:
|
||||
VALGRIND="valgrind -q" $(MAKE) tests
|
||||
|
||||
# ----- Cleanup ---------------------------------------------------------------
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user