tests: improve config.lsp to allow testing bytecmp via make check

Even when the C compiler is present. Also first install the bytecodes compiler
and then eventually try install the C compiler - that's because ASDF depends
on the :bytecmp feature to work with the bytecompiler.
This commit is contained in:
Daniel Kochmański 2020-12-15 19:44:44 +01:00 committed by Marius Gerbershagen
parent b20a675f64
commit 1a6807170a

View file

@ -87,19 +87,23 @@
(progn
(ext:chdir *sandbox*)
(ext:setenv "TEST_IMAGE" *test-image*)
(ext:run-program *test-image*
`("-norc"
"-eval" "(print (ext:getenv \"ECLDIR\"))"
"-eval" "(ignore-errors (require :cmp))"
"-load" ,(namestring
(merge-pathnames
"tests/doit.lsp" *ecl-sources*))
"-eval" "(in-package cl-test)"
"-eval" ,(format nil "(2am-ecl:run '~a)" suites)
"-eval" "(ext:exit)")
:input nil
:output t
:error :output))
(ext:run-program
*test-image*
`("-norc"
"-eval" "(print (ext:getenv \"ECLDIR\"))"
"-eval" "(ext:install-bytecodes-compiler)"
"-eval" ,(if (ext:getenv "BYTECMP")
"t"
"(ignore-errors (ext:install-c-compiler))")
"-load" ,(namestring
(merge-pathnames
"tests/doit.lsp" *ecl-sources*))
"-eval" "(in-package cl-test)"
"-eval" ,(format nil "(2am-ecl:run '~a)" suites)
"-eval" "(ext:exit)")
:input nil
:output t
:error :output))
(ext:chdir *here*)
#+ (or)
(format t "~%Known fails: ~%~{~a~%~}~%"