Skip to content

Commit

Permalink
Update test.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga authored Jan 30, 2025
1 parent 58475b2 commit 05b358a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo Successfull!!
echo Node metacall test
type "%loc%\node\commands.txt" | metacall ^> out.txt
if %errorlevel%==1 goto :test_fail
findstr "366667" out.txt || goto :test_fail
findstr "366667" out.txt || goto :test_fail_print
type out.txt
echo Successfull!!

Expand All @@ -39,12 +39,13 @@ echo Successfull!!
echo Python metacall test
type "%loc%\python\commands.txt" | metacall ^> out.txt
if %errorlevel%==1 goto :test_fail
findstr "Hello World" out.txt || goto :test_fail
findstr "Hello World" out.txt || goto :test_fail_print
type out.txt
echo Successfull!!

echo Ruby tests
set "LOADER_SCRIPT_PATH=%loc%\ruby"
set "PATH=%PATH%;%loc%\runtimes\ruby\bin;%loc%\runtimes\ruby\bin\ruby_builtin_dlls"

echo Gem test
call metacall gem install metacall
Expand Down Expand Up @@ -106,11 +107,14 @@ call metacall typeprof --version
if %errorlevel%==1 goto :test_fail
echo Successfull!!

del out.txt
exit /b 0

:test_fail
echo Test Suite Failed!!
exit /b 1

:test_fail_print
type out.txt
echo Test Suite Failed!!
del out.txt
exit /b 1

0 comments on commit 05b358a

Please sign in to comment.