Commit b9110b97 authored by Tom Lane's avatar Tom Lane

Allow resultmap file to be missing, for use in contrib self-tests.

parent 01b5efa5
#! /bin/sh #! /bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.13 2000/11/22 01:47:47 petere Exp $ # $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.14 2000/12/11 19:00:33 tgl Exp $
me=`basename $0` me=`basename $0`
: ${TMPDIR=/tmp} : ${TMPDIR=/tmp}
...@@ -243,8 +243,10 @@ trap ' ...@@ -243,8 +243,10 @@ trap '
# ---------- # ----------
cat /dev/null >$TMPFILE cat /dev/null >$TMPFILE
while read LINE if [ -f "$inputdir/resultmap" ]
do then
while read LINE
do
HOSTPAT=`expr "$LINE" : '.*/\(.*\)='` HOSTPAT=`expr "$LINE" : '.*/\(.*\)='`
if [ `expr "$host_platform:$compiler" : "$HOSTPAT"` -ne 0 ] if [ `expr "$host_platform:$compiler" : "$HOSTPAT"` -ne 0 ]
then then
...@@ -254,7 +256,8 @@ do ...@@ -254,7 +256,8 @@ do
SUBST=`echo "$LINE" | sed 's/^.*=//'` SUBST=`echo "$LINE" | sed 's/^.*=//'`
echo "$TESTNAME=$SUBST" >> $TMPFILE echo "$TESTNAME=$SUBST" >> $TMPFILE
fi fi
done <"$inputdir/resultmap" done <"$inputdir/resultmap"
fi
SUBSTLIST=`cat $TMPFILE` SUBSTLIST=`cat $TMPFILE`
rm -f $TMPFILE rm -f $TMPFILE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment