2017-12-14 15:03:39 +07:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -ex
|
2018-01-26 16:01:20 -06:00
|
|
|
|
2020-01-24 03:07:13 +00:00
|
|
|
# Argument List
|
2020-01-24 03:02:45 +00:00
|
|
|
args=" "
|
|
|
|
|
|
2020-01-24 03:07:13 +00:00
|
|
|
# Check for MPI
|
2018-01-29 13:46:40 -06:00
|
|
|
if [[ $MPI == 'y' ]]; then
|
2020-01-24 03:02:45 +00:00
|
|
|
args="${args} --mpi "
|
|
|
|
|
fi
|
2023-02-16 07:45:47 -06:00
|
|
|
|
2020-01-24 03:07:13 +00:00
|
|
|
# Check for event-based
|
2020-01-24 03:02:45 +00:00
|
|
|
if [[ $EVENT == 'y' ]]; then
|
|
|
|
|
args="${args} --event "
|
2018-01-29 13:46:40 -06:00
|
|
|
fi
|
2020-01-24 03:02:45 +00:00
|
|
|
|
2025-08-30 05:39:46 +02:00
|
|
|
# Run unit tests and then regression tests
|
2025-10-06 21:14:37 -05:00
|
|
|
pytest -v $args \
|
2025-09-23 10:06:29 -05:00
|
|
|
tests/test_matplotlib_import.py \
|
|
|
|
|
tests/unit_tests \
|
|
|
|
|
tests/regression_tests
|