File: simple.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 (25 lines) | stat: -rwxr-xr-x 742 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
#!/bin/sh
# test cabextract gets the basics right (correct dates, filenames, checksums...)
. test/testcase

"$cabextract" -l cabs/simple.cab >$actual
compare_with <<'EOF'
Viewing cabinet: cabs/simple.cab
 File size | Date       Time     | Name
-----------+---------------------+-------------
        77 | 12.03.1997 11:13:52 | hello.c
        74 | 12.03.1997 11:15:14 | welcome.c

All done, no errors.
EOF

"$cabextract" -t cabs/simple.cab >$actual
compare_with <<'EOF'
Testing cabinet: cabs/simple.cab
  hello.c  OK                                  c2535936b8908b1f8a28b7724a2c2045
  welcome.c  OK                                67c981a019c21f3f4bb8f92efe4d95a1

All done, no errors.
EOF

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