@@ -10,9 +10,10 @@ set NUNIT="%~dp0Tools\NUnit.ConsoleRunner.3.7.0\tools\nunit3-console.exe"
10
10
:main-menu
11
11
echo ========================= NHIBERNATE BUILD MENU ==========================
12
12
echo --- TESTING ---
13
- echo B. (Step 1) Set up a new test configuration for a particular database.
14
- echo C. (Step 2) Activate a test configuration.
15
- echo D. (Step 3) Run tests using active configuration (Needs built in Visual Studio).
13
+ echo A. (Step 1) Set up a new test configuration for a particular database.
14
+ echo B. (Step 2) Activate a test configuration.
15
+ echo C. (Step 3) Run tests using active configuration with 32bits runner (Needs built in Visual Studio).
16
+ echo D. Or run tests using active configuration with 64bits runner (Needs built in Visual Studio).
16
17
echo .
17
18
echo --- BUILD ---
18
19
echo E. Build NHibernate (Debug)
@@ -29,14 +30,15 @@ echo --- Exit ---
29
30
echo X. Make the beautiful build menu go away.
30
31
echo .
31
32
32
- %BUILDTOOL% prompt BCDEFGHIX
33
- if errorlevel 8 goto end
34
- if errorlevel 7 goto teamcity-menu
35
- if errorlevel 6 goto build-async
36
- if errorlevel 5 goto build-release-package
37
- if errorlevel 4 goto build-release
38
- if errorlevel 3 goto build-debug
39
- if errorlevel 2 goto test-run
33
+ %BUILDTOOL% prompt ABCDEFGHIX
34
+ if errorlevel 9 goto end
35
+ if errorlevel 8 goto teamcity-menu
36
+ if errorlevel 7 goto build-async
37
+ if errorlevel 6 goto build-release-package
38
+ if errorlevel 5 goto build-release
39
+ if errorlevel 4 goto build-debug
40
+ if errorlevel 3 goto test-run-64
41
+ if errorlevel 2 goto test-run-32
40
42
if errorlevel 1 goto test-activate
41
43
if errorlevel 0 goto test-setup-menu
42
44
@@ -166,9 +168,15 @@ copy "%FOLDER%\*" "%CURRENT_CONFIGURATION%"
166
168
echo Configuration activated.
167
169
goto main-menu
168
170
169
- :test-run
171
+ :test-run-32
172
+ SET NUNITPLATFORM = --x86
173
+ goto test-run
174
+
175
+ :test-run-64
170
176
SET NUNITPLATFORM =
171
- IF /I " %PLATFORM% " NEQ " x64" set NUNITPLATFORM = --x86
177
+ goto test-run
178
+
179
+ :test-run
172
180
start " nunit3-console" cmd /K %NUNIT% %NUNITPLATFORM% --agents=1 --process=separate NHibernate.nunit
173
181
goto main-menu
174
182
0 commit comments