From 84e443ee4b5d22c67f03fc45e7be53cb188da38a Mon Sep 17 00:00:00 2001 From: Jake Norbut Date: Wed, 13 Mar 2019 11:40:16 -0500 Subject: [PATCH] copying *.sh scripts for testing on linux --- tools/run_sparkcmd_test_Linux.cmd | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tools/run_sparkcmd_test_Linux.cmd b/tools/run_sparkcmd_test_Linux.cmd index 77b96532d..01186ea69 100644 --- a/tools/run_sparkcmd_test_Linux.cmd +++ b/tools/run_sparkcmd_test_Linux.cmd @@ -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