Skip to content

Commit ba58fdc

Browse files
Merge pull request #1401 from fredericDelaporte/CleanUpDbTests
Clean up db tests dependencies
2 parents 8da7a19 + 1c17625 commit ba58fdc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+94
-8308
lines changed

ShowBuildMenu.bat

Lines changed: 62 additions & 70 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,117 +30,102 @@ 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

4345
:test-setup-menu
4446
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.
5454
echo.
5555
echo X. Exit to main menu.
5656
echo.
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
6967
if errorlevel 0 goto test-setup-sqlserver
7068

7169
:test-setup-sqlserver
7270
set CONFIG_NAME=MSSQL
73-
set PLATFORM=AnyCPU
71+
set TEST_PLATFORM=AnyCPU
7472
set LIB_FILES=
7573
set LIB_FILES2=
7674
goto 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=
9681
goto test-setup-generic
9782

98-
:test-setup-firebirdx64
83+
:test-setup-firebird
9984
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=
10887
set LIB_FILES2=
10988
goto test-setup-generic
11089

111-
:test-setup-sqlitex64
90+
:test-setup-sqlite
11291
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=
11594
set LIB_FILES2=
11695
goto test-setup-generic
11796

11897
:test-setup-postgresql
11998
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=
122101
set LIB_FILES2=
123102
goto test-setup-generic
124103

125104
:test-setup-mysql
126105
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=
129108
set LIB_FILES2=
130109
goto test-setup-generic
131110

132111
:test-setup-oracle
133112
set CONFIG_NAME=Oracle
134-
set PLATFORM=x86
113+
set TEST_PLATFORM=x86
135114
set LIB_FILES=lib\teamcity\oracle\x86\*.dll
136115
set LIB_FILES2=
137116
goto 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
140126
set CFGNAME=
141127
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%
143129
mkdir "%AVAILABLE_CONFIGURATIONS%\%CFGNAME%"
144130
if /I "%LIB_FILES%"=="" goto test-setup-generic-skip-copy
145131
copy %LIB_FILES% "%AVAILABLE_CONFIGURATIONS%\%CFGNAME%"
@@ -164,9 +150,15 @@ copy "%FOLDER%\*" "%CURRENT_CONFIGURATION%"
164150
echo Configuration activated.
165151
goto main-menu
166152

167-
:test-run
153+
:test-run-32
154+
SET NUNITPLATFORM=--x86
155+
goto test-run
156+
157+
:test-run-64
168158
SET NUNITPLATFORM=
169-
IF /I "%PLATFORM%" NEQ "x64" set NUNITPLATFORM=--x86
159+
goto test-run
160+
161+
:test-run
170162
start "nunit3-console" cmd /K %NUNIT% %NUNITPLATFORM% --agents=1 --process=separate NHibernate.nunit
171163
goto main-menu
172164

Binary file not shown.

lib/teamcity/mysql/mysql.data.dll

-415 KB
Binary file not shown.

lib/teamcity/oracle-managed/common/Oracle.ManagedDataAccess.Catalog.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)