Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
3267e297
Commit
3267e297
authored
25 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix a couple of portability problems in Jan's first-cut parallel test
script. This is way cool...
parent
43499af4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/regress/run_check.sh
+21
-25
21 additions, 25 deletions
src/test/regress/run_check.sh
src/test/regress/sql/run_check.tests
+1
-1
1 addition, 1 deletion
src/test/regress/sql/run_check.tests
with
22 additions
and
26 deletions
src/test/regress/run_check.sh
+
21
−
25
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
done
wait
)
for
name
in
$parlist
;
do
$FRONTEND
regression < sql/
${
name
}
.sql
\
>
results/
${
name
}
.out 2>&1 &
done
wait
# ----------
# Setup status information for the diff check below
...
...
This diff is collapsed.
Click to expand it.
src/test/regress/sql/run_check.tests
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment