diff options
author | Dan Moseley <danmose@microsoft.com> | 2017-02-05 07:19:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-05 07:19:42 +0300 |
commit | 295ed7b94eb78c0bfad29141ae1a0859c7232f77 (patch) | |
tree | c70057be113f8854adbe13dd81bd325abdf37f37 /run-test.cmd | |
parent | 85ce0b36efd7e21cc0708f06eabd259aceadcdb3 (diff) |
Fix run-tests.bat (#15811)
Diffstat (limited to 'run-test.cmd')
-rw-r--r-- | run-test.cmd | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/run-test.cmd b/run-test.cmd index 243dd8e14b..acbeb88746 100644 --- a/run-test.cmd +++ b/run-test.cmd @@ -1,16 +1,24 @@ @if not defined _echo @echo off - +setlocal :: To run tests outside of MSBuild.exe -:: %1 is the path to the tests\<OSConfig> folder -:: %2 is the path to the packages folder +:: %1 is the path to the bin\<OSConfig> folder +:: %2 is the path to the tools\testdotnetcli folder + +set LOCATION=%1 +set RUNTIME_PATH=%2 + +if "%LOCATION%" == "" set LOCATION=%~dp0\bin\Windows_NT.AnyCPU.Debug +if "%RUNTIME_PATH%" == "" set RUNTIME_PATH=%~dp0\Tools\testdotnetcli -pushd %1 +pushd %LOCATION% FOR /D %%F IN (*.Tests) DO ( - IF EXIST %%F\netcoreapp1.0 ( - pushd %%F\netcoreapp1.0 + IF EXIST %%F\netcoreapp ( + pushd %%F\netcoreapp + @echo Looking in %cd%... IF EXIST RunTests.cmd ( - CALL RunTests.cmd %2 + @echo ... found tests + CALL RunTests.cmd %RUNTIME_PATH% ) popd ) |