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 @@
...
@@ -7,7 +7,7 @@
#
#
#
#
# IDENTIFICATION
# 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:
...
@@ -130,17 +130,17 @@ all-spi:
check
:
all
check
:
all
-
rm
-rf
./testtablespace
-
rm
-rf
./testtablespace
mkdir
./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
installcheck
:
all
-
rm
-rf
./testtablespace
-
rm
-rf
./testtablespace
mkdir
./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
installcheck-parallel
:
all
-
rm
-rf
./testtablespace
-
rm
-rf
./testtablespace
mkdir
./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...
# old interfaces follow...
...
@@ -150,10 +150,10 @@ runtest: installcheck
...
@@ -150,10 +150,10 @@ runtest: installcheck
runtest-parallel
:
installcheck-parallel
runtest-parallel
:
installcheck-parallel
bigtest
:
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
:
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
#! /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
`
me
=
`
basename
$0
`
:
${
TMPDIR
=/tmp
}
:
${
TMPDIR
=/tmp
}
...
@@ -13,6 +13,8 @@ Usage: $me [options...] [extra tests...]
...
@@ -13,6 +13,8 @@ Usage: $me [options...] [extra tests...]
Options:
Options:
--debug turn on debug mode in programs that are run
--debug turn on debug mode in programs that are run
--inputdir=DIR take input files from DIR (default
\`
.')
--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
--max-connections=N maximum number of concurrent connections
(default is 0 meaning unlimited)
(default is 0 meaning unlimited)
--multibyte=ENCODING use ENCODING as the multibyte encoding, and
--multibyte=ENCODING use ENCODING as the multibyte encoding, and
...
@@ -103,6 +105,7 @@ unset multibyte
...
@@ -103,6 +105,7 @@ unset multibyte
dbname
=
regression
dbname
=
regression
hostname
=
localhost
hostname
=
localhost
maxconnections
=
0
maxconnections
=
0
load_langs
=
""
:
${
GMAKE
=
'@GMAKE@'
}
:
${
GMAKE
=
'@GMAKE@'
}
...
@@ -126,6 +129,11 @@ do
...
@@ -126,6 +129,11 @@ do
--inputdir
=
*
)
--inputdir
=
*
)
inputdir
=
`
expr
"x
$1
"
:
"x--inputdir=
\(
.*
\)
"
`
inputdir
=
`
expr
"x
$1
"
:
"x--inputdir=
\(
.*
\)
"
`
shift
;;
shift
;;
--load-language
=
*
)
lang
=
`
expr
"x
$1
"
:
"x--load-language=
\(
.*
\)
"
`
load_langs
=
"
$load_langs
$lang
"
unset
lang
shift
;;
--multibyte
=
*
)
--multibyte
=
*
)
multibyte
=
`
expr
"x
$1
"
:
"x--multibyte=
\(
.*
\)
"
`
multibyte
=
`
expr
"x
$1
"
:
"x--multibyte=
\(
.*
\)
"
`
shift
;;
shift
;;
...
@@ -560,16 +568,20 @@ fi
...
@@ -560,16 +568,20 @@ fi
# ----------
# ----------
# Install
the PL/pgSQL language in it
# Install
any requested PL languages
# ----------
# ----------
if
[
"
$enable_shared
"
=
yes
]
;
then
if
[
"
$enable_shared
"
=
yes
]
;
then
message
"installing PL/pgSQL"
for
lang
in
xyzzy
$load_langs
;
do
"
$bindir
/createlang"
-L
"
$pkglibdir
"
$psql_options
plpgsql
$dbname
if
[
"
$lang
"
!=
"xyzzy"
]
;
then
if
[
$?
-ne
0
]
&&
[
$?
-ne
2
]
;
then
message
"installing
$lang
"
echo
"
$me
: createlang failed"
"
$bindir
/createlang"
-L
"
$pkglibdir
"
$psql_options
$lang
$dbname
(
exit
2
)
;
exit
if
[
$?
-ne
0
]
&&
[
$?
-ne
2
]
;
then
echo
"
$me
: createlang
$lang
failed"
(
exit
2
)
;
exit
fi
fi
fi
done
fi
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