Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3024b0a

Browse files
committed
Support for running contribcheck on msvc
1 parente69f7f4 commit3024b0a

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
@echooff
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
SETSTARTDIR=%CD%
@@ -10,6 +10,7 @@ set what=
1010
if /I"%1"=="check"SETwhat=CHECK
1111
if /I"%1"=="installcheck"SETwhat=INSTALLCHECK
1212
if /I"%1"=="plcheck"SETwhat=PLCHECK
13+
if /I"%1"=="contribcheck"SETwhat=CONTRIBCHECK
1314
if"%what%"==""goto usage
1415

1516
SETCONFIG=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-
SETPATH=..\..\..\%CONFIG%\libpq;%PATH%
23+
SETPATH=..\..\..\%CONFIG%\libpq;..\..\%CONFIG%\libpq;%PATH%
2324

2425
SETTOPDIR=%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
SETE=%ERRORLEVEL%
3638

3739
cd%STARTDIR%
@@ -69,3 +71,25 @@ del regress.tmp.bat
6971
setE=%ERRORLEVEL%
7072
cd ..
7173
exit /b%E%
74+
75+
76+
REM Check contrib modules
77+
:contribcheck
78+
cd ..\..\..\contrib
79+
for /d%%dIN (*)doifexist%%d\sqlifexist%%d\expected (
80+
call :onecontribcheck%%d
81+
iferrorlevel1exit /b1
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+
setE=%ERRORLEVEL%
94+
cd ..
95+
exit /b%E%

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp