diff options
| author | Peter Eisentraut | 2000-11-21 23:40:28 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2000-11-21 23:40:28 +0000 |
| commit | 90cfa9ac19d3774712600dfaf180eb9ac4132e89 (patch) | |
| tree | 795a53875d5bc1ea045d915a1fcff28ccdeff367 /src/test | |
| parent | fd05f896455c62104c1134b06f528858dcb4e7c3 (diff) | |
Allow for different result files when using GCC versus native compiler.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/regress/GNUmakefile | 3 | ||||
| -rw-r--r-- | src/test/regress/pg_regress.sh | 16 |
2 files changed, 15 insertions, 4 deletions
diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index b7af6883de8..21b514c31bd 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.30 2000/10/27 20:00:19 petere Exp $ +# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.31 2000/11/21 23:40:28 petere Exp $ # #------------------------------------------------------------------------- @@ -37,6 +37,7 @@ pg_regress: pg_regress.sh GNUmakefile -e 's/@host_tuple@/$(host_tuple)/g' \ -e 's,@GMAKE@,$(MAKE),g' \ -e 's/@enable_shared@/$(enable_shared)/g' \ + -e 's/@GCC@/$(GCC)/g' \ $< >$@ chmod a+x $@ diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh index 55017cc5352..c0f2204d25c 100644 --- a/src/test/regress/pg_regress.sh +++ b/src/test/regress/pg_regress.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.11 2000/11/21 17:34:21 petere Exp $ +# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.12 2000/11/21 23:40:28 petere Exp $ me=`basename $0` : ${TMPDIR=/tmp} @@ -74,6 +74,13 @@ bindir='@bindir@' datadir='@datadir@' host_platform='@host_tuple@' enable_shared='@enable_shared@' +GCC=@GCC@ + +if [ "$GCC" = yes ]; then + compiler=gcc +else + compiler=cc +fi unset mode unset schedule @@ -223,9 +230,12 @@ trap ' # ---------- # Scan resultmap file to find which platform-specific expected files to use. # The format of each line of the file is -# testname/hostplatformpattern=substitutefile +# testname/hostplatformpattern=substitutefile # where the hostplatformpattern is evaluated per the rules of expr(1), # namely, it is a standard regular expression with an implicit ^ at the start. +# What hostplatformpattern will be matched against is the config.guess output +# followed by either ':gcc' or ':cc' (independent of the actual name of the +# compiler executable). # # The tempfile hackery is needed because some shells will run the loop # inside a subshell, whereupon shell variables set therein aren't seen @@ -236,7 +246,7 @@ cat /dev/null >$TMPFILE while read LINE do HOSTPAT=`expr "$LINE" : '.*/\(.*\)='` - if [ `expr "$host_platform" : "$HOSTPAT"` -ne 0 ] + if [ `expr "$host_platform:$compiler" : "$HOSTPAT"` -ne 0 ] then # remove hostnamepattern from line so that there are no shell # wildcards in SUBSTLIST; else later 'for' could expand them! |
