Last change
on this file since 12214 was
11907,
checked in by jkarder, 10 years ago
|
#2211: merged r11450, r11466, r11483, r11514, r11515 and r11890 into stable
#2234: merged r11308, r11309, r11326, r11337, r11340, r11339, r11342, r11361, r11427, r11447, r11464, r11542, r11544, r11545, r11547, r11548 into stable
#2239: merged r11437, r11439 and r11472 into stable
#2262: merged r11436, r11440, r11471, r11474, r11477, r11479, r11480, r11605, r11657, r11721, r11734, r11735, r11787, r11788, r11789 and r11826 into stable
|
File size:
1.2 KB
|
Line | |
---|
1 | @ECHO OFF
|
---|
2 |
|
---|
3 | SET /P BUILDBEFORETEST=Should the test project be rebuilt [n]:
|
---|
4 |
|
---|
5 | SET TESTCATEGORY=%~1
|
---|
6 |
|
---|
7 | IF "%TESTCATEGORY%"=="" SET TESTCATEGORY=Essential
|
---|
8 | SET /P USERCATEGORY=Which category do you want to run [%TESTCATEGORY%]:
|
---|
9 | IF "%USERCATEGORY%" NEQ "" SET TESTCATEGORY=%USERCATEGORY%
|
---|
10 |
|
---|
11 | set /P TESTPLATFORM=Which platform to run the tests [x64]:
|
---|
12 | IF "%TESTPLATFORM%"=="" SET TESTPLATFORM=x64
|
---|
13 |
|
---|
14 | FOR /F "tokens=1,3 delims= " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0"') DO (
|
---|
15 | IF "%%A"=="MSBuildToolsPath" SET MSBUILDPATH=%%B)
|
---|
16 |
|
---|
17 | IF "%BUILDBEFORETEST%" NEQ "" (
|
---|
18 | ECHO Building tests project ...
|
---|
19 | %MSBUILDPATH%msbuild.exe "HeuristicLab 3.3 Tests.sln" /target:Rebuild /p:Configuration="Debug",Platform="%TESTPLATFORM%" /m:2 /nologo /verbosity:q /clp:ErrorsOnly
|
---|
20 | )
|
---|
21 |
|
---|
22 | ECHO Test starting for category %TESTCATEGORY%...
|
---|
23 |
|
---|
24 | FOR /F "tokens=1,2,* delims= " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7"') DO (
|
---|
25 | IF "%%A"=="12.0" SET VSPATH=%%C)
|
---|
26 |
|
---|
27 | "%VSPATH%Common7\IDE\CommonExtensions\Microsoft\TestWindow\VSTest.Console.exe" bin\HeuristicLab.Tests.dll /Framework:framework40 /Platform:%TESTPLATFORM% /TestCaseFilter:"TestCategory=%TESTCATEGORY%"
|
---|
28 |
|
---|
29 | PAUSE |
---|
Note: See
TracBrowser
for help on using the repository browser.