1
0
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:
werner
2010-04-26 21:30:21 +00:00
parent 190bcaf982
commit bc27b094af
6 changed files with 238 additions and 7 deletions

View File

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