1
1
@ echo off
2
- REM $PostgreSQL: pgsql/src/tools/msvc/vcregress.bat,v 1.12 2007/06/12 11:07:34 mha Exp $
2
+ REM $PostgreSQL: pgsql/src/tools/msvc/vcregress.bat,v 1.13 2007/06/26 11:43:56 mha Exp $
3
3
4
4
SETLOCAL
5
5
SET STARTDIR = %CD%
@@ -32,6 +32,8 @@ IF NOT "%2"=="" SET SCHEDULE=%2
32
32
IF " %what% " == " ECPGCHECK" (
33
33
cd " %STARTDIR% "
34
34
msbuild ecpg_regression.proj /p:config=%CONFIG%
35
+ REM exit fix for pre-2003 shell especially if used on buildfarm
36
+ if " %XP_EXIT_FIX% " == " yes" if errorlevel 1 exit 1
35
37
if errorlevel 1 exit /b 1
36
38
cd " %TOPDIR% "
37
39
cd src\interfaces\ecpg\test
@@ -48,6 +50,8 @@ if "%what%"=="CONTRIBCHECK" call :contribcheck
48
50
SET E = %ERRORLEVEL%
49
51
50
52
cd " %STARTDIR% "
53
+ REM exit fix for pre-2003 shell especially if used on buildfarm
54
+ if " %XP_EXIT_FIX% " == " yes" exit %E%
51
55
exit /b %E%
52
56
53
57
:usage
@@ -61,8 +65,11 @@ REM Some workarounds due to inconsistently named directories
61
65
cd ..\..\PL
62
66
FOR /D %%d IN (*) do if exist %%d \sql if exist %%d \expected (
63
67
if exist ..\..\%CONFIG% \%%d call :oneplcheck %%d
68
+ REM exit fix for pre-2003 shell especially if used on buildfarm
69
+ if " %XP_EXIT_FIX% " == " yes" if errorlevel 1 exit 1
64
70
if errorlevel 1 exit /b 1
65
71
if exist ..\..\%CONFIG% \pl%%d call :oneplcheck %%d
72
+ if " %XP_EXIT_FIX% " == " yes" if errorlevel 1 exit 1
66
73
if errorlevel 1 exit /b 1
67
74
)
68
75
goto :eof
@@ -83,6 +90,8 @@ del regress.tmp.bat
83
90
..\..\..\%CONFIG% \pg_regress\pg_regress --psqldir=..\..\..\%CONFIG% \psql --no-locale --load-language=%PL% %TESTS%
84
91
set E = %ERRORLEVEL%
85
92
cd ..
93
+ REM exit fix for pre-2003 shell especially if used on buildfarm
94
+ if " %XP_EXIT_FIX% " == " yes" exit %E%
86
95
exit /b %E%
87
96
88
97
@@ -94,6 +103,8 @@ for /d %%d IN (*) do if exist %%d\sql if exist %%d\expected if exist %%d\Makefil
94
103
call :onecontribcheck %%d
95
104
if errorlevel 1 set CONTRIBERROR = 1
96
105
)
106
+ REM exit fix for pre-2003 shell especially if used on buildfarm
107
+ if " %XP_EXIT_FIX% " == " yes" if %CONTRIBERROR% == 1 exit 1
97
108
if %CONTRIBERROR% == 1 exit /b 1
98
109
goto :eof
99
110
@@ -110,4 +121,6 @@ del regress.tmp.bat
110
121
..\..\%CONFIG% \pg_regress\pg_regress --psqldir=..\..\%CONFIG% \psql --no-locale --dbname=contrib_regression %TESTS%
111
122
set E = %ERRORLEVEL%
112
123
cd ..
124
+ REM exit fix for pre-2003 shell especially if used on buildfarm
125
+ if " %XP_EXIT_FIX% " == " yes" exit %E%
113
126
exit /b %E%
0 commit comments