OSDN Git Service

added tests for the header CRC
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sun, 8 Oct 2006 17:36:42 +0000 (17:36 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sun, 8 Oct 2006 17:36:42 +0000 (17:36 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@853 6a8cc165-1e22-0410-a132-eb4e3f353aba

tests/Makefile.am
tests/lha-test.in
tests/lha-test16 [new file with mode: 0644]
tests/lha-test16-l0.lzh [new file with mode: 0644]
tests/lha-test16-l1.lzh [new file with mode: 0644]
tests/lha-test16-l2.lzh [new file with mode: 0644]
tests/lha-test16-lg.lzh [new file with mode: 0644]

index 58f1e1c..38671e0 100644 (file)
@@ -14,7 +14,12 @@ EXTRA_DIST = lha-test1 \
                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
 
index 1d67090..b25e41c 100644 (file)
@@ -114,6 +114,7 @@ case `$lha --version 2>&1` in
   testsuite lha-test14
 esac
 testsuite lha-test15
+testsuite lha-test16
 
 if (( $error_num != 0 )); then
   message $error_num tests failed!
diff --git a/tests/lha-test16 b/tests/lha-test16
new file mode 100644 (file)
index 0000000..4ac1884
--- /dev/null
@@ -0,0 +1,17 @@
+# -*- 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
diff --git a/tests/lha-test16-l0.lzh b/tests/lha-test16-l0.lzh
new file mode 100644 (file)
index 0000000..665bcc7
Binary files /dev/null and b/tests/lha-test16-l0.lzh differ
diff --git a/tests/lha-test16-l1.lzh b/tests/lha-test16-l1.lzh
new file mode 100644 (file)
index 0000000..b406abc
Binary files /dev/null and b/tests/lha-test16-l1.lzh differ
diff --git a/tests/lha-test16-l2.lzh b/tests/lha-test16-l2.lzh
new file mode 100644 (file)
index 0000000..74b5797
Binary files /dev/null and b/tests/lha-test16-l2.lzh differ
diff --git a/tests/lha-test16-lg.lzh b/tests/lha-test16-lg.lzh
new file mode 100644 (file)
index 0000000..8d409d4
Binary files /dev/null and b/tests/lha-test16-lg.lzh differ