OSDN Git Service

6af901f9d9212fa6483164bddb06211b80cba2ed
[lha/lha.git] / tests / lha-test4
1 # -*- shell-script -*-
2 message testing to delete files from archive.
3
4 cp test-1.lzh test-tmp.lzh
5
6 # do nothing
7 $lha d test-tmp.lzh 2> test-stderr
8                                                         check $?
9 test -s test-stderr
10                                                         check $?
11 $lha d test-tmp.lzh test-a
12                                                         check $?
13 $lha xw=test-tmp test-tmp.lzh &&
14 test ! -f test-tmp/test-a &&
15 diff test-1/test-b test-tmp/test-b &&
16 diff test-1/test-c test-tmp/test-c
17                                                         check $?
18 rm -rf test-tmp
19                                                         check $?
20 $lha d test-tmp.lzh test-b
21                                                         check $?
22 $lha xw=test-tmp test-tmp.lzh &&
23 test ! -f test-tmp/test-a &&
24 test ! -f test-tmp/test-b &&
25 diff test-1/test-c test-tmp/test-c
26                                                         check $?
27 rm -rf test-tmp
28                                                         check $?
29 $lha d test-tmp.lzh test-c 2> test-stderr
30                                                         check $?
31 # this test will be failed on original LHa for UNIX.
32 : test -s test-stderr
33                                                         check $?
34 test ! -f test-tmp.lzh
35                                                         check $?