Skip to content

Commit

Permalink
Merge pull request #628 from ketch/reenable_example_tests
Browse files Browse the repository at this point in the history
Make Travis run our examples as tests again.
  • Loading branch information
mandli committed Oct 7, 2019
2 parents a9d93c4 + fbd4a0e commit b3d9fa8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions run_tests_on_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@ cd src/pyclaw
if [ "${TEST_PACKAGE}" == "pyclaw" ]; then
# pyclaw doc-tests
nosetests --first-pkg-wins --with-doctest --exclude=limiters --exclude=sharpclaw --exclude=fileio --exclude=example --with-coverage --cover-package=clawpack.pyclaw;
mv .coverage temp;
mv .coverage .coverage.doctest;
# pyclaw examples and I/O tests
nosetests -v --first-pkg-wins --exclude=limiters --exclude=sharpclaw --with-coverage --cover-package=clawpack.pyclaw --include=IOTest;
mv temp .coverage.doctest;
cd ../../examples;
nosetests -v --with-coverage --cover-package=clawpack.pyclaw;
mv .coverage ../src/pyclaw/.coverage.examples;
cd ../src/pyclaw;
coverage combine;
fi

if [[ "${TEST_PACKAGE}" == "petclaw" ]]; then
# petclaw examples
mpirun -n 4 nosetests -v --first-pkg-wins --exclude=limiters --exclude=sharpclaw --exclude=fileio;
cd ../petclaw/tests;
# petclaw I/O tests
cd ../petclaw/tests;
mpirun -n 4 nosetests -v --first-pkg-wins --include=IOTest;
# petclaw examples
cd ../../../examples;
mpirun -n 4 nosetests -v --first-pkg-wins;
fi

if [[ "${TEST_PACKAGE}" == "forestclaw" ]]; then
Expand Down

0 comments on commit b3d9fa8

Please sign in to comment.