Debian Codegraph @

test/simple.test

raw
1 #!/bin/sh
2 # test cabextract gets the basics right (correct dates, filenames, checksums...)
3 . test/testcase
4
5 "$cabextract" -l cabs/simple.cab >$actual
6 compare_with <<'EOF'
7 Viewing cabinet: cabs/simple.cab
8 File size | Date Time | Name
9 -----------+---------------------+-------------
10 77 | 12.03.1997 11:13:52 | hello.c
11 74 | 12.03.1997 11:15:14 | welcome.c
12
13 All done, no errors.
14 EOF
15
16 "$cabextract" -t cabs/simple.cab >$actual
17 compare_with <<'EOF'
18 Testing cabinet: cabs/simple.cab
19 hello.c OK c2535936b8908b1f8a28b7724a2c2045
20 welcome.c OK 67c981a019c21f3f4bb8f92efe4d95a1
21
22 All done, no errors.
23 EOF
24
25 read status < $status && test "x$status" = xsuccess