Skip to content

Commit

Permalink
[LOG] Added logs for tests (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
roysti10 authored Sep 14, 2022
1 parent a87fe32 commit 52cca80
Showing 1 changed file with 30 additions and 15 deletions.
45 changes: 30 additions & 15 deletions test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ set "loc=%~dp0tests"
echo NodeJS tests
set "LOADER_SCRIPT_PATH=%loc%\node"
echo Npm Test
start /wait metacall.bat npm install metacall
start /wait metacall.bat npm install metacall ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo Node metacall test
Expand All @@ -17,7 +18,8 @@ echo Successfull!!
echo Python tests
set "LOADER_SCRIPT_PATH=%loc%\python"
echo Pip Test
start /wait metacall.bat pip install metacall
start /wait metacall.bat pip install metacall ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo Python metacall test
Expand All @@ -27,57 +29,70 @@ echo Successfull!!
echo Ruby tests
set "LOADER_SCRIPT_PATH=%loc%\ruby"
echo Gem test
start /wait metacall.bat gem install metacall
start /wait metacall.bat gem install metacall ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo bundle test
start /wait metacall.bat bundle --version
start /wait metacall.bat bundle --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo bundler test
start /wait metacall.bat bundler --version
start /wait metacall.bat bundler --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo erb test
start /wait metacall.bat erb --version
start /wait metacall.bat erb --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo irb test
start /wait metacall.bat irb --version
start /wait metacall.bat irb --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo racc test
start /wait metacall.bat racc --version
start /wait metacall.bat racc --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo rake test
start /wait metacall.bat rake --version
start /wait metacall.bat rake --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo rbs test
start /wait metacall.bat rbs --version
start /wait metacall.bat rbs --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo rdbg test
start /wait metacall.bat rdbg --version
start /wait metacall.bat rdbg --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo rdoc test
start /wait metacall.bat rdoc --version
start /wait metacall.bat rdoc --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo ri test
start /wait metacall.bat ri --version
start /wait metacall.bat ri --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!
echo typeprof test
start /wait metacall.bat typeprof --version
start /wait metacall.bat typeprof --version ^> out.txt
type out.txt
if %errorlevel%==1 goto :test_fail
echo Successfull!!


DEL out.txt
exit /b 0

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

0 comments on commit 52cca80

Please sign in to comment.