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

Commite8a85e6

Browse files
committed
Add support for running regression tests on procedural languages
1 parent3c5d5f0 commite8a85e6

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

‎src/tools/msvc/vcregress.bat

Lines changed: 32 additions & 1 deletion
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.4 2007/03/2115:39:03 mha Exp $
2+
REM $PostgreSQL: pgsql/src/tools/msvc/vcregress.bat,v 1.5 2007/03/2116:21:40 mha Exp $
33

44
SETLOCAL
55
SETSTARTDIR=%CD%
@@ -9,6 +9,7 @@ if exist src\tools\msvc\buildenv.bat call src\tools\msvc\buildenv.bat
99
setwhat=
1010
if /I"%1"=="check"SETwhat=CHECK
1111
if /I"%1"=="installcheck"SETwhat=INSTALLCHECK
12+
if /I"%1"=="plcheck"SETwhat=PLCHECK
1213
if"%what%"==""goto usage
1314

1415
SETCONFIG=Debug
@@ -30,6 +31,7 @@ SET PERL5LIB=..\..\tools\msvc
3031

3132
if"%what%"=="INSTALLCHECK" ..\..\..\%CONFIG%\pg_regress\pg_regress --psqldir=..\..\..\%CONFIG%\psql --schedule=%SCHEDULE%_schedule --multibyte=SQL_ASCII --load-language=plpgsql --no-locale
3233
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%
34+
if"%what%"=="PLCHECK"call :plcheck
3335
SETE=%ERRORLEVEL%
3436

3537
cd%STARTDIR%
@@ -38,3 +40,32 @@ exit /b %E%
3840
:usage
3941
echo"Usage: vcregress <check|installcheck> [schedule]"
4042
goto :eof
43+
44+
45+
REM Check procedural languages
46+
REM Some workarounds due to inconsistently named directories
47+
:plcheck
48+
cd ..\..\PL
49+
FOR /D%%dIN (*)doifexist%%d\sqlifexist%%d\expected (
50+
ifexist ..\..\%CONFIG%\%%dcall :oneplcheck%%d
51+
iferrorlevel1exit /b1
52+
ifexist ..\..\%CONFIG%\pl%%dcall :oneplcheck%%d
53+
iferrorlevel1exit /b1
54+
)
55+
goto :eof
56+
57+
REM Check a single procedural language
58+
:oneplcheck
59+
echo Checking%1
60+
cd%1
61+
SETPL=%1
62+
IF%PL%==plpythonSETPL=plpythonu
63+
IF%PL%==tclSETPL=pltcl
64+
65+
perl ../../tools/msvc/getregress.pl> regress.tmp.bat
66+
call regress.tmp.bat
67+
del regress.tmp.bat
68+
..\..\..\%CONFIG%\pg_regress\pg_regress --psqldir=..\..\..\%CONFIG%\psql --no-locale --load-language=%PL%%TESTS%
69+
setE=%ERRORLEVEL%
70+
cd ..
71+
exit /b%E%

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp