OSDN Git Service

Added tests for extract large files.
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 8 Sep 2007 20:20:29 +0000 (20:20 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 8 Sep 2007 20:20:29 +0000 (20:20 +0000)
Added two tests for extract 2G and 4G over files.
These are not performed in default, because it will be take a long time.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@877 6a8cc165-1e22-0410-a132-eb4e3f353aba

configure.ac
tests/Makefile.am
tests/lha-test.in
tests/lha-test51 [new file with mode: 0644]
tests/lha-test51-2G.lzh [new file with mode: 0644]
tests/lha-test52 [new file with mode: 0644]
tests/lha-test52-4G.lzh [new file with mode: 0644]

index 00e907d..5828693 100644 (file)
@@ -1,5 +1,5 @@
 # Process this file with autoconf to produce a configure script.
-AC_INIT([LHa for UNIX], 1.14i-ac20070904, arai@users.sourceforge.jp, lha)
+AC_INIT([LHa for UNIX], 1.14i-ac20070909, arai@users.sourceforge.jp, lha)
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
 AM_INIT_AUTOMAKE
index 806d0e1..e57e570 100644 (file)
@@ -20,12 +20,12 @@ EXTRA_DIST =        lha-test1 \
                lha-test16-l0.lzh \
                lha-test16-l1.lzh \
                lha-test16-l2.lzh \
-               lha-test17
+               lha-test17 \
+               lha-test51 \
+               lha-test51-2G.lzh \
+               lha-test52-4G.lzh
 
 DISTCLEANFILES = test.log
 
 check-local:
        @sh_for_lha_test@ ./lha-test
-
-lha-test: $(top_builddir)/config.status $(srcdir)/lha-test.in
-       cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
index 3d64b21..a57c3f2 100644 (file)
@@ -107,7 +107,7 @@ message `$lha --version 2>&1`
 
 testsuite lha-test1            # create test data. it is needed for each test
 
-if [[ $perform_number != "" ]]; then
+if [[ $perform_number != "" ]] && [[ $perform_number != all ]]; then
   testsuite lha-test$perform_number
 else
   testsuite lha-test2
@@ -133,6 +133,11 @@ else
   testsuite lha-test15
   testsuite lha-test16
   testsuite lha-test17
+  # followings will take a long time
+  if [[ $perform_number = all ]]; then
+    testsuite lha-test51       # extract 2G over files
+    testsuite lha-test52       # extract 4G over files
+  fi
 fi
 
 if (( $error_num != 0 )); then
diff --git a/tests/lha-test51 b/tests/lha-test51
new file mode 100644 (file)
index 0000000..3b11632
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- shell-script -*-
+message testing to extract 2G over files
+
+echo -------------------------------------------------------------------
+$lha t $srcdir/lha-test51-2G.lzh
+                                                       check $? $LINENO
+echo -------------------------------------------------------------------
diff --git a/tests/lha-test51-2G.lzh b/tests/lha-test51-2G.lzh
new file mode 100644 (file)
index 0000000..df5b0c8
Binary files /dev/null and b/tests/lha-test51-2G.lzh differ
diff --git a/tests/lha-test52 b/tests/lha-test52
new file mode 100644 (file)
index 0000000..cc746b3
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- shell-script -*-
+message testing to extract 4G over files
+
+echo -------------------------------------------------------------------
+$lha t $srcdir/lha-test52-4G.lzh
+                                                       check $? $LINENO
+echo -------------------------------------------------------------------
diff --git a/tests/lha-test52-4G.lzh b/tests/lha-test52-4G.lzh
new file mode 100644 (file)
index 0000000..e435e96
Binary files /dev/null and b/tests/lha-test52-4G.lzh differ