-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in unit tests with v0.3.0 #63
Comments
How are you running the tests? |
I am using the command |
Should I use mpirun? |
I think you should add skip conditions if the tests are supposed to run only when MPI is available |
Some of the tests are for parallel functionality, so yes, they require MPI and also mpi4py to run. In the tests README, we explain how to run the tests. But you make a good point, a user should be able to run the tests in a general way from the source directory. I will look into skip conditions. |
I think individually running tests in each file is difficult. Since you only have few unit tests that should be OK. Even then you can miss some tests if you forget to run tests in any particular file. For mpi test discovery, we use pattern matching. See below script #!/bin/bash
set -ex
# In the above line, "set -x" causes this script to exit as soon as any line fails. "set -e" causes each line of this script to be printed (with a + in front) before it is executed.
cd tests
for j in {1..3}
do
mpiexec -n $j python -m unittest -k mpi
done |
I am seeing the below errors when running the units.
The text was updated successfully, but these errors were encountered: