Commit 08f71653 authored by Davis King's avatar Davis King

Made it so that the python example programs are run, just to make sure they

work, before the makerel script is allowed to complete.
parent 3d728cc9
......@@ -18,6 +18,20 @@ build_python_interface ()
cd build || report_failure
cmake ../../tools/python || report_failure
make -j4 install || report_failure
# Check if we should run all the python examples to make sure they
# work without generating an error.
if [ $1 == "test-python" ]
then
cd ..
FILES=`ls *.py`
for f in $FILES
do
python $f > /dev/null || report_failure
done
fi
popd
}
......@@ -147,7 +161,7 @@ makedocs ()
# the python docs can't be created (this happens if the .so file isn't compiled)
if [ "$1" = "makerel" ]
then
build_python_interface
build_python_interface test-python
sphinx-build -b html docs/python sphinx.$$ || report_failure
else
if [ "$1" != "fast" ]
......
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