File: test-setshow.in

package info (click to toggle)
zshdb 0.05%2Bgit20101031-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,104 kB
  • sloc: sh: 5,563; makefile: 337
file content (21 lines) | stat: -rwxr-xr-x 750 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!@SH_PROG@ -f
# -*- shell-script -*-
t=${0##*/}; TEST_NAME=$t[6,-1]   # 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:-x .*/data/setshow\.cmd .*/example/dbg-test2.sh:-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=$?
((rc == 0)) && [[ -f ${TEST_FILE} ]] && rm $TEST_FILE

# Return code tells testing mechanism whether passed or not.
exit $?