1
1
#! /bin/sh
2
- # $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.52 2005/01/12 16:19 :51 tgl Exp $
2
+ # $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.53 2005/01/15 04:15 :51 tgl Exp $
3
3
4
4
me=` basename $0 `
5
5
: ${TMPDIR=/ tmp}
@@ -192,11 +192,10 @@ esac
192
192
193
193
194
194
# ----------
195
- # When on QNX or BeOS, don 't use Unix sockets.
195
+ # On some platforms we can 't use Unix sockets.
196
196
# ----------
197
-
198
197
case $host_platform in
199
- * -* -qnx* | * beos* )
198
+ * -* -cygwin * | * - * -mingw32 * | * - * - qnx* | * beos* )
200
199
unix_sockets=no;;
201
200
* )
202
201
unix_sockets=yes;;
309
308
case $host_platform in
310
309
* -* -mingw32* )
311
310
pkglibdir=" ` pwd -W` /$temp_install /install/$pkglibdir "
312
- temp_install=" ` pwd` /$temp_install "
311
+ temp_install=" ` pwd` /$temp_install "
313
312
;;
314
313
* )
315
314
temp_install=" ` pwd` /$temp_install "
418
417
message " starting postmaster"
419
418
[ " $debug " = yes ] && postmaster_options=" $postmaster_options -d 5"
420
419
if [ " $unix_sockets " = no ]; then
421
- postmaster_options=" $postmaster_options -c listen_addresses=$hostname "
420
+ postmaster_options=" $postmaster_options -c listen_addresses=$hostname "
422
421
else
423
- postmaster_options=" $postmaster_options -c listen_addresses=''"
422
+ postmaster_options=" $postmaster_options -c listen_addresses=''"
424
423
fi
425
424
" $bindir /postmaster" -D " $PGDATA " -F $postmaster_options > " $LOGDIR /postmaster.log" 2>&1 &
426
425
postmaster_pid=$!
@@ -470,13 +469,6 @@ else # not temp-install
470
469
;;
471
470
esac
472
471
473
- # If Unix sockets are not available, use the local host by default.
474
- if [ " $unix_sockets " = no ]; then
475
- PGHOST=$hostname
476
- export PGHOST
477
- unset PGHOSTADDR
478
- fi
479
-
480
472
if [ -n " $PGPORT " ]; then
481
473
port_info=" port $PGPORT "
482
474
else
@@ -486,15 +478,13 @@ else # not temp-install
486
478
if [ -n " $PGHOST " ]; then
487
479
echo " (using postmaster on $PGHOST , $port_info )"
488
480
else
489
- case $host_platform in
490
- * -* -mingw32* )
491
- echo " (using postmaster on localhost socket, $port_info )"
492
- ;;
493
- * )
494
- echo " (using postmaster on Unix socket, $port_info )"
495
- ;;
496
- esac
481
+ if [ " $unix_sockets " = no ]; then
482
+ echo " (using postmaster on localhost, $port_info )"
483
+ else
484
+ echo " (using postmaster on Unix socket, $port_info )"
485
+ fi
497
486
fi
487
+
498
488
message " dropping database \" $dbname \" "
499
489
" $bindir /dropdb" $psql_options " $dbname "
500
490
# errors can be ignored
634
624
formatted=` echo $1 | awk ' {printf "%-20.20s", $1;}' `
635
625
$ECHO_N " test $formatted ... $ECHO_C "
636
626
( $PSQL -d " $dbname " < " $inputdir /sql/$1 .sql" > " $outputdir /results/$1 .out" 2>&1 )&
637
- wait
627
+ wait
638
628
else
639
629
# Start a parallel group
640
630
$ECHO_N " parallel group ($# tests): $ECHO_C "
0 commit comments