Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyDial3 - Public
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
dsml
PyDial3 - Public
Commits
82d071ea
Commit
82d071ea
authored
May 8, 2020
by
Carel van Niekerk
Browse files
Options
Downloads
Patches
Plain Diff
Add missing testPyDial script
parent
d4676258
No related branches found
No related tags found
No related merge requests found
Pipeline
#40107
passed
May 8, 2020
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
testPyDial
+27
-0
27 additions, 0 deletions
testPyDial
with
27 additions
and
0 deletions
testPyDial
0 → 100644
+
27
−
0
View file @
82d071ea
echo "Running PyDial Tests"
if [ ! -d tests ]; then
echo "No tests directory - testing aborted"
exit -1
fi
rm -f timeout
rm -f _testlogs/*
let count=0
warn=0
errs=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
done
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
fi
printf "See test logs in _testlogs for details"
echo
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment