18 lines
531 B
Bash
Executable file
18 lines
531 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
BABASHKA_PRELOADS=""
|
|
BABASHKA_CLASSPATH=""
|
|
echo "running tests part 1"
|
|
lein test "$@"
|
|
|
|
BABASHKA_PRELOADS='(defn __bb__foo [] "foo") (defn __bb__bar [] "bar")'
|
|
BABASHKA_PRELOADS_TEST=true
|
|
echo "running tests part 2"
|
|
lein test :only babashka.main-test/preloads-test
|
|
|
|
BABASHKA_PRELOADS="(require '[env-ns])"
|
|
BABASHKA_CLASSPATH_TEST=true
|
|
BABASHKA_CLASSPATH="test-resources/babashka/src_for_classpath_test/env"
|
|
echo "running tests part 3"
|
|
lein test :only babashka.classpath-test/classpath-env-test
|