Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Moseley <danmose@microsoft.com>2017-02-05 07:19:42 +0300
committerGitHub <noreply@github.com>2017-02-05 07:19:42 +0300
commit295ed7b94eb78c0bfad29141ae1a0859c7232f77 (patch)
treec70057be113f8854adbe13dd81bd325abdf37f37 /run-test.cmd
parent85ce0b36efd7e21cc0708f06eabd259aceadcdb3 (diff)
Fix run-tests.bat (#15811)
Diffstat (limited to 'run-test.cmd')
-rw-r--r--run-test.cmd22
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
)