diff options
Diffstat (limited to 'deps/lightning/check/check.nodata.sh')
-rwxr-xr-x | deps/lightning/check/check.nodata.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/lightning/check/check.nodata.sh b/deps/lightning/check/check.nodata.sh new file mode 100755 index 0000000..0fbc4e9 --- /dev/null +++ b/deps/lightning/check/check.nodata.sh @@ -0,0 +1,15 @@ +#!/bin/sh +test=`basename $0 | sed -e 's|\.nodata$||'` +./lightning -d $srcdir/$test.tst | tr -d \\r > $test.out +if test $? != 0; then + exit $? +fi + +cmp -s $srcdir/$test.ok $test.out +result=$? +if test $result != 0; then + diff $srcdir/$test.ok $test.out + rm $test.out + exit 1 +fi +rm $test.out |