mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
21 lines
344 B
Bash
Executable file
21 lines
344 B
Bash
Executable file
#!/bin/bash
|
|
set -ex
|
|
|
|
# Argument List
|
|
args=" "
|
|
|
|
# Check for MPI
|
|
if [[ $MPI == 'y' ]]; then
|
|
args="${args} --mpi "
|
|
fi
|
|
|
|
# Check for event-based
|
|
if [[ $EVENT == 'y' ]]; then
|
|
args="${args} --event "
|
|
fi
|
|
|
|
# Run unit tests and then regression tests
|
|
pytest -v $args \
|
|
tests/test_matplotlib_import.py \
|
|
tests/unit_tests \
|
|
tests/regression_tests
|