1#! /bin/sh
2
3. ./tests.sh
4
5LOG=tmp.log.$$
6EXPECT=tmp.expect.$$
7rm -f $LOG $EXPECT
8trap "rm -f $LOG $EXPECT" 0
9
10expect="$1"
11printf '%b\n' "$expect" > $EXPECT
12shift
13
14verbose_run_log_check "$LOG" $VALGRIND $DTGET "$@"
15
16if cmp $EXPECT $LOG>/dev/null; then
17    PASS
18else
19    if [ -z "$QUIET_TEST" ]; then
20	echo "EXPECTED :-:"
21	cat $EXPECT
22    fi
23    FAIL "Results differ from expected"
24fi
25