1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/bin/sh
#$Id: run-bugIFS,v 1.3 2007/10/27 03:34:19 rockyb Exp $
if test -z "$srcdir" ; then
srcdir=`pwd`
fi
if test -z "$builddir" ; then
builddir=`pwd`
fi
. ${builddir}/check_common
TEST_NAME='bugIFS'
TEST_FILE="$builddir/${TEST_NAME}.check"
RIGHT_FILE="${srcdir}/${TEST_NAME}.right"
TEST_FILTERED_FILE="/tmp/${TEST_NAME}-filtered.check"
(cd $srcdir && ${THIS_SH} ${TEST_NAME}.tests > $TEST_FILE 2>&1 < /dev/null)
cat ${TEST_FILE} | sed -e 's/declare --/declare -x/'>${TEST_FILTERED_FILE}
check_output $TEST_FILTERED_FILE ${RIGHT_FILE} && {
rm -f $TEST_FILE
}
# Return code tells testing mechanism whether passed or not.
exit $?
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***
|