2021-06-16 09:01:17 +00:00
|
|
|
if "%GRAALVM_HOME%"=="" (
|
|
|
|
|
echo Please set GRAALVM_HOME
|
|
|
|
|
exit /b
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
echo "BABASHKA_TEST_ENV: %BABASHKA_TEST_ENV%"
|
|
|
|
|
|
|
|
|
|
set JAVA_HOME=%GRAALVM_HOME%
|
|
|
|
|
set PATH=%GRAALVM_HOME%\bin;%PATH%
|
|
|
|
|
|
2021-06-17 17:43:43 +00:00
|
|
|
set BABASHKA_PRELOADS=
|
|
|
|
|
set BABASHKA_CLASSPATH=
|
|
|
|
|
set BABASHKA_PRELOADS_TEST=
|
|
|
|
|
|
|
|
|
|
echo "running tests part 1"
|
2021-06-16 09:01:17 +00:00
|
|
|
call lein do clean, test :windows
|
2021-06-17 17:43:43 +00:00
|
|
|
|
|
|
|
|
set BABASHKA_PRELOADS=(defn __bb__foo [] "foo") (defn __bb__bar [] "bar")
|
|
|
|
|
set BABASHKA_PRELOADS_TEST=true
|
|
|
|
|
echo "running tests part 2"
|
|
|
|
|
call lein test :only babashka.main-test/preloads-test
|
2021-06-18 21:51:46 +00:00
|
|
|
|
|
|
|
|
set BABASHKA_PRELOADS=(defn ithrow [] (/ 1 0))
|
|
|
|
|
set BABASHKA_PRELOADS_TEST=true
|
|
|
|
|
echo "running tests part 3"
|
|
|
|
|
call lein test :only babashka.main-test/preloads-file-location-test
|