Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
34b788d6
Commit
34b788d6
authored
May 11, 2005
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give pg_regress a --load-language option, so that it can be used to test
other PLs besides plpgsql. Andrew Dunstan
parent
cc99c57e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
13 deletions
+25
-13
src/test/regress/GNUmakefile
src/test/regress/GNUmakefile
+6
-6
src/test/regress/pg_regress.sh
src/test/regress/pg_regress.sh
+19
-7
No files found.
src/test/regress/GNUmakefile
View file @
34b788d6
...
...
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.4
8 2004/11/17 18:05:06
tgl Exp $
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.4
9 2005/05/11 21:52:03
tgl Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -130,17 +130,17 @@ all-spi:
check
:
all
-
rm
-rf
./testtablespace
mkdir
./testtablespace
$(SHELL)
./pg_regress
--temp-install
--top-builddir
=
$(top_builddir)
--schedule
=
$(srcdir)
/parallel_schedule
--multibyte
=
$(MULTIBYTE)
$(MAXCONNOPT)
$(SHELL)
./pg_regress
--temp-install
--top-builddir
=
$(top_builddir)
--schedule
=
$(srcdir)
/parallel_schedule
--multibyte
=
$(MULTIBYTE)
--load-language
=
plpgsql
$(MAXCONNOPT)
installcheck
:
all
-
rm
-rf
./testtablespace
mkdir
./testtablespace
$(SHELL)
./pg_regress
--schedule
=
$(srcdir)
/serial_schedule
--multibyte
=
$(MULTIBYTE)
$(SHELL)
./pg_regress
--schedule
=
$(srcdir)
/serial_schedule
--multibyte
=
$(MULTIBYTE)
--load-language
=
plpgsql
installcheck-parallel
:
all
-
rm
-rf
./testtablespace
mkdir
./testtablespace
$(SHELL)
./pg_regress
--schedule
=
$(srcdir)
/parallel_schedule
--multibyte
=
$(MULTIBYTE)
$(MAXCONNOPT)
$(SHELL)
./pg_regress
--schedule
=
$(srcdir)
/parallel_schedule
--multibyte
=
$(MULTIBYTE)
--load-language
=
plpgsql
$(MAXCONNOPT)
# old interfaces follow...
...
...
@@ -150,10 +150,10 @@ runtest: installcheck
runtest-parallel
:
installcheck-parallel
bigtest
:
$(SHELL)
./pg_regress
--schedule
=
$(srcdir)
/serial_schedule
--multibyte
=
$(MULTIBYTE)
numeric_big
$(SHELL)
./pg_regress
--schedule
=
$(srcdir)
/serial_schedule
--multibyte
=
$(MULTIBYTE)
--load-language
=
plpgsql
numeric_big
bigcheck
:
$(SHELL)
./pg_regress
--temp-install
--top-builddir
=
$(top_builddir)
--schedule
=
$(srcdir)
/parallel_schedule
--multibyte
=
$(MULTIBYTE)
$(MAXCONNOPT)
numeric_big
$(SHELL)
./pg_regress
--temp-install
--top-builddir
=
$(top_builddir)
--schedule
=
$(srcdir)
/parallel_schedule
--multibyte
=
$(MULTIBYTE)
--load-language
=
plpgsql
$(MAXCONNOPT)
numeric_big
##
...
...
src/test/regress/pg_regress.sh
View file @
34b788d6
#! /bin/sh
# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.5
3 2005/01/15 04:15:51
tgl Exp $
# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.5
4 2005/05/11 21:52:03
tgl Exp $
me
=
`
basename
$0
`
:
${
TMPDIR
=/tmp
}
...
...
@@ -13,6 +13,8 @@ Usage: $me [options...] [extra tests...]
Options:
--debug turn on debug mode in programs that are run
--inputdir=DIR take input files from DIR (default
\`
.')
--load-language=lang load the named language before running the
tests; can appear multiple times
--max-connections=N maximum number of concurrent connections
(default is 0 meaning unlimited)
--multibyte=ENCODING use ENCODING as the multibyte encoding, and
...
...
@@ -103,6 +105,7 @@ unset multibyte
dbname
=
regression
hostname
=
localhost
maxconnections
=
0
load_langs
=
""
:
${
GMAKE
=
'@GMAKE@'
}
...
...
@@ -126,6 +129,11 @@ do
--inputdir
=
*
)
inputdir
=
`
expr
"x
$1
"
:
"x--inputdir=
\(
.*
\)
"
`
shift
;;
--load-language
=
*
)
lang
=
`
expr
"x
$1
"
:
"x--load-language=
\(
.*
\)
"
`
load_langs
=
"
$load_langs
$lang
"
unset
lang
shift
;;
--multibyte
=
*
)
multibyte
=
`
expr
"x
$1
"
:
"x--multibyte=
\(
.*
\)
"
`
shift
;;
...
...
@@ -560,16 +568,20 @@ fi
# ----------
# Install
the PL/pgSQL language in it
# Install
any requested PL languages
# ----------
if
[
"
$enable_shared
"
=
yes
]
;
then
message
"installing PL/pgSQL"
"
$bindir
/createlang"
-L
"
$pkglibdir
"
$psql_options
plpgsql
$dbname
if
[
$?
-ne
0
]
&&
[
$?
-ne
2
]
;
then
echo
"
$me
: createlang failed"
(
exit
2
)
;
exit
for
lang
in
xyzzy
$load_langs
;
do
if
[
"
$lang
"
!=
"xyzzy"
]
;
then
message
"installing
$lang
"
"
$bindir
/createlang"
-L
"
$pkglibdir
"
$psql_options
$lang
$dbname
if
[
$?
-ne
0
]
&&
[
$?
-ne
2
]
;
then
echo
"
$me
: createlang
$lang
failed"
(
exit
2
)
;
exit
fi
fi
done
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment