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
3267e297
Commit
3267e297
authored
Nov 20, 1999
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of portability problems in Jan's first-cut parallel test
script. This is way cool...
parent
43499af4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
26 deletions
+22
-26
src/test/regress/run_check.sh
src/test/regress/run_check.sh
+21
-25
src/test/regress/sql/run_check.tests
src/test/regress/sql/run_check.tests
+1
-1
No files found.
src/test/regress/run_check.sh
View file @
3267e297
#!/bin/sh
#
# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.
1 1999/11/19 18:51:49 wieck
Exp $
# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.
2 1999/11/20 20:21:30 tgl
Exp $
# ----------
# This is currently needed because the actual 7.0 psql makes
...
...
@@ -96,7 +96,7 @@ SYSTEM=`/bin/sh ../../config.guess | awk -F\- '{ split($3,a,/[0-9]/); printf"%s-
trap
' echo ""
echo ""
echo "user abort ..."
if [ ! -z
$PMPID
]
if [ ! -z
"$PMPID"
]
then
echo "Signalling postmaster with PID $PMPID to shutdown immediately"
kill -2 $PMPID
...
...
@@ -110,7 +110,7 @@ trap ' echo ""
# ----------
# Prepare a clean check directory
# ----------
if
[
-
e
$CHKDIR
]
if
[
-
d
$CHKDIR
]
then
echo
"=============== Removing old ./tmp_check directory ... ================"
rm
-rf
$CHKDIR
...
...
@@ -126,17 +126,14 @@ mkdir -p $LOGDIR
# Install this build into ./tmp/check
# ----------
echo
"=============== Installing new build into ./tmp_check ================"
(
cd
../..
make
POSTGRESDIR
=
$CHKDIR
install
>
$LOGDIR
/install.log 2>&1
exit
$?
)
${
MAKE
:-
gmake
}
-C
../..
POSTGRESDIR
=
$CHKDIR
install
>
$LOGDIR
/install.log 2>&1
if
[
$?
-ne
0
]
then
echo
""
echo
"ERROR: Check installation failed - cannot continue"
echo
"Please examine
$LOGDIR
/install.log"
echo
"for the
errors occured
."
echo
"for the
reason
."
echo
""
exit
2
fi
...
...
@@ -168,9 +165,9 @@ initdb --pglib=$LIBDIR --pgdata=$PGDATA >$LOGDIR/initdb.log 2>&1
if
[
$?
-ne
0
]
then
echo
""
echo
"ERROR: Check in
stallation
failed - cannot continue"
echo
"ERROR: Check in
itdb
failed - cannot continue"
echo
"Please examine
$LOGDIR
/initdb.log"
echo
"for the
errors occured
."
echo
"for the
reason
."
echo
""
exit
3
fi
...
...
@@ -185,16 +182,17 @@ postmaster -D $PGDATA -p $PGPORT -o -F >$LOGDIR/postmaster.log 2>&1 &
PMPID
=
$!
sleep
2
if
!
kill
-0
$PMPID
>
/dev/null 2>&1
if
kill
-0
$PMPID
>
/dev/null 2>&1
then
echo
"Regression postmaster is running - PID=
$PMPID
PGPORT=
$PGPORT
"
else
echo
""
echo
"ERROR: Regression postmaster did not startup."
echo
"Please examin
g
$LOGDIR
/postmaster.log"
echo
"for the
errors occured
."
echo
"Please examin
e
$LOGDIR
/postmaster.log"
echo
"for the
reason
."
echo
""
exit
4
fi
echo
"Regression postmaster is running - PID=
$PMPID
PGPORT=
$PGPORT
"
# ----------
...
...
@@ -332,23 +330,21 @@ lno=0
fi
# ----------
# Tell what we're doing and start them all in
side a
#
subshell in background.
The bourne shell's wait is
# Tell what we're doing and start them all in
background.
# The bourne shell's wait is
# too dumb to do it smarter. I'd really like to see
# the ok|failed message as soon as the individual tests
# finish. That'd make it easier to start longer running
# ones first to increase concurrency.
# ----------
gnam
=
`
echo
"
$pargroup
(
$parntests
tests)"
|
awk
'{printf "%-26.26s", $
line
;}'
`
gnam
=
`
echo
"
$pargroup
(
$parntests
tests)"
|
awk
'{printf "%-26.26s", $
0
;}'
`
$ECHO_N
"parallel
$gnam
... "
$ECHO_C
(
for
name
in
$parlist
;
do
$FRONTEND
regression < sql/
${
name
}
.sql
\
>
results/
${
name
}
.out 2>&1
>
results/
${
name
}
.out 2>&1 &
done
wait
)
# ----------
# Setup status information for the diff check below
...
...
src/test/regress/sql/run_check.tests
View file @
3267e297
...
...
@@ -40,8 +40,8 @@ parallel group2
endparallel
test abstime # Depends on the reltime test
test horology # Depends on timespan, datetime, reltime and abstime
test geometry # Depends on point, lseg, box, path, polygon and circle
test horology # Depends on timespan, datetime, reltime and abstime
# ----------
# These four each depend on the previous one
...
...
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