Skip to content

Commit

Permalink
Debug test (Do not merge) (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
roysti10 authored Sep 27, 2022
1 parent 52cca80 commit c3588f9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metacall.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rem MetaCall
set "PATH=%PATH%;%loc%;%loc%\lib"
rem Python
set "PYTHONHOME=%loc%\runtimes\python"
set "PIP_TARGET=%loc%\runtimes\python\Pip"
set "PIP_TARGET=%loc%\runtimes\python\Lib"
set "PATH=%PATH%;%loc%\runtimes\python;%loc%\runtimes\python\Scripts"
rem NodeJS
set "PATH=%PATH%;%loc%\lib\runtimes\nodejs;%loc%\lib\runtimes\nodejs\lib"
Expand Down
19 changes: 17 additions & 2 deletions test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,32 @@ type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo Node metacall test
type "%loc%\node\commands.txt" | metacall.bat | findstr "366667" || goto :test_fail
type "%loc%\node\commands.txt" | metacall.bat ^> out.txt
if %errorlevel%==1 goto :test_fail
type out.txt | findstr "366667" || goto :test_fail
type out.txt
echo Successfull!!

echo Python tests
set "LOADER_SCRIPT_PATH=%loc%\python"
@
setlocal
set "PYTHONHOME=%~dp0metacall\runtimes\python"
set "PIP_TARGET=%~dp0metacall\runtimes\python\Pip"
set "PATH=%~dp0metacall\runtimes\python;%~dp0metacall\runtimes\python\Scripts"
%~dp0metacall\runtimes\python\python.exe -m pip install --upgrade --force-reinstall pip
endlocal
@
echo Pip Test
start /wait metacall.bat pip install metacall ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo Python metacall test
type "%loc%\python\commands.txt" | call metacall.bat | findstr "Hello World" || goto :test_fail
type "%loc%\python\commands.txt" | metacall.bat ^> out.txt
if %errorlevel%==1 goto :test_fail
type out.txt | findstr "Hello World" || goto :test_fail
type out.txt
echo Successfull!!

echo Ruby tests
Expand Down Expand Up @@ -94,5 +108,6 @@ exit /b 0

:test_fail
echo Test suite failed
type out.txt
DEL out.txt
exit /b 1

0 comments on commit c3588f9

Please sign in to comment.