Skip to content
Snippets Groups Projects
Commit 33e9ce9e authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Script which runs all demo and snippets in non-blocking mode.

parent 4411e091
No related branches found
No related tags found
No related merge requests found
# 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
#!/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"
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