OSDN Git Service

* tests/lha-test.in: all tests are splited into some files.
[lha/lha.git] / tests / lha-test4
1 message testing to delete files from archive.
2
3 cp test-1.lzh test-tmp.lzh
4
5 # do nothing
6 $lha d test-tmp.lzh 2> test-stderr
7                                                         check $?
8 test -s test-stderr
9                                                         check $?
10 $lha d test-tmp.lzh test-a
11                                                         check $?
12 $lha xw=test-tmp test-tmp.lzh &&
13 test ! -f test-tmp/test-a &&
14 diff test-1/test-b test-tmp/test-b &&
15 diff test-1/test-c test-tmp/test-c
16                                                         check $?
17 rm -rf test-tmp
18                                                         check $?
19 $lha d test-tmp.lzh test-b
20                                                         check $?
21 $lha xw=test-tmp test-tmp.lzh &&
22 test ! -f test-tmp/test-a &&
23 test ! -f test-tmp/test-b &&
24 diff test-1/test-c test-tmp/test-c
25                                                         check $?
26 rm -rf test-tmp
27                                                         check $?
28 $lha d test-tmp.lzh test-c 2> test-stderr
29                                                         check $?
30 test -s test-stderr
31                                                         check $?
32 test ! -f test-tmp.lzh
33                                                         check $?