Allow resultmap file to be missing, for use in contrib self-tests.
This commit is contained in:
parent
01b5efa5e3
commit
b9110b97d9
@ -1,5 +1,5 @@
|
|||||||
#! /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,18 +243,21 @@ trap '
|
|||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
cat /dev/null >$TMPFILE
|
cat /dev/null >$TMPFILE
|
||||||
while read LINE
|
if [ -f "$inputdir/resultmap" ]
|
||||||
do
|
then
|
||||||
HOSTPAT=`expr "$LINE" : '.*/\(.*\)='`
|
while read LINE
|
||||||
if [ `expr "$host_platform:$compiler" : "$HOSTPAT"` -ne 0 ]
|
do
|
||||||
then
|
HOSTPAT=`expr "$LINE" : '.*/\(.*\)='`
|
||||||
# remove hostnamepattern from line so that there are no shell
|
if [ `expr "$host_platform:$compiler" : "$HOSTPAT"` -ne 0 ]
|
||||||
# wildcards in SUBSTLIST; else later 'for' could expand them!
|
then
|
||||||
TESTNAME=`expr "$LINE" : '\(.*\)/'`
|
# remove hostnamepattern from line so that there are no shell
|
||||||
SUBST=`echo "$LINE" | sed 's/^.*=//'`
|
# wildcards in SUBSTLIST; else later 'for' could expand them!
|
||||||
echo "$TESTNAME=$SUBST" >> $TMPFILE
|
TESTNAME=`expr "$LINE" : '\(.*\)/'`
|
||||||
fi
|
SUBST=`echo "$LINE" | sed 's/^.*=//'`
|
||||||
done <"$inputdir/resultmap"
|
echo "$TESTNAME=$SUBST" >> $TMPFILE
|
||||||
|
fi
|
||||||
|
done <"$inputdir/resultmap"
|
||||||
|
fi
|
||||||
SUBSTLIST=`cat $TMPFILE`
|
SUBSTLIST=`cat $TMPFILE`
|
||||||
rm -f $TMPFILE
|
rm -f $TMPFILE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user