Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moose
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sahil Moza
moose
Commits
33e9ce9e
Commit
33e9ce9e
authored
9 years ago
by
Dilawar Singh
Browse files
Options
Downloads
Patches
Plain Diff
Script which runs all demo and snippets in non-blocking mode.
parent
4411e091
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/matplotlibrc
+11
-0
11 additions, 0 deletions
data/matplotlibrc
test_examples.sh
+24
-0
24 additions, 0 deletions
test_examples.sh
with
35 additions
and
0 deletions
data/matplotlibrc
0 → 100644
+
11
−
0
View file @
33e9ce9e
# This is configuration file for matplotlib used in examples.
# We use this configuration file to test the examples. Copy this configuration
# file in the current working directory and run the snippet.
# This configuration file does the followings:
# - plt.show() function become non-blocking.
backend = qt4agg
# This makes all plots non-blocking.
interactive = True
This diff is collapsed.
Click to expand it.
test_examples.sh
0 → 100755
+
24
−
0
View file @
33e9ce9e
#!/bin/bash
set
-e
declare
-i
a
PYC
=
`
which python
`
RUNDIR
=
./_test_dir_moose-examples_
echo
"Creating
$RUNDIR
"
mkdir
-p
$RUNDIR
MATPLOTRC
=
data/matplotlibrc
echo
"copying examples out of source"
cp
-r
moose-examples/
*
$RUNDIR
/
PYFILES
=
`
find
$RUNDIR
-name
"*.py"
`
for
pyf
in
$PYFILES
;
do
let
a
=
a+1
dn
=
`
dirname
$pyf
`
fn
=
`
basename
$pyf
`
# copy matplotlibrc file to working directory
cp
$MATPLOTRC
$dn
/
(
cd
$dn
echo
"Executing
$fn
in directory
$dn
"
$PYC
$fn
)
done
echo
"Total
$a
scripts run"
This diff is collapsed.
Click to expand it.
Preview
0%
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