Regression tests - Mailing list pgsql-patches

From David Reid
Subject Regression tests
Date
Msg-id 970928798_PM_BeOS.dreid@jetnet.co.uk
Whole thread Raw
Responses Re: Regression tests
List 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



pgsql-patches by date:

Previous
From: "David Reid"
Date:
Subject: Unix sockets on BeOS
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCH] BeOS support