Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ba0172

Browse files
committed
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 ishappening...
1 parent79f39c4 commit9ba0172

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

‎src/test/regress/run_check.sh

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.2 1999/11/20 20:21:30 tgl Exp $
3+
# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.3 1999/11/21 01:53:39 tgl Exp $
44

55
# ----------
66
# This is currently needed because the actual 7.0 psql makes
@@ -118,7 +118,6 @@ fi
118118

119119
echo"=============== Create ./tmp_check directory ================"
120120
mkdir -p$CHKDIR
121-
mkdir -p$PGDATA
122121
mkdir -p$LOGDIR
123122

124123

@@ -264,7 +263,7 @@ lno=0
264263
case$typein
265264
parallel)# ----------
266265
# This is the beginning of a new group of
267-
# tests that should be executed parallel.
266+
# tests that should be executedinparallel.
268267
# ----------
269268
parlist=
270269
parlno=$lno
@@ -330,28 +329,33 @@ lno=0
330329
fi
331330

332331
# ----------
333-
# Tell what we're doing and start them all in background.
334-
# The bourne shell's wait is
335-
# too dumb to do it smarter. I'd really like to see
336-
# the ok|failed message as soon as the individual tests
337-
# finish. That'd make it easier to start longer running
338-
# ones first to increase concurrency.
332+
# Tell what we're doing and then start them all, using
333+
# a subshell for each one. The subshell is just there
334+
# to print the test name when it finishes, so one can
335+
# see which tests finish fastest. We do NOT run the
336+
# ok/failed comparison tests in the parallel subshells,
337+
# because we want the diffs (if any) to come out in a
338+
# predictable order --- and certainly not interleaved!
339339
# ----------
340340
gnam=`echo"$pargroup ($parntests tests)"| awk'{printf "%-26.26s", $0;}'`
341-
$ECHO_N"parallel$gnam ..."$ECHO_C
342-
343-
fornamein$parlist;do
344-
$FRONTEND regression< sql/${name}.sql\
345-
> results/${name}.out2>&1&
341+
echo"parallel$gnam ..."
342+
343+
fornamein$parlist
344+
do
345+
(
346+
$FRONTEND regression< sql/${name}.sql\
347+
> results/${name}.out2>&1
348+
$ECHO_N"$name"$ECHO_C
349+
)&
346350
done
347351
wait
352+
echo""
348353

349354
# ----------
350355
# Setup status information for the diff check below
351356
# ----------
352357
checklist=$parlist
353358
checkpname=1
354-
echo"done"
355359
;;
356360

357361
test)# ----------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp