Commit 82d071ea authored by Carel van Niekerk's avatar Carel van Niekerk
Browse files

Add missing testPyDial script

parent d4676258
Pipeline #40107 passed with stage
in 2 minutes and 13 seconds
echo "Running PyDial Tests"
if [ ! -d tests ]; then
echo "No tests directory - testing aborted"
exit -1
rm -f timeout
rm -f _testlogs/*
let count=0
for f in tests/test_*.py; do
(time python $f ) >> timeout 2>&1
t=`grep real timeout | tr -d '[:space:]' | sed 's/real//'`
rm timeout
let count=count+1
printf "%3d %-30s time %s\n" $count $f $t
warn=`grep WARN _testlogs/*.log | wc -l`
errs=`grep ERROR _testlogs/*.log | wc -l`
printf "%d tests:%4d warnings,%4d errors\n" $count $warn $errs
if [ $errs -gt 0 ]; then
grep ERROR _testlogs/*.log
printf "See test logs in _testlogs for details"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment