pocketlang/test/run_tests.bat
Thakee Nathees c3041c74a9 fixed: iterator (internal) variables popped twise.
printing stack trace implemented
2021-05-15 00:31:31 +05:30

32 lines
392 B
Batchfile

@echo off
set files=( ^
lang\basics.pk ^
lang\import.pk ^
lang\if.pk ^
^
examples\fib.pk ^
examples\prime.pk ^
)
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