test: add immutable shell Jet baseline oracle
This commit is contained in:
@@ -179,6 +179,17 @@ target_compile_definitions(
|
||||
FESA_TEST_BINARY_DIR="${PROJECT_BINARY_DIR}"
|
||||
)
|
||||
|
||||
add_executable(fesa_jet_baseline_tests
|
||||
unit/elements/nonlinear_mitc4_shell_jet_baseline.cpp)
|
||||
target_include_directories(fesa_jet_baseline_tests PRIVATE
|
||||
"${PROJECT_SOURCE_DIR}/src/fesa")
|
||||
target_compile_definitions(fesa_jet_baseline_tests PRIVATE
|
||||
MKL_ILP64 __TBB_NO_IMPLICIT_LINKAGE=1 H5_BUILT_AS_DYNAMIC_LIB)
|
||||
target_compile_options(fesa_jet_baseline_tests PRIVATE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/fp:precise /EHsc>)
|
||||
target_link_libraries(fesa_jet_baseline_tests PRIVATE
|
||||
fesa_solver Fesa::MKL Fesa::TBB Fesa::HDF5)
|
||||
|
||||
if(WIN32)
|
||||
if(NOT TARGET ${FESA_MKL_THREAD_TARGET} OR NOT TARGET MKL::mkl_core)
|
||||
message(FATAL_ERROR "The oneMKL runtime files required by tests were not resolved")
|
||||
@@ -226,6 +237,7 @@ if(WIN32)
|
||||
fesa_stage_test_runtime(fesa_unit_tests)
|
||||
fesa_stage_test_runtime(fesa_integration_tests)
|
||||
fesa_stage_test_runtime(fesa_reference_tests)
|
||||
fesa_stage_test_runtime(fesa_jet_baseline_tests)
|
||||
|
||||
unset(_fesa_mkl_dispatch_dll)
|
||||
unset(_fesa_mkl_dispatch_dlls)
|
||||
@@ -258,4 +270,11 @@ add_custom_target(
|
||||
fesa_unit_tests
|
||||
fesa_integration_tests
|
||||
fesa_reference_tests
|
||||
fesa_jet_baseline_tests
|
||||
)
|
||||
|
||||
# Verification never creates or replaces an immutable baseline snapshot.
|
||||
add_test(NAME NonlinearMitc4Jet.IndependentOracle
|
||||
COMMAND fesa_jet_baseline_tests --verify)
|
||||
set_tests_properties(NonlinearMitc4Jet.IndependentOracle PROPERTIES
|
||||
LABELS "unit;jet-baseline")
|
||||
|
||||
Reference in New Issue
Block a user