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
|
#!/bin/bash -f
# -*- shell-script -*-
#$Id: test-setshow,v 1.3 2008/08/23 17:09:36 rockyb Exp $
[ -z "$srcdir" ] && export srcdir=$PWD
[ -z "$builddir" ] && export builddir=$PWD
[ -z "$top_builddir" ] && export top_builddir=$builddir/../..
TEST_NAME='setshow'
. ${top_builddir}/test/integration/check-common.sh
(cd $srcdir && $SH ${srcdir}/${TEST_NAME}.tests > $TEST_FILE 2>&1 < /dev/null)
cat ${TEST_FILE} | sed -e "s:-L .* -x .*/data/setshow\.cmd .*/example/dbg-test2.sh:-L .. -x data/setshow.cmd example/dbg-test2.sh:" \
| sed -e 's:record the command history is .*:record the command history is: ' \
> ${TEST_FILTERED_FILE}
check_output $TEST_FILTERED_FILE $RIGHT_FILE
rc=$?
((0 != rc)) && exit $rc
rm -f $TEST_FILE
# Return code tells testing mechanism whether passed or not.
exit 0
|