aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-05-17 16:57:41 +0000
committerBruce Momjian <bruce@momjian.us>2000-05-17 16:57:41 +0000
commit362a0f68d9278016ba5883095f2d4b5ace30618d (patch)
treed6edcbc9218be00164fcba661bbb9fb2ca69f602 /src
parenta8020a78ec941b73bd558bd493a780392f4c6a59 (diff)
downloadpostgresql-362a0f68d9278016ba5883095f2d4b5ace30618d.tar.gz
postgresql-362a0f68d9278016ba5883095f2d4b5ace30618d.zip
The check of class string in configure (line 1732) fails because this class
is in <string> and not in <string.h> on QNX4/egcs-2.91.60. Probably this can be changed for all platforms. The test in line 1705 uses <string> as well. Because I am not sure, I havn't this included into the patch. doc/Makefile has to be sligthly modified as it has been done for src/backend/Makefile due to a QNX4 problem (patch attached) Furthermore src/test/regress/run_check.sh needs to be patched as it has been done for regress.sh (patch attached). Please note that in the patch the postmaster is started always with the -i option. run_check.sh reports the test "limit" as failed, but in reallity it is OK. regress.sh reports it as OK. Andreas Kardos
Diffstat (limited to 'src')
-rwxr-xr-xsrc/test/regress/run_check.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/test/regress/run_check.sh b/src/test/regress/run_check.sh
index decce56df2b..2d74463af21 100755
--- a/src/test/regress/run_check.sh
+++ b/src/test/regress/run_check.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.14 2000/05/16 02:14:15 tgl Exp $
+# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.15 2000/05/17 16:57:41 momjian Exp $
# ----------
# Check call syntax
@@ -192,7 +192,7 @@ fi
# him some time to pass the WAL recovery code.
#----------
echo "=============== Starting regression postmaster ================"
-postmaster -D $PGDATA -p $PGPORT $PMOPTIONS >$LOGDIR/postmaster.log 2>&1 &
+postmaster -D $PGDATA -i -p $PGPORT $PMOPTIONS >$LOGDIR/postmaster.log 2>&1 &
PMPID=$!
sleep 2
@@ -239,6 +239,7 @@ fi
# ----------
# Install the PL/pgSQL language in it
# ----------
+if [ "x$hostname" != "xi386-pc-qnx" ]; then
echo "=============== Installing PL/pgSQL... ================"
createlang -L $LIBDIR $HOSTLOC plpgsql regression
if [ $? -ne 0 -a $? -ne 2 ]; then
@@ -246,6 +247,7 @@ if [ $? -ne 0 -a $? -ne 2 ]; then
kill -15 $PMPID
exit 1
fi
+fi
# ----------
@@ -255,6 +257,12 @@ echo "=============== Running regression queries... ================"
echo "" > regression.diffs
echo "" > regress.out
+if [ "x$hostname" = "xi386-pc-qnx" ]; then
+ DIFFOPT="-b"
+else
+ DIFFOPT="-w"
+fi
+
TESTS=./sql/run_check.tests
lno=0
(
@@ -434,9 +442,9 @@ lno=0
fi
done
- if [ `diff -w ${EXPECTED} results/${name}.out | wc -l` -ne 0 ]
+ if [ `diff ${DIFFOPT} ${EXPECTED} results/${name}.out | wc -l` -ne 0 ]
then
- ( diff -wC3 ${EXPECTED} results/${name}.out ; \
+ ( diff ${DIFFOPT} -C3 ${EXPECTED} results/${name}.out ; \
echo "" ; \
echo "----------------------" ; \
echo "" ; \