Raymond Toy pushed to branch issue-363-add-version-number at cmucl / cmucl Commits: c16456c6 by Raymond Toy at 2025-01-08T19:31:41-08:00 Set TESTDIRARG earlier We need to set up `TESTDIR` and `TESTDIRARG` earlier because we need `TESTDIR` to be defined to build the necessary files and to load the scripts from the right place. - - - - - 1 changed file: - bin/run-unit-tests.sh Changes: ===================================== bin/run-unit-tests.sh ===================================== @@ -49,6 +49,13 @@ function cleanup { trap cleanup EXIT +set -x +if [ -n "${TESTDIR}" ]; then + TESTDIRARG=" :test-directory \"${TESTDIR}/\"" +else + TESTDIR="tests/" + TESTDIRARG="" +fi # Compile up the C file that is used for testing alien funcalls to # functions that return integer types of different lengths. We use # gcc since clang isn't always available. @@ -56,12 +63,6 @@ trap cleanup EXIT if [ $# -eq 0 ]; then # Test directory arg for run-all-tests if a non-default - if [ -n ${TESTDIR} ]; then - TESTDIRARG=" :test-directory \"${TESTDIR}/\"" - else - TESTDIR="tests/" - TESTDIRARG="" - fi # No args so run all the tests $LISP -nositeinit -noinit -load $TESTDIR/run-tests.lisp -eval "(cmucl-test-runner:run-all-tests ${TESTDIRARG})" else View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/c16456c663e3fe6ac0283122... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/c16456c663e3fe6ac0283122... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)