#!/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