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

run-test.cmd - github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2ef932a116f73070a351bd7ce16b85f9a23f1468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@if not defined _echo @echo off
setlocal 
:: To run tests outside of MSBuild.exe
:: %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\bin\runtime\netcoreapp-Windows_NT-Debug-x64

pushd %LOCATION%

FOR /D %%F IN (*.Tests) DO (
	IF EXIST %%F\netcoreapp (
		pushd %%F\netcoreapp
                @echo Looking in %cd%...
		IF EXIST RunTests.cmd (
                        @echo ... found tests
			CALL RunTests.cmd %RUNTIME_PATH%
		)
		popd
	)
)

popd