File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ call :del contrib\cube\cubeparse.h
45
45
call :del contrib\seg\segparse.c
46
46
call :del contrib\seg\segparse.h
47
47
48
+ if exist src\test\regress\tmp_check rd /s /q src\test\regress\tmp_check
49
+ call :del contrib\spi\refint.dll
50
+ call :del contrib\spi\autoinc.dll
51
+ call :del src\test\regress\regress.dll
48
52
49
53
cd %D%
50
54
goto :eof
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ SETLOCAL
3
+ SET STARTDIR = %CD%
4
+ if exist ..\..\..\src\tools\msvc\vcregress.bat cd ..\..\..
5
+ if exist src\tools\msvc\buildenv.bat call src\tools\msvc\buildenv.bat
6
+
7
+ set what =
8
+ if /I " %1 " == " check" SET what = CHECK
9
+ if /I " %1 " == " installcheck" SET what = INSTALLCHECK
10
+ if " %what% " == " " goto usage
11
+
12
+ SET CONFIG = Debug
13
+ if exist release\postgres\postgres.exe SET CONFIG = Release
14
+
15
+ copy %CONFIG% \refint\refint.dll contrib\spi\
16
+ copy %CONFIG% \autoinc\autoinc.dll contrib\spi\
17
+ copy %CONFIG% \regress\regress.dll src\test\regress\
18
+
19
+ SET PATH = ..\..\..\%CONFIG% \libpq;%PATH%
20
+
21
+ SET TOPDIR = %CD%
22
+ cd src\test\regress
23
+ SET SCHEDULE = parallel
24
+ SET TEMPPORT = 54321
25
+ IF NOT " %2 " == " " SET SCHEDULE = %2
26
+
27
+ if " %what% " == " INSTALLCHECK" ..\..\..\%CONFIG% \pg_regress\pg_regress --psqldir=..\..\..\%CONFIG% \psql --schedule=%SCHEDULE% _schedule --multibyte=SQL_ASCII --load-language=plpgsql --no-locale
28
+ 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%
29
+
30
+ cd %STARTDIR%
31
+ goto :eof
32
+
33
+ :usage
34
+ echo " Usage: vcregress <check|installcheck> [schedule]"
35
+ goto :eof
You can’t perform that action at this time.
0 commit comments