3 # Exercise python script automated sys.argv context creation
5 # Copyright (c) 2014 Red Hat.
9 echo "QA output created by $seq"
13 status
=1 # failure is the default!
14 $sudo rm -rf $tmp.
* $seq.full
15 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
17 $python -c "from pcp import pmapi" >/dev
/null
2>&1
18 [ $?
-eq 0 ] || _notrun
"python pcp pmapi module not installed"
20 eval HOST
=`pmprobe -v pmcd.hostname | awk '{ print $3 }'`
29 -e "s/hostname: $HOST/hostname: HOST/g" \
33 # real QA test starts here
34 echo && echo check archive and boundaries
35 $python $here/src
/test_pcp_getopts.py
-a archives
/ace_v2
-z
37 echo && echo check archive
time windows
38 $python $here/src
/test_pcp_getopts.py
-a archives
/ace_v2
-z \
40 --start="@ Mon Oct 30 14:25:10 1995" \
41 --origin="@ Mon Oct 30 14:25:10 1995" \
42 --finish="@ Mon Oct 30 14:25:15 1995"
44 echo && echo check multiple
host contexts
45 $python $here/src
/test_pcp_getopts.py
-h local: -h local: | _filter_live