From 21e02f53a8867992b5ed38517d55e6e4f47c5378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kochma=C5=84ski?= Date: Fri, 19 Jun 2015 19:45:54 +0200 Subject: [PATCH] tests: fix target check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use wget to download tests (ecl-curl failed on https), use ecl binaries and libs from installation directory and fix tests target order. Signed-off-by: Daniel KochmaƄski --- src/tests/Makefile.in | 15 ++++++++------- src/tests/config.lsp.in | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/tests/Makefile.in b/src/tests/Makefile.in index 7baee248e..03bd1e070 100755 --- a/src/tests/Makefile.in +++ b/src/tests/Makefile.in @@ -1,16 +1,15 @@ -ECL=ecl@EXEEXT@ +ECL=@prefix@/@bindir@/ecl@EXEEXT@ -all: output.ecl/ansi.log output.ecl/regressions.log +all: show-fails .PHONY: do-ansi do-regressions do-quicklisp cleanup clean-sources update BUGS_FILES := $(shell find ../../src/tests/bugs/ -type f) output.ecl/ansi.log: config.lsp $(MAKE) do-ansi - $(MAKE) show-fails + output.ecl/regressions.log: config.lsp $(MAKE) do-regressions - $(MAKE) show-fails do-ansi: ansi-tests config.lsp $(ECL) -norc -load config.lsp -eval '(ecl-tests::run-ansi-tests)' -eval '(ext:quit)' < /dev/null @@ -21,20 +20,22 @@ do-quicklisp: quicklisp config.lsp do-mop-tests: mop-features config.lsp $(ECL) -norc -load config.lsp -eval '(ecl-tests::run-mop-tests)' -eval '(ext:quit)' < /dev/null -show-fails: +show-fails: output.ecl/ansi.log output.ecl/regressions.log grep "^Test .* failed" output.ecl/ansi.log output.ecl/regressions.log # # Create directories # ansi-tests: config.lsp + wget "http://common-lisp.net/project/ecl/tests/ansi-tests.tar.gz" -P cache $(ECL) -norc -load config.lsp -eval '(ecl-tests::ensure-ansi-tests)' -eval '(ext:quit)' < /dev/null +mop-features: config.lsp + wget "http://common-lisp.net/project/ecl/tests/mop-features.tar.gz" -P cache + $(ECL) -norc -load config.lsp -eval '(ecl-tests::ensure-mop-tests)' -eval '(ext:quit)' < /dev/null regressions: config.lsp ansi-tests $(BUGS_FILES) $(ECL) -norc -load config.lsp -eval '(ecl-tests::ensure-regressions)' -eval '(ext:quit)' < /dev/null quicklisp: config.lsp $(ECL) -norc -load config.lsp -eval '(ecl-tests::ensure-quicklisp)' -eval '(ext:quit)' < /dev/null -mop-features: config.lsp - $(ECL) -norc -load config.lsp -eval '(ecl-tests::ensure-mop-tests)' -eval '(ext:quit)' < /dev/null # # Test other implementations diff --git a/src/tests/config.lsp.in b/src/tests/config.lsp.in index 09dd6f38b..b4d5af3d7 100755 --- a/src/tests/config.lsp.in +++ b/src/tests/config.lsp.in @@ -15,7 +15,7 @@ (defvar *ecl-sources* (loop for *default-pathname-defaults* in '(#p"@true_srcdir@/" #p"../../" #p"../../src/") - when (probe-file "CHANGELOG") + when (probe-file "configure.ac") return *default-pathname-defaults*)) (defvar *test-sources* (merge-pathnames "tests/" *ecl-sources*)) @@ -28,7 +28,7 @@ #+windows (namestring (truename #+windows "sys:ecl.exe")) #-windows - "ecl")) + "@prefix@/bin/ecl")) (defvar *test-image-args* (cond ((search "ecl" *test-image*)