3 # Some error cases for pmdaproc.sh
5 # Copyright (c) 2015 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 # test for-some-thing || _notrun No support for some-thing
18 status
=1 # failure is the default!
19 $sudo rm -rf $tmp $tmp.
* $seq.full
20 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
24 cat >$tmp.sh
<<'End-of-File'
27 . $PCP_DIR/etc/pcp.env
28 . $PCP_SHARE_DIR/lib/pmdaproc.sh
32 pmda_dir=$PCP_VAR_DIR/pmdas/sample
39 echo "=== Duplicate names in the PMNS ==="
42 cat >$tmp.sh
<<'End-of-File'
45 . $PCP_DIR/etc/pcp.env
46 . $PCP_SHARE_DIR/lib/pmdaproc.sh
50 pmda_dir=/really/bad/directory
58 echo "=== Bad path for pmda_dir ==="