mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
With a little help from m8cutils and abyss, we now have regression tests for
the topological sort. "make test" or "make tests" invokes the regression tests, "make valgrind" runs them under valgrind's watchful eyes. - fped.c (usage, main): added option -T to force batch mode (for regression testing) - Makefile, test/Common: added regression test infrastructure - test/tsort: test cases for the topological sort - README: added pointer to test/tsort git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5943 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
14
Makefile
14
Makefile
@@ -82,7 +82,7 @@ endif
|
||||
# ----- Rules -----------------------------------------------------------------
|
||||
|
||||
.PHONY: all dep depend clean install uninstall manual upload-manual
|
||||
.PHONY: update montage
|
||||
.PHONY: update montage test tests valgrind
|
||||
|
||||
.SUFFIXES: .fig .xpm .ppm
|
||||
|
||||
@@ -156,6 +156,18 @@ dep depend .depend:
|
||||
|
||||
-include $(OBJS:.o=.d)
|
||||
|
||||
# ----- Tests -----------------------------------------------------------------
|
||||
|
||||
test tests: all
|
||||
LANG= sh -c \
|
||||
'passed=0 && cd test && \
|
||||
for n in [a-z]*; do \
|
||||
SCRIPT=$$n . ./$$n; done; \
|
||||
echo "Passed all $$passed tests"'
|
||||
|
||||
valgrind:
|
||||
VALGRIND="valgrind -q" $(MAKE) tests
|
||||
|
||||
# ----- Cleanup ---------------------------------------------------------------
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user