@@ -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,117 +30,102 @@ 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
43
45
:test-setup-menu
44
46
echo 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.
54
54
echo .
55
55
echo X. Exit to main menu.
56
56
echo .
57
57
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
69
67
if errorlevel 0 goto test-setup-sqlserver
70
68
71
69
:test-setup-sqlserver
72
70
set CONFIG_NAME = MSSQL
73
- set PLATFORM = AnyCPU
71
+ set TEST_PLATFORM = AnyCPU
74
72
set LIB_FILES =
75
73
set LIB_FILES2 =
76
74
goto test-setup-generic
77
75
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 =
96
81
goto test-setup-generic
97
82
98
- :test-setup-firebirdx64
83
+ :test-setup-firebird
99
84
set 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 =
108
87
set LIB_FILES2 =
109
88
goto test-setup-generic
110
89
111
- :test-setup-sqlitex64
90
+ :test-setup-sqlite
112
91
set CONFIG_NAME = SQLite
113
- set PLATFORM = x64
114
- set LIB_FILES = lib\teamcity\sqlite\x64\*
92
+ set TEST_PLATFORM = AnyCPU
93
+ set LIB_FILES =
115
94
set LIB_FILES2 =
116
95
goto test-setup-generic
117
96
118
97
:test-setup-postgresql
119
98
set CONFIG_NAME = PostgreSQL
120
- set PLATFORM = AnyCPU
121
- set LIB_FILES = lib\teamcity\postgresql\*.dll
99
+ set TEST_PLATFORM = AnyCPU
100
+ set LIB_FILES =
122
101
set LIB_FILES2 =
123
102
goto test-setup-generic
124
103
125
104
:test-setup-mysql
126
105
set CONFIG_NAME = MySql
127
- set PLATFORM = AnyCPU
128
- set LIB_FILES = lib\teamcity\mysql\*.dll
106
+ set TEST_PLATFORM = AnyCPU
107
+ set LIB_FILES =
129
108
set LIB_FILES2 =
130
109
goto test-setup-generic
131
110
132
111
:test-setup-oracle
133
112
set CONFIG_NAME = Oracle
134
- set PLATFORM = x86
113
+ set TEST_PLATFORM = x86
135
114
set LIB_FILES = lib\teamcity\oracle\x86\*.dll
136
115
set LIB_FILES2 =
137
116
goto test-setup-generic
138
117
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
+
139
125
:test-setup-generic
140
126
set CFGNAME =
141
127
set /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 %
143
129
mkdir " %AVAILABLE_CONFIGURATIONS% \%CFGNAME% "
144
130
if /I " %LIB_FILES% " == " " goto test-setup-generic-skip-copy
145
131
copy %LIB_FILES% " %AVAILABLE_CONFIGURATIONS% \%CFGNAME% "
@@ -164,9 +150,15 @@ copy "%FOLDER%\*" "%CURRENT_CONFIGURATION%"
164
150
echo Configuration activated.
165
151
goto main-menu
166
152
167
- :test-run
153
+ :test-run-32
154
+ SET NUNITPLATFORM = --x86
155
+ goto test-run
156
+
157
+ :test-run-64
168
158
SET NUNITPLATFORM =
169
- IF /I " %PLATFORM% " NEQ " x64" set NUNITPLATFORM = --x86
159
+ goto test-run
160
+
161
+ :test-run
170
162
start " nunit3-console" cmd /K %NUNIT% %NUNITPLATFORM% --agents=1 --process=separate NHibernate.nunit
171
163
goto main-menu
172
164
0 commit comments