Free cookie consent management tool by TermsFeed Policy Generator

source: stable/Test.cmd @ 15617

Last change on this file since 15617 was 13305, checked in by ascheibe, 9 years ago

#2428 merged r12793, r13093, r13219, r13253 into stable

File size: 1.2 KB
Line 
1@ECHO OFF
2
3SET /P BUILDBEFORETEST=Should the test project be rebuilt [n]:
4
5SET TESTCATEGORY=%~1
6
7IF "%TESTCATEGORY%"=="" SET TESTCATEGORY=Essential
8SET /P USERCATEGORY=Which category do you want to run  [%TESTCATEGORY%]:
9IF "%USERCATEGORY%" NEQ "" SET TESTCATEGORY=%USERCATEGORY%
10
11set /P TESTPLATFORM=Which platform to run the tests [x64]:
12IF "%TESTPLATFORM%"=="" SET TESTPLATFORM=x64
13
14FOR /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   
17IF "%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
22ECHO Test starting for category %TESTCATEGORY%...
23
24FOR /F "tokens=1,2,* delims=   " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7"') DO (
25  IF "%%A"=="14.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
29PAUSE
Note: See TracBrowser for help on using the repository browser.