You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
317 B
22 lines
317 B
#! /bin/sh |
|
|
|
. tests.sh |
|
|
|
TMPFILE="tmp.out.$$" |
|
|
|
rm -f $TMPFILE |
|
|
|
verbose_run "$DTC" -o $TMPFILE "$@" |
|
ret="$?" |
|
|
|
if [ -f $TMPFILE ]; then |
|
FAIL "output file was created despite bad input" |
|
fi |
|
|
|
if [ "$ret" = "2" ]; then |
|
PASS |
|
else |
|
FAIL "dtc returned error code $ret instead of 2 (check failed)" |
|
fi |
|
|
|
rm -f $TMPFILE
|
|
|