git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@853
6a8cc165-1e22-0410-a132-
eb4e3f353aba
lha-test12 \
lha-test13 \
lha-test14 \
- lha-test15
+ lha-test15 \
+ lha-test16 \
+ lha-test16-lg.lzh \
+ lha-test16-l0.lzh \
+ lha-test16-l1.lzh \
+ lha-test16-l2.lzh
DISTCLEANFILES = test.log
testsuite lha-test14
esac
testsuite lha-test15
+testsuite lha-test16
if (( $error_num != 0 )); then
message $error_num tests failed!
--- /dev/null
+# -*- shell-script -*-
+message testing the header CRC
+
+# The header CRC is only in level 2 header (and level 3 header)
+
+# generic header
+$lha t $srcdir/lha-test16-lg.lzh
+ check $? $LINENO
+# level 0 header
+$lha t $srcdir/lha-test16-l0.lzh
+ check $? $LINENO
+# level 1 header
+$lha t $srcdir/lha-test16-l1.lzh
+ check $? $LINENO
+# level 2 header (it should be detect CRC error)
+$lha t $srcdir/lha-test16-l2.lzh
+ check $? $LINENO