3 # Exercise bug in creating timespec objects via pmapi.py.
5 # Copyright (c) 2016 Red Hat.
9 echo "QA output created by $seq"
13 $python -c "from pcp import pmapi" >/dev
/null
2>&1
14 [ $?
-eq 0 ] || _notrun
"python pcp pmapi module not installed"
16 status
=1 # failure is the default!
17 $sudo rm -rf $tmp $tmp.
* $seq.full
18 trap "cd $here; rm -rf $tmp $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
24 ts0 = pmapi.timespec()
25 ts1 = pmapi.timespec(1)
26 ts21 = pmapi.timespec(2, 1000000)
30 print("ts21=%s" % ts21)
33 tv1 = pmapi.timeval(1)
34 tv21 = pmapi.timeval(2, 1000)
38 print("tv21=%s" % tv21)