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