2 # usage: r1test <testcasename>
10 ocase
="output-$casename"
13 read initfile initflags
16 initstring
="`cat init-$initfile.text`"
21 export EF_DISABLE_BANNER
24 ADNS_TEST_REPORT_FD
=3 3>>"$ocase.report" >"$ocase.out" 2>"$ocase.err" \
25 .
/hplayback
$initflags "/$initstring" $queryargs
31 echo -n
"SKIPPED-$casename "
36 echo "rc=$rc" >>$ocase.out
41 if diff -u
-- "$case.$part" "$ocase.$part"
45 failwhy
="$failwhy WRONG OUTPUT"
49 cat >"$ocase.leftover"
50 if egrep .
/dev
/null
"$ocase.leftover"
52 failwhy
="$failwhy EXITED EARLY"
55 if [ "x$failwhy" != x
]
57 scremain
="`wc -l <\"$ocase.leftover\"`"
58 echo >&2 "FAILED $case -$failwhy - lines of syscall remaining $scremain"