OSDN Git Service

add_dirinfo() no longer suppose that contents of the LZH archive is sorted by pathname.
[lha/lha.git] / tests / lha-test7
index 45e8f5f..fa4a42a 100644 (file)
@@ -1,15 +1,18 @@
+# -*- shell-script -*-
 message testing to add/update files to archive.
 $lha a test-tmp.lzh test-c
-                                                       check $?
+                                                       check $? $LINENO
 $lha a test-tmp.lzh test-b
-                                                       check $?
+                                                       check $? $LINENO
 $lha u test-tmp.lzh test-a
-                                                       check $?
+                                                       check $? $LINENO
 $lha xw=test-tmp test-tmp.lzh
-                                                       check $?
+                                                       check $? $LINENO
 diff -r test-1 test-tmp
-                                                       check $?
+                                                       check $? $LINENO
 (cd test-tmp
+
+ sleep 1
  echo foo > test-a
  echo bar > test-b
  echo baz > test-c
@@ -17,35 +20,39 @@ diff -r test-1 test-tmp
  # update with new files
  $lha u ../test-tmp.lzh test-[abc]
 )
-                                                       check $?
+                                                       check $? $LINENO
 
 # old files are in test-1 and in current directory
 # new files are in test-tmp
+$lha vv test-1.lzh
+                                                       check $? $LINENO
+$lha vv test-tmp.lzh
+                                                       check $? $LINENO
 
 $lha xw=test-tmp2 test-tmp.lzh
-                                                       check $?
+                                                       check $? $LINENO
 diff -r test-tmp test-tmp2
-                                                       check $?
+                                                       check $? $LINENO
 # no update with old files
 $lha u test-tmp.lzh test-[abc]
 
 $lha xw=test-tmp3 test-tmp.lzh
-                                                       check $?
+                                                       check $? $LINENO
 diff -r test-tmp test-tmp3
-                                                       check $?
+                                                       check $? $LINENO
 # replace with old files
 $lha a test-tmp.lzh test-[abc]
 
 $lha xw=test-tmp4 test-tmp.lzh
-                                                       check $?
+                                                       check $? $LINENO
 diff -r test-1 test-tmp4
-                                                       check $?
+                                                       check $? $LINENO
 # replace with new files
 (cd test-tmp &&
  $lha a ../test-tmp.lzh test-[abc]
 )
 
 $lha xw=test-tmp5 test-tmp.lzh
-                                                       check $?
+                                                       check $? $LINENO
 diff -r test-tmp test-tmp5
-                                                       check $?
+                                                       check $? $LINENO