@@ -10,9 +10,10 @@ set NUNIT="%~dp0Tools\NUnit.ConsoleRunner.3.7.0\tools\nunit3-console.exe"
1010:main-menu
1111echo ========================= NHIBERNATE BUILD MENU ==========================
1212echo --- 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).
1617echo .
1718echo --- BUILD ---
1819echo E. Build NHibernate (Debug)
@@ -29,117 +30,102 @@ echo --- Exit ---
2930echo X. Make the beautiful build menu go away.
3031echo .
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
4042if errorlevel 1 goto test-activate
4143if errorlevel 0 goto test-setup-menu
4244
4345:test-setup-menu
4446echo A. Add a test configuration for SQL Server.
45- echo B. Add a test configuration for Firebird (x86).
46- echo C. Add a test configuration for Firebird (x64). [not recommended]
47- echo D. Add a test configuration for SQLite (x86).
48- echo E. Add a test configuration for SQLite (x64). [not recommended]
49- echo F. Add a test configuration for PostgreSQL.
50- echo G. Add a test configuration for Oracle.
51- echo H. Add a test configuration for SQL Server Compact (x86).
52- echo I. Add a test configuration for SQL Server Compact (x64).
53- echo J. Add a test configuration for MySql.
47+ echo B. Add a test configuration for Firebird.
48+ echo C. Add a test configuration for SQLite.
49+ echo D. Add a test configuration for PostgreSQL.
50+ echo E. Add a test configuration for Oracle.
51+ echo F. Add a test configuration for Oracle with managed driver.
52+ echo G. Add a test configuration for SQL Server Compact.
53+ echo H. Add a test configuration for MySql.
5454echo .
5555echo X. Exit to main menu.
5656echo .
5757
58- %BUILDTOOL% prompt ABCDEFGHIJX
59- if errorlevel 10 goto main-menu
60- if errorlevel 9 goto test-setup-mysql
61- if errorlevel 8 goto test-setup-sqlservercex64
62- if errorlevel 7 goto test-setup-sqlservercex86
63- if errorlevel 6 goto test-setup-oracle
64- if errorlevel 5 goto test-setup-postgresql
65- if errorlevel 4 goto test-setup-sqlitex64
66- if errorlevel 3 goto test-setup-sqlitex86
67- if errorlevel 2 goto test-setup-firebirdx64
68- if errorlevel 1 goto test-setup-firebirdx86
58+ %BUILDTOOL% prompt ABCDEFGHX
59+ if errorlevel 8 goto main-menu
60+ if errorlevel 7 goto test-setup-mysql
61+ if errorlevel 6 goto test-setup-sqlserverce
62+ if errorlevel 5 goto test-setup-oracle-managed
63+ if errorlevel 4 goto test-setup-oracle
64+ if errorlevel 3 goto test-setup-postgresql
65+ if errorlevel 2 goto test-setup-sqlite
66+ if errorlevel 1 goto test-setup-firebird
6967if errorlevel 0 goto test-setup-sqlserver
7068
7169:test-setup-sqlserver
7270set CONFIG_NAME = MSSQL
73- set PLATFORM = AnyCPU
71+ set TEST_PLATFORM = AnyCPU
7472set LIB_FILES =
7573set LIB_FILES2 =
7674goto test-setup-generic
7775
78- :test-setup-sqlservercex86
79- set CONFIG_NAME = SqlServerCe32
80- set PLATFORM = AnyCPU
81- set LIB_FILES = lib\teamcity\SqlServerCe\*.dll
82- set LIB_FILES2 = lib\teamcity\SqlServerCe\X86\*.dll
83- goto test-setup-generic
84-
85- :test-setup-sqlservercex64
86- set CONFIG_NAME = SqlServerCe64
87- set PLATFORM = AnyCPU
88- set LIB_FILES = lib\teamcity\sqlServerCe\*.dll
89- set LIB_FILES2 = lib\teamcity\sqlServerCe\AMD64\*.dll
90- goto test-setup-generic
91-
92- :test-setup-firebirdx86
93- set CONFIG_NAME = FireBird
94- set PLATFORM = x86
95- set LIB_FILES = lib\teamcity\firebird\*.dll
76+ :test-setup-sqlserverce
77+ set CONFIG_NAME = SqlServerCe
78+ set TEST_PLATFORM = AnyCPU
79+ set LIB_FILES =
80+ set LIB_FILES2 =
9681goto test-setup-generic
9782
98- :test-setup-firebirdx64
83+ :test-setup-firebird
9984set CONFIG_NAME = FireBird
100- set PLATFORM = x64
101- set LIB_FILES = lib\teamcity\firebird\*.dll
102- goto test-setup-generic
103-
104- :test-setup-sqlitex86
105- set CONFIG_NAME = SQLite
106- set PLATFORM = x86
107- set LIB_FILES = lib\teamcity\sqlite\x86\*
85+ set TEST_PLATFORM = AnyCPU
86+ set LIB_FILES =
10887set LIB_FILES2 =
10988goto test-setup-generic
11089
111- :test-setup-sqlitex64
90+ :test-setup-sqlite
11291set CONFIG_NAME = SQLite
113- set PLATFORM = x64
114- set LIB_FILES = lib\teamcity\sqlite\x64\*
92+ set TEST_PLATFORM = AnyCPU
93+ set LIB_FILES =
11594set LIB_FILES2 =
11695goto test-setup-generic
11796
11897:test-setup-postgresql
11998set CONFIG_NAME = PostgreSQL
120- set PLATFORM = AnyCPU
121- set LIB_FILES = lib\teamcity\postgresql\*.dll
99+ set TEST_PLATFORM = AnyCPU
100+ set LIB_FILES =
122101set LIB_FILES2 =
123102goto test-setup-generic
124103
125104:test-setup-mysql
126105set CONFIG_NAME = MySql
127- set PLATFORM = AnyCPU
128- set LIB_FILES = lib\teamcity\mysql\*.dll
106+ set TEST_PLATFORM = AnyCPU
107+ set LIB_FILES =
129108set LIB_FILES2 =
130109goto test-setup-generic
131110
132111:test-setup-oracle
133112set CONFIG_NAME = Oracle
134- set PLATFORM = x86
113+ set TEST_PLATFORM = x86
135114set LIB_FILES = lib\teamcity\oracle\x86\*.dll
136115set LIB_FILES2 =
137116goto test-setup-generic
138117
118+ :test-setup-oracle-managed
119+ set CONFIG_NAME = Oracle-Managed
120+ set TEST_PLATFORM = AnyCPU
121+ set LIB_FILES =
122+ set LIB_FILES2 =
123+ goto test-setup-generic
124+
139125:test-setup-generic
140126set CFGNAME =
141127set /p CFGNAME = Enter a name for your test configuration or press enter to use default name:
142- if /I " %CFGNAME% " == " " set CFGNAME = %CONFIG_NAME% -%PLATFORM %
128+ if /I " %CFGNAME% " == " " set CFGNAME = %CONFIG_NAME% -%TEST_PLATFORM %
143129mkdir " %AVAILABLE_CONFIGURATIONS% \%CFGNAME% "
144130if /I " %LIB_FILES% " == " " goto test-setup-generic-skip-copy
145131copy %LIB_FILES% " %AVAILABLE_CONFIGURATIONS% \%CFGNAME% "
@@ -164,9 +150,15 @@ copy "%FOLDER%\*" "%CURRENT_CONFIGURATION%"
164150echo Configuration activated.
165151goto main-menu
166152
167- :test-run
153+ :test-run-32
154+ SET NUNITPLATFORM = --x86
155+ goto test-run
156+
157+ :test-run-64
168158SET NUNITPLATFORM =
169- IF /I " %PLATFORM% " NEQ " x64" set NUNITPLATFORM = --x86
159+ goto test-run
160+
161+ :test-run
170162start " nunit3-console" cmd /K %NUNIT% %NUNITPLATFORM% --agents=1 --process=separate NHibernate.nunit
171163goto main-menu
172164
0 commit comments