|
1 | 1 | #!/bin/sh
|
2 | 2 | #
|
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 $ |
4 | 4 |
|
5 | 5 | # ----------
|
6 | 6 | # This is currently needed because the actual 7.0 psql makes
|
|
118 | 118 |
|
119 | 119 | echo"=============== Create ./tmp_check directory ================"
|
120 | 120 | mkdir -p$CHKDIR
|
121 |
| -mkdir -p$PGDATA |
122 | 121 | mkdir -p$LOGDIR
|
123 | 122 |
|
124 | 123 |
|
@@ -264,7 +263,7 @@ lno=0
|
264 | 263 | case$typein
|
265 | 264 | parallel)# ----------
|
266 | 265 | # This is the beginning of a new group of
|
267 |
| -# tests that should be executed parallel. |
| 266 | +# tests that should be executedinparallel. |
268 | 267 | # ----------
|
269 | 268 | parlist=
|
270 | 269 | parlno=$lno
|
@@ -330,28 +329,33 @@ lno=0
|
330 | 329 | fi
|
331 | 330 |
|
332 | 331 | # ----------
|
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! |
339 | 339 | # ----------
|
340 | 340 | 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 | +)& |
346 | 350 | done
|
347 | 351 | wait
|
| 352 | +echo"" |
348 | 353 |
|
349 | 354 | # ----------
|
350 | 355 | # Setup status information for the diff check below
|
351 | 356 | # ----------
|
352 | 357 | checklist=$parlist
|
353 | 358 | checkpname=1
|
354 |
| -echo"done" |
355 | 359 | ;;
|
356 | 360 |
|
357 | 361 | test)# ----------
|
|