copying *.sh scripts for testing on linux

This commit is contained in:
Jake Norbut committed 2019-03-13 11:40:16 -05:00
1 parent 3821dfb8ff
commit 84e443ee4b
1 file changed
+22
+22
View File
@@ -1,11 +1,18 @@
@echo off
@setlocal
SETLOCAL
if [%1]==[] goto PRINT_USAGE
if [%3] == [r] (
set build_type=release
) else (
set build_type=debug
)
echo(%0)
echo(%1)
echo(%2)
echo(%3)
echo %build_type%
if "%SPARKVM_PORT%"=="" set SPARKVM_PORT=22
echo.
@@ -16,6 +23,8 @@ dotnet publish -f netcoreapp2.1
cd ..\..\..\build\Debug\bin\netcoreapp2.1\publish
bash -c "scp * bts@sparkvm:~/spark/build/ninja_%build_type%/server/"
copy /Y %~dp0\..\src\client\spark_test\system_test_scripts\*.sh ..\..\net471\
cd ../../net471
bash -c "scp *.sh bts@sparkvm:~/spark/build/ninja_%build_type%/server/"
@@ -23,3 +32,16 @@ ssh bts@sparkvm -p %SPARKVM_PORT% -o StrictHostKeyChecking=no -t "cd /home/bts/s
ENDLOCAL
popd
goto END
:PRINT_USAGE
echo Runs a spark test on a linux machine.
echo(
echo usage:
echo run_sparkcmd_test_linux.cmd test_name [r]
echo(
echo r Specifies the build should be in release mode
echo(
goto END
:END