| 1 |
# -*- Mode: Makefile; indent-tabs-mode: nil -*- |
| 2 |
# vim: set filetype=makefile tabstop=8 shiftwidth=4 expandtab: |
| 3 |
|
| 4 |
ECL=@prefix@/@bindir@/ecl@EXEEXT@ |
| 5 |
SHELL=/bin/bash -o pipefail |
| 6 |
|
| 7 |
.PHONY: all check ansi-test |
| 8 |
|
| 9 |
all: check |
| 10 |
|
| 11 |
check: config.lsp |
| 12 |
$(ECL) --norc \ |
| 13 |
--load config.lsp \ |
| 14 |
--eval "(ecl-tests::run-tests '($(TESTS)))" \ |
| 15 |
--eval "(ext:quit)" \ |
| 16 |
2>&1 | tee test.log |
| 17 |
|
| 18 |
clean: |
| 19 |
rm -rf regressions.log cache |
| 20 |
|
| 21 |
ansi-test/doit.lsp: |
| 22 |
git clone https://gitlab.common-lisp.net/ansi-test/ansi-test.git |
| 23 |
|
| 24 |
ansi-test: ansi-test/doit.lsp |
| 25 |
$(ECL) --norc \ |
| 26 |
--load config.lsp \ |
| 27 |
--eval "(ext:quit (if (ecl-tests::run-ansi-test) 0 2))" \ |
| 28 |
2>&1 | tee ansi-test.log |