pocketlang/test/run_tests.bat

32 lines
392 B
Batchfile
Raw Normal View History

@echo off
2021-05-13 18:31:55 +08:00
set files=( ^
lang\basics.pk ^
lang\import.pk ^
lang\if.pk ^
lang\locals.pk ^
^
examples\prime.pk ^
)
2021-05-13 18:31:55 +08:00
set errorlevel=0
for %%f in %files% do (
echo Testing %%f
pocket %%f
if %errorlevel% neq 0 goto :FAILED
)
goto :SUCCESS
:FAILED
echo.
echo Test failed.
goto :END
:SUCCESS
echo.
echo All tests were passed.
goto :END
:END