Debian Codegraph @

tests/Makefile

raw symbols SCIP
1 # Makefile for CLISP regression tests
2 # ifneq/else/endif requires GNU Make, so we cannot use them
3
4 # build directory (with [back]slash appended)
5 BD=../
6 # executable extension (.exe on win32, .run everywhere else)
7 LEXE=.run
8
9 # ensure that all messages are in English
10 LISP = LC_MESSAGES=en_US $(BD)lisp$(LEXE) -E utf-8 -norc -B $(BD) -N $(BD)locale -M $(BD)lispinit.mem -m 30MW -L english
11 # LISP=../clisp -norc
12 # LISP=clisp -norc
13
14 RM = rm -f
15
16 all : clean tests compare
17
18 clean : force
19 $(RM) *.erg
20
21 tests.fas: tests.lisp
22 $(LISP) -c tests
23
24 tests : force tests.fas
25 $(LISP) -i tests -x "(time (run-all-tests))"
26
27 complete : force tests.fas
28 $(LISP) -i tests -x "(time (run-all-tests :disable-risky nil))"
29
30 parallel: force tests.fas
31 $(LISP) -i tests -x "(time (run-all-tests-parallel))"
32
33 compare : force
34 (echo *.erg | grep '*' >/dev/null) || (echo "Test failed:" ; ls -l *erg; echo "To see which tests failed, type" ; echo " cat "`pwd`"/*.erg" ; exit 1)
35 echo "Test passed."
36
37 %.erg : %.tst
38 $(LISP) -i tests -x '(run-test "$<")'
39
40 force :
41