1
0
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:
Werner Almesberger
2010-11-21 04:32:04 -03:00
parent 83c716424f
commit 2c953a5d1a
4 changed files with 212 additions and 1 deletions

View File

@@ -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: