File: case-ascii.test

package info (click to toggle)
cabextract 1.11-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,884 kB
  • sloc: ansic: 5,826; sh: 5,331; perl: 462; makefile: 88
file content (49 lines) | stat: -rwxr-xr-x 1,668 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh
# test cabextract --lowercase and --directory options
. test/testcase

"$cabextract" -l cabs/case-ascii.cab >$actual
compare_with <<'EOF'
Viewing cabinet: cabs/case-ascii.cab
 File size | Date       Time     | Name
-----------+---------------------+-------------
         0 | 12.03.1997 11:13:52 | ascii/upper/ABCDEFGHIJKLMNOPQRSTUVWXYZ
         0 | 12.03.1997 11:13:52 | ascii/lower/abcdefghijklmnopqrstuvwxyz

All done, no errors.
EOF

"$cabextract"  -L -l cabs/case-ascii.cab >$actual
compare_with <<'EOF'
Viewing cabinet: cabs/case-ascii.cab
 File size | Date       Time     | Name
-----------+---------------------+-------------
         0 | 12.03.1997 11:13:52 | ascii/upper/abcdefghijklmnopqrstuvwxyz
         0 | 12.03.1997 11:13:52 | ascii/lower/abcdefghijklmnopqrstuvwxyz

All done, no errors.
EOF

"$cabextract" -d DIR/PATH -l cabs/case-ascii.cab >$actual
compare_with <<'EOF'
Viewing cabinet: cabs/case-ascii.cab
 File size | Date       Time     | Name
-----------+---------------------+-------------
         0 | 12.03.1997 11:13:52 | DIR/PATH/ascii/upper/ABCDEFGHIJKLMNOPQRSTUVWXYZ
         0 | 12.03.1997 11:13:52 | DIR/PATH/ascii/lower/abcdefghijklmnopqrstuvwxyz

All done, no errors.
EOF

"$cabextract" -d DIR/PATH -L -l cabs/case-ascii.cab >$actual
compare_with <<'EOF'
Viewing cabinet: cabs/case-ascii.cab
 File size | Date       Time     | Name
-----------+---------------------+-------------
         0 | 12.03.1997 11:13:52 | DIR/PATH/ascii/upper/abcdefghijklmnopqrstuvwxyz
         0 | 12.03.1997 11:13:52 | DIR/PATH/ascii/lower/abcdefghijklmnopqrstuvwxyz

All done, no errors.
EOF

read status < $status && test "x$status" = xsuccess