Regression tests

From: "David Reid" <dreid(at)jetnet(dot)co(dot)uk>
To: "Patches for PGSQL" <pgsql-patches(at)hub(dot)org>
Subject: Regression tests
Date: 2000-10-07 14:26:38
Message-ID: 970928798_PM_BeOS.dreid@jetnet.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

These allow the regression tests to work on BeOS.

Index: src/test/regress/regress.sh
===================================================================
RCS file:
/home/projects/pgsql/cvsroot/pgsql/src/test/regress/regress.sh,v
retrieving revision 1.53
diff -u -u -r1.53 regress.sh
--- src/test/regress/regress.sh 2000/09/29 17:17:37 1.53
+++ src/test/regress/regress.sh 2000/10/07 13:29:07
@@ -11,7 +11,7 @@
extratests="$*"

case $hostname in
- i*86-pc-cygwin* | i386-*-qnx*)
+ i*86-pc-cygwin* | i386-*-qnx* | *beos*)
HOSTLOC="-h localhost"
;;
*)
Index: src/test/regress/pg_regress.sh
===================================================================
RCS file:
/home/projects/pgsql/cvsroot/pgsql/src/test/regress/pg_regress.sh,v
retrieving revision 1.5
diff -u -u -r1.5 pg_regress.sh
--- src/test/regress/pg_regress.sh 2000/10/03 19:37:39 1.5
+++ src/test/regress/pg_regress.sh 2000/10/07 13:29:08
@@ -147,11 +147,11 @@

# ----------
-# When on Windows or QNX, don't use Unix sockets.
+# When on Windows, QNX or BeOS, don't use Unix sockets.
# ----------

case $host_platform in
- *-*-cygwin* | *-*-qnx*)
+ *-*-cygwin* | *-*-qnx* | *beos*)
unix_sockets=no;;
*)
unix_sockets=yes;;
@@ -169,6 +169,17 @@
DIFFFLAGS=-w;;
esac

+# ----------
+# Set up the GMAKE variable correctly.
+# ----------
+
+case $host_platform in
+ *beos*)
+ GMAKE=make;;
+ *)
+ GMAKE=gmake;;
+esac
+

# ----------
# Set backend timezone and datestyle explicitly
@@ -286,7 +297,7 @@

message "creating temporary installation"
mkdir -p "$LOGDIR" || { (exit 2); exit; }
- ${MAKE:-gmake} -C "$top_builddir" DESTDIR="$temp_install" install
>"$LOGDIR/install.log" 2>&1
+ ${MAKE:-$GMAKE} -C "$top_builddir" DESTDIR="$temp_install" install
>"$LOGDIR/install.log" 2>&1

if [ $? -ne 0 ]
then

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2000-10-07 14:45:13 Re: [PATCH] BeOS support
Previous Message David Reid 2000-10-07 13:55:47 Unix sockets on BeOS