| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
BD=../ |
| 6 |
|
| 7 |
LEXE=.run |
| 8 |
|
| 9 |
|
| 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 |
|
| 12 |
|
| 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 |
|