My unit tests run fine, but the make test
target won't return an error code when the tests fail (echo $?
is 0) (it does when there is a lisp error).
This is not good for a CI system.
My main system definition ends with in-order-to
:
:in-order-to ((test-op (test-op "mysystem/test"))))
My test system has a perform
one:
:perform (test-op (o s)
(uiop:symbol-call '#:mysestem.test '#:test-all)))
where test-all
is a function that runs Fiveam test suites with run! 'test-suite
.
The make target:
test:
# (with proper indentation…)
$(LISP) --non-interactive \
--eval "(asdf:load-asd \""$(ASD_PATH)"\")" \
--eval "(ql:quickload :mysystem/test)" \
--eval "(asdf:test-system \"mysystem\")"
Note that follownig ASDF's best practices in doing
(symbol-call :fiveam #':run! :test-suite)))
errors out with "The function :run! is undefined."
How do we do this ?
Thank you.