Download this file
24 lines (18 with data), 913 Bytes
#!@SH_PROG@ -f
# -*- shell-script -*-
t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
[ -z "$builddir" ] && export builddir=$PWD
. ${builddir}/check-common.sh
ARGS='testarg1 testarg2'
debugged_script="${top_srcdir}/test/example/dbg-test2.sh"
(cd $srcdir && run_debugger $debugged_script 2>&1 >$TEST_FILE </dev/null)
cat ${TEST_FILE} | sed -e 's:-L .*/data/setshow\.cmd .*/example/dbg-test2.sh:-L data/setshow.cmd example/dbg-test2.sh:' \
| @SED@ -e 's:record the command history is .*:record the command history is: ' \
| @SED@ -e 's|version : bashdb, release .*|version : bashdb, release 1.0|' \
| @SED@ -e 's|record the command history is .*|record the command history is |' \
> ${TEST_FILTERED_FILE}
check_output $TEST_FILTERED_FILE $RIGHT_FILE
rc=$?
((rc == 0)) && [[ -f ${TEST_FILE} ]] && rm $TEST_FILE
# Return code tells testing mechanism whether passed or not.
exit $?
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.