2 # Common shell routines for testing python modules
3 # Copyright (c) 2012-2014 Red Hat.
6 # get standard environment, filters and checks
11 python
=${PCP_PYTHON_PROG}
12 [ -n
"$python" ] || _notrun
"No python interpreter configured in \$PCP_PYTHON_PROG"
13 eval $python
-c exit
2>/dev
/null || _notrun
"$python unavailable"
15 # verify output from unittest indicates successful testing
21 $PCP_ECHO_PROG $PCP_ECHO_N
"$mode - ""$PCP_ECHO_C"
27 # Give some hint as to what went wrong ...
29 $PCP_AWK_PROG
<$
file '
30 $1 == "FAIL:" { want = 1 }
31 $1 == "File" { want = 1 }
32 want == 1 && $1 == "Ran" { exit }