Debian Codegraph @

test/case-ascii.test

raw
1 #!/bin/sh
2 # test cabextract --lowercase and --directory options
3 . test/testcase
4
5 "$cabextract" -l cabs/case-ascii.cab >$actual
6 compare_with <<'EOF'
7 Viewing cabinet: cabs/case-ascii.cab
8 File size | Date Time | Name
9 -----------+---------------------+-------------
10 0 | 12.03.1997 11:13:52 | ascii/upper/ABCDEFGHIJKLMNOPQRSTUVWXYZ
11 0 | 12.03.1997 11:13:52 | ascii/lower/abcdefghijklmnopqrstuvwxyz
12
13 All done, no errors.
14 EOF
15
16 "$cabextract" -L -l cabs/case-ascii.cab >$actual
17 compare_with <<'EOF'
18 Viewing cabinet: cabs/case-ascii.cab
19 File size | Date Time | Name
20 -----------+---------------------+-------------
21 0 | 12.03.1997 11:13:52 | ascii/upper/abcdefghijklmnopqrstuvwxyz
22 0 | 12.03.1997 11:13:52 | ascii/lower/abcdefghijklmnopqrstuvwxyz
23
24 All done, no errors.
25 EOF
26
27 "$cabextract" -d DIR/PATH -l cabs/case-ascii.cab >$actual
28 compare_with <<'EOF'
29 Viewing cabinet: cabs/case-ascii.cab
30 File size | Date Time | Name
31 -----------+---------------------+-------------
32 0 | 12.03.1997 11:13:52 | DIR/PATH/ascii/upper/ABCDEFGHIJKLMNOPQRSTUVWXYZ
33 0 | 12.03.1997 11:13:52 | DIR/PATH/ascii/lower/abcdefghijklmnopqrstuvwxyz
34
35 All done, no errors.
36 EOF
37
38 "$cabextract" -d DIR/PATH -L -l cabs/case-ascii.cab >$actual
39 compare_with <<'EOF'
40 Viewing cabinet: cabs/case-ascii.cab
41 File size | Date Time | Name
42 -----------+---------------------+-------------
43 0 | 12.03.1997 11:13:52 | DIR/PATH/ascii/upper/abcdefghijklmnopqrstuvwxyz
44 0 | 12.03.1997 11:13:52 | DIR/PATH/ascii/lower/abcdefghijklmnopqrstuvwxyz
45
46 All done, no errors.
47 EOF
48
49 read status < $status && test "x$status" = xsuccess