Tweak run_check.sh so it prints the name of each test in a parallel group
as that test finishes --- helps to give the impression that something is happening...
This commit is contained in:
parent
79f39c4d34
commit
9ba0172f41
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.2 1999/11/20 20:21:30 tgl Exp $
|
# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.3 1999/11/21 01:53:39 tgl Exp $
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
# This is currently needed because the actual 7.0 psql makes
|
# This is currently needed because the actual 7.0 psql makes
|
||||||
@ -118,7 +118,6 @@ fi
|
|||||||
|
|
||||||
echo "=============== Create ./tmp_check directory ================"
|
echo "=============== Create ./tmp_check directory ================"
|
||||||
mkdir -p $CHKDIR
|
mkdir -p $CHKDIR
|
||||||
mkdir -p $PGDATA
|
|
||||||
mkdir -p $LOGDIR
|
mkdir -p $LOGDIR
|
||||||
|
|
||||||
|
|
||||||
@ -264,7 +263,7 @@ lno=0
|
|||||||
case $type in
|
case $type in
|
||||||
parallel) # ----------
|
parallel) # ----------
|
||||||
# This is the beginning of a new group of
|
# This is the beginning of a new group of
|
||||||
# tests that should be executed parallel.
|
# tests that should be executed in parallel.
|
||||||
# ----------
|
# ----------
|
||||||
parlist=
|
parlist=
|
||||||
parlno=$lno
|
parlno=$lno
|
||||||
@ -330,28 +329,33 @@ lno=0
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
# Tell what we're doing and start them all in background.
|
# Tell what we're doing and then start them all, using
|
||||||
# The bourne shell's wait is
|
# a subshell for each one. The subshell is just there
|
||||||
# too dumb to do it smarter. I'd really like to see
|
# to print the test name when it finishes, so one can
|
||||||
# the ok|failed message as soon as the individual tests
|
# see which tests finish fastest. We do NOT run the
|
||||||
# finish. That'd make it easier to start longer running
|
# ok/failed comparison tests in the parallel subshells,
|
||||||
# ones first to increase concurrency.
|
# because we want the diffs (if any) to come out in a
|
||||||
|
# predictable order --- and certainly not interleaved!
|
||||||
# ----------
|
# ----------
|
||||||
gnam=`echo "$pargroup ($parntests tests)" | awk '{printf "%-26.26s", $0;}'`
|
gnam=`echo "$pargroup ($parntests tests)" | awk '{printf "%-26.26s", $0;}'`
|
||||||
$ECHO_N "parallel $gnam ... " $ECHO_C
|
echo "parallel $gnam ..."
|
||||||
|
|
||||||
for name in $parlist ; do
|
for name in $parlist
|
||||||
|
do
|
||||||
|
(
|
||||||
$FRONTEND regression < sql/${name}.sql \
|
$FRONTEND regression < sql/${name}.sql \
|
||||||
> results/${name}.out 2>&1 &
|
> results/${name}.out 2>&1
|
||||||
|
$ECHO_N " $name" $ECHO_C
|
||||||
|
) &
|
||||||
done
|
done
|
||||||
wait
|
wait
|
||||||
|
echo ""
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
# Setup status information for the diff check below
|
# Setup status information for the diff check below
|
||||||
# ----------
|
# ----------
|
||||||
checklist=$parlist
|
checklist=$parlist
|
||||||
checkpname=1
|
checkpname=1
|
||||||
echo "done"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
test) # ----------
|
test) # ----------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user