1#! /bin/sh 2 3SRCDIR=`dirname "$0"` 4. "$SRCDIR/testutils.sh" 5 6if [ "$1" = "-n" ]; then 7 NEG="$1" 8 shift 9fi 10 11OUTPUT="$1" 12shift 13 14verbose_run $VALGRIND "$DTC" -o "$OUTPUT" "$@" 15ret="$?" 16 17FAIL_IF_SIGNAL $ret 18 19if [ -n "$NEG" ]; then 20 if [ ! -e "$OUTPUT" ]; then 21 FAIL "Produced no output" 22 fi 23else 24 if [ -e "$OUTPUT" ]; then 25 FAIL "Incorrectly produced output" 26 fi 27fi 28 29rm -f "$OUTPUT" 30 31PASS 32