Regression tests

Started by David Reidalmost 26 years ago2 messagespatches
Jump to latest
#1David Reid
dreid@jetnet.co.uk

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

#2Bruce Momjian
bruce@momjian.us
In reply to: David Reid (#1)
Re: Regression tests

Applied.

[ Charset ISO-8859-1 unsupported, converting... ]

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

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026