Skip to content

Commit 3024b0a

Browse files
committed
Support for running contribcheck on msvc
1 parent e69f7f4 commit 3024b0a

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

doc/src/sgml/install-win32.sgml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.35 2007/03/21 19:22:52 mha Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.36 2007/03/23 09:57:55 mha Exp $ -->
22

33
<chapter id="install-win32">
44
<title>Installation on <productname>Windows</productname></title>
@@ -269,6 +269,9 @@
269269
<userinput>
270270
vcregress plcheck
271271
</userinput>
272+
<userinput>
273+
vcregress contribcheck
274+
</userinput>
272275
</screen>
273276

274277
To change the schedule used (default is the parallel), append it to the

src/tools/msvc/vcregress.bat

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
REM $PostgreSQL: pgsql/src/tools/msvc/vcregress.bat,v 1.5 2007/03/21 16:21:40 mha Exp $
2+
REM $PostgreSQL: pgsql/src/tools/msvc/vcregress.bat,v 1.6 2007/03/23 09:57:55 mha Exp $
33

44
SETLOCAL
55
SET STARTDIR=%CD%
@@ -10,6 +10,7 @@ set what=
1010
if /I "%1"=="check" SET what=CHECK
1111
if /I "%1"=="installcheck" SET what=INSTALLCHECK
1212
if /I "%1"=="plcheck" SET what=PLCHECK
13+
if /I "%1"=="contribcheck" SET what=CONTRIBCHECK
1314
if "%what%"=="" goto usage
1415

1516
SET CONFIG=Debug
@@ -19,7 +20,7 @@ copy %CONFIG%\refint\refint.dll contrib\spi\
1920
copy %CONFIG%\autoinc\autoinc.dll contrib\spi\
2021
copy %CONFIG%\regress\regress.dll src\test\regress\
2122

22-
SET PATH=..\..\..\%CONFIG%\libpq;%PATH%
23+
SET PATH=..\..\..\%CONFIG%\libpq;..\..\%CONFIG%\libpq;%PATH%
2324

2425
SET TOPDIR=%CD%
2526
cd src\test\regress
@@ -32,6 +33,7 @@ SET PERL5LIB=..\..\tools\msvc
3233
if "%what%"=="INSTALLCHECK" ..\..\..\%CONFIG%\pg_regress\pg_regress --psqldir=..\..\..\%CONFIG%\psql --schedule=%SCHEDULE%_schedule --multibyte=SQL_ASCII --load-language=plpgsql --no-locale
3334
if "%what%"=="CHECK" ..\..\..\%CONFIG%\pg_regress\pg_regress --psqldir=..\..\..\%CONFIG%\psql --schedule=%SCHEDULE%_schedule --multibyte=SQL_ASCII --load-language=plpgsql --no-locale --temp-install=./tmp_check --top-builddir=%TOPDIR% --temp-port=%TEMPPORT%
3435
if "%what%"=="PLCHECK" call :plcheck
36+
if "%what%"=="CONTRIBCHECK" call :contribcheck
3537
SET E=%ERRORLEVEL%
3638

3739
cd %STARTDIR%
@@ -69,3 +71,25 @@ del regress.tmp.bat
6971
set E=%ERRORLEVEL%
7072
cd ..
7173
exit /b %E%
74+
75+
76+
REM Check contrib modules
77+
:contribcheck
78+
cd ..\..\..\contrib
79+
for /d %%d IN (*) do if exist %%d\sql if exist %%d\expected (
80+
call :onecontribcheck %%d
81+
if errorlevel 1 exit /b 1
82+
)
83+
goto :eof
84+
85+
REM Check a single contrib module
86+
:onecontribcheck
87+
cd %1
88+
89+
perl ../../src/tools/msvc/getregress.pl > regress.tmp.bat
90+
call regress.tmp.bat
91+
del regress.tmp.bat
92+
..\..\%CONFIG%\pg_regress\pg_regress --psqldir=..\..\%CONFIG%\psql --no-locale --dbname=contrib_regression %TESTS%
93+
set E=%ERRORLEVEL%
94+
cd ..
95+
exit /b %E%

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy