Only add test Piro_AnalysisDriverTpetra_MPI_4 if ROL is enabled (#3115)
Created by: bartlettroscoe
CC: @trilinos/piro, @mperego, @rppawlo, @fryeguy52
Description
This commit changes behavior to only add the test Piro_AnalysisDriverTpetra_MPI_4
is ROL is enabled.
Motivation and Context
The Piro test suite should run and pass no matter what subset of optional upstream packages are enabled or disabled.
How Has This Been Tested?
I just did a local configure using the instructions provided at in #3115 (closed) and (after adding -DTrilinos_TRACE_ADD_TEST=ON
) the configure output showed:
-- Piro_AnalysisDriverTpetra: NOT added test because EXCLUDE_IF_NOT_TRUE Piro_ENABLE_ROL='OFF'!
When the PR testing runs, we will verify that this test is enabled and passes in the standard PR builds.
Checklist
-
My commit messages mention the appropriate GitHub issue numbers. -
All new and existing tests passed. -
No new compiler warnings were introduced.