Skip to content

Commit 1bf282c

Browse files
Allow running test in 32 or 64bits mode
1 parent b7f16b0 commit 1bf282c

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

ShowBuildMenu.bat

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ set NUNIT="%~dp0Tools\NUnit.ConsoleRunner.3.7.0\tools\nunit3-console.exe"
1010
:main-menu
1111
echo ========================= NHIBERNATE BUILD MENU ==========================
1212
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).
1617
echo.
1718
echo --- BUILD ---
1819
echo E. Build NHibernate (Debug)
@@ -29,14 +30,15 @@ echo --- Exit ---
2930
echo X. Make the beautiful build menu go away.
3031
echo.
3132

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
4042
if errorlevel 1 goto test-activate
4143
if errorlevel 0 goto test-setup-menu
4244

@@ -166,9 +168,15 @@ copy "%FOLDER%\*" "%CURRENT_CONFIGURATION%"
166168
echo Configuration activated.
167169
goto main-menu
168170

169-
:test-run
171+
:test-run-32
172+
SET NUNITPLATFORM=--x86
173+
goto test-run
174+
175+
:test-run-64
170176
SET NUNITPLATFORM=
171-
IF /I "%PLATFORM%" NEQ "x64" set NUNITPLATFORM=--x86
177+
goto test-run
178+
179+
:test-run
172180
start "nunit3-console" cmd /K %NUNIT% %NUNITPLATFORM% --agents=1 --process=separate NHibernate.nunit
173181
goto main-menu
174182

0 commit comments

Comments
 (0)