File: split.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 (90 lines) | stat: -rwxr-xr-x 4,595 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/sh
# test cabextract can join up split cabinets, whichever you start with
. test/testcase

"$cabextract" -t cabs/split-1.cab >$actual
compare_with <<'EOF'
cabs/split-1.cab: extends to Split-2.CAB (Split cabinet file 2/5)
cabs/split-1.cab: extends to Split-3.CAB (Split cabinet file 3/5)
cabs/split-1.cab: extends to Split-4.CAB (Split cabinet file 4/5)
cabs/split-1.cab: extends to Split-5.CAB (Split cabinet file 5/5)
Testing cabinet: cabs/split-1.cab
  small1.bin  OK                               2ad5ba0f497f1e597ab187a2dfaa2e29
  small2.bin  OK                               1f862f9e36a32a74202c1120b9f06af7
  medium1.bin  OK                              0a7bd124a4c03a30329bd9ff06f71df7
  medium2.bin  OK                              b4b0a02ad6a1170d4b3db18cec616fcc
  small3.bin  OK                               bbaecacfeba976165e9d77bbecb0cbde
  medium3.bin  OK                              b98fe17e8afbcf05aefc5b2c4badbc28

All done, no errors.
EOF

"$cabextract" -t cabs/split-2.cab >$actual
compare_with <<'EOF'
cabs/split-2.cab: extends backwards to Split-1.CAB (Split cabinet file 1/5)
cabs/split-2.cab: extends to Split-3.CAB (Split cabinet file 3/5)
cabs/split-2.cab: extends to Split-4.CAB (Split cabinet file 4/5)
cabs/split-2.cab: extends to Split-5.CAB (Split cabinet file 5/5)
Testing cabinet: cabs/split-2.cab
  small1.bin  OK                               2ad5ba0f497f1e597ab187a2dfaa2e29
  small2.bin  OK                               1f862f9e36a32a74202c1120b9f06af7
  medium1.bin  OK                              0a7bd124a4c03a30329bd9ff06f71df7
  medium2.bin  OK                              b4b0a02ad6a1170d4b3db18cec616fcc
  small3.bin  OK                               bbaecacfeba976165e9d77bbecb0cbde
  medium3.bin  OK                              b98fe17e8afbcf05aefc5b2c4badbc28

All done, no errors.
EOF

"$cabextract" -t cabs/split-3.cab >$actual
compare_with <<'EOF'
cabs/split-3.cab: extends backwards to Split-2.CAB (Split cabinet file 2/5)
cabs/split-3.cab: extends backwards to Split-1.CAB (Split cabinet file 1/5)
cabs/split-3.cab: extends to Split-4.CAB (Split cabinet file 4/5)
cabs/split-3.cab: extends to Split-5.CAB (Split cabinet file 5/5)
Testing cabinet: cabs/split-3.cab
  small1.bin  OK                               2ad5ba0f497f1e597ab187a2dfaa2e29
  small2.bin  OK                               1f862f9e36a32a74202c1120b9f06af7
  medium1.bin  OK                              0a7bd124a4c03a30329bd9ff06f71df7
  medium2.bin  OK                              b4b0a02ad6a1170d4b3db18cec616fcc
  small3.bin  OK                               bbaecacfeba976165e9d77bbecb0cbde
  medium3.bin  OK                              b98fe17e8afbcf05aefc5b2c4badbc28

All done, no errors.
EOF

"$cabextract" -t cabs/split-4.cab >$actual
compare_with <<'EOF'
cabs/split-4.cab: extends backwards to Split-3.CAB (Split cabinet file 3/5)
cabs/split-4.cab: extends backwards to Split-2.CAB (Split cabinet file 2/5)
cabs/split-4.cab: extends backwards to Split-1.CAB (Split cabinet file 1/5)
cabs/split-4.cab: extends to Split-5.CAB (Split cabinet file 5/5)
Testing cabinet: cabs/split-4.cab
  small1.bin  OK                               2ad5ba0f497f1e597ab187a2dfaa2e29
  small2.bin  OK                               1f862f9e36a32a74202c1120b9f06af7
  medium1.bin  OK                              0a7bd124a4c03a30329bd9ff06f71df7
  medium2.bin  OK                              b4b0a02ad6a1170d4b3db18cec616fcc
  small3.bin  OK                               bbaecacfeba976165e9d77bbecb0cbde
  medium3.bin  OK                              b98fe17e8afbcf05aefc5b2c4badbc28

All done, no errors.
EOF

"$cabextract" -t cabs/split-5.cab >$actual
compare_with <<'EOF'
cabs/split-5.cab: extends backwards to Split-4.CAB (Split cabinet file 4/5)
cabs/split-5.cab: extends backwards to Split-3.CAB (Split cabinet file 3/5)
cabs/split-5.cab: extends backwards to Split-2.CAB (Split cabinet file 2/5)
cabs/split-5.cab: extends backwards to Split-1.CAB (Split cabinet file 1/5)
Testing cabinet: cabs/split-5.cab
  small1.bin  OK                               2ad5ba0f497f1e597ab187a2dfaa2e29
  small2.bin  OK                               1f862f9e36a32a74202c1120b9f06af7
  medium1.bin  OK                              0a7bd124a4c03a30329bd9ff06f71df7
  medium2.bin  OK                              b4b0a02ad6a1170d4b3db18cec616fcc
  small3.bin  OK                               bbaecacfeba976165e9d77bbecb0cbde
  medium3.bin  OK                              b98fe17e8afbcf05aefc5b2c4badbc28

All done, no errors.
EOF

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