Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9d2f300

Browse files
committed
To create a temporary installation, the regression test driver should use
the make program that was used to build itself. This seems more correct than guessing around for some gmake.
1 parent 969e28d commit 9d2f300

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

src/test/regress/GNUmakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.25 2000/10/02 06:07:25 tgl Exp $
10+
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.26 2000/10/07 20:23:03 petere Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -36,6 +36,7 @@ pg_regress: pg_regress.sh GNUmakefile
3636
-e 's,@datadir@,$(datadir),g' \
3737
-e 's/@VERSION@/$(VERSION)/g' \
3838
-e 's/@host_tuple@/$(host_tuple)/g' \
39+
-e 's,@GMAKE@,$(MAKE),g' \
3940
$< >$@
4041
chmod a+x $@
4142

src/test/regress/pg_regress.sh

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.6 2000/10/07 14:55:16 momjian Exp $
2+
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.7 2000/10/07 20:23:03 petere Exp $
33

44
me=`basename $0`
55
: ${TMPDIR=/tmp}
@@ -87,6 +87,8 @@ export PGPORT
8787
dbname=regression
8888
hostname=`hostname` || hostname=localhost
8989

90+
: ${GMAKE='@GMAKE@'}
91+
9092

9193
# ----------
9294
# Parse command line options
@@ -169,17 +171,6 @@ case $host_platform in
169171
DIFFFLAGS=-w;;
170172
esac
171173

172-
# ----------
173-
# Set up the GMAKE variable correctly.
174-
# ----------
175-
176-
case $host_platform in
177-
*beos*)
178-
GMAKE=make;;
179-
*)
180-
GMAKE=gmake;;
181-
esac
182-
183174

184175
# ----------
185176
# Set backend timezone and datestyle explicitly
@@ -297,7 +288,7 @@ then
297288

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

302293
if [ $? -ne 0 ]
303294
then

0 commit comments

Comments
 (0)