pmrep: update TODO, man page
[pcp.git] / qa / 437
blobe543ef94bda9aef39c9ec509f154286a32383426
1 #!/bin/sh
2 # PCP QA Test No. 437
3 # Exercise compressed archive files - badness in the uncompression
5 # Copyright (c) 2014 Red Hat.
6 # Copyright (c) 2010 Ken McDonell. All Rights Reserved.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 . ./common.compress
14 status=0 # success is the default!
15 $sudo rm -rf $tmp $tmp.* $seq.full
16 trap "cd $here; rm -rf $tmp $tmp.*; exit \$status" 0 1 2 3 15
17 mkdir $tmp
18 export PATH=$tmp:$PATH
19 cd $tmp
20 touch null.0.bz2 null.index null.meta
22 # real QA test starts here
23 cat <<End-of-File >bzcat
24 #!/bin/sh
25 exit 1
26 End-of-File
27 chmod 755 bzcat
28 pminfo -Dlog -a null 2>&1 \
29 | LC_COLLATE=POSIX sort \
30 | _filter_compression
32 cat <<End-of-File >bzcat
33 #!/bin/sh
34 kill -KILL \$\$
35 End-of-File
36 chmod 755 bzcat
37 pminfo -Dlog -a null 2>&1 \
38 | LC_COLLATE=POSIX sort \
39 | _filter_compression
41 # success, all done
42 exit