Skip to content
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

testing: Teach test helper functions to add both Serial and MPI tests #2200

Merged
merged 5 commits into from
May 4, 2020

Conversation

bradking
Copy link
Collaborator

@bradking bradking commented May 4, 2020

Teach gtest_add_tests_helper and fortran_add_test_helper to add both serial and MPI tests when possible. Update the mpi argument allowed enumeration values to distinguish the case of "mpi allowed" from "mpi only". Update all call sites accordingly.

With this, tests can run both serial and MPI variants when ADIOS2 is built with MPI enabled. Previously the tests would only run one or the other variant.

bradking added 2 commits May 4, 2020 11:38
This test directory is only added when `ADIOS2_HAVE_MPI` is true.
Drop explicit tests of that condition inside inside the directory.
The intermediate `NUM_TEST_PROCS` variable is not actually referenced
anywhere that is not `if(ADIOS2_HAVE_MPI)`, so just use the original
value from `MPIEXEC_MAX_NUMPROCS` directly.  Quote it in property
settings just in case it is somehow empty.
@bradking bradking requested a review from chuckatkins May 4, 2020 15:45
bradking added 3 commits May 4, 2020 12:05
Avoid hard-coding test executable target names.
Avoid hard-coding test executable target names.
Teach `gtest_add_tests_helper` and `fortran_add_test_helper` to add
both serial and MPI tests when possible.  Update the `mpi` argument
allowed enumeration values to distinguish the case of "mpi allowed"
from "mpi only".
@chuckatkins chuckatkins merged commit b1ea68c into ornladios:master May 4, 2020
@bradking bradking deleted the test-split-mpi branch May 4, 2020 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants