refactor run scripts to a single macros with includes (#5538)

* Refactor the CMake scripts into a single script
* Adjust args to do grep testing
This commit is contained in:
Allen Byrne
2025-05-24 16:26:46 -05:00
committed by GitHub
parent a43b1f2ffd
commit 4cc7161fc2
237 changed files with 491 additions and 1801 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ if (H5EX_BUILD_TESTING)
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}"
-D "TEST_OUTPUT=${testname}.ddl.out"
-D "TEST_FILTER=PARAMS { ([0-9]) [-]?[0-9]+ ([0-9] [0-9] [0-9] [0-9] [0-9] [0-9]) }\n"
-D "TEST_FILTER_REPLACE=PARAMS { \\1 XXXX \\2 }\n"
-D "TEST_FILTER_REPLACE=PARAMS { \\\\1 XXXX \\\\2 }\n"
-D "TEST_EXPECT=0"
-D "TEST_REFERENCE=${testname}.ddl"
-D "TEST_ENV_VAR=HDF5_PLUGIN_PATH"
+2 -1
View File
@@ -39,9 +39,10 @@ if (H5EX_BUILD_TESTING)
-D "TEST_EXPECT=0"
-D "TEST_SKIP_COMPARE=TRUE"
-D "TEST_OUTPUT=${testname}.out"
-D "TEST_GREP_COMPARE=TRUE"
-D "TEST_REFERENCE:STRING=PHDF5 example finished with no errors"
-D "TEST_LIBRARY_DIRECTORY=${CMAKE_TEST_LIB_DIRECTORY}"
-P "${H5EX_RESOURCES_DIR}/grepTest.cmake"
-P "${H5EX_RESOURCES_DIR}/runTest.cmake"
)
set_tests_properties (MPI_TEST_${EXAMPLE_VARNAME}_${testname} PROPERTIES DEPENDS ${EXAMPLE_VARNAME}_${testname}-clearall)
set (last_test "MPI_TEST_${EXAMPLE_VARNAME}_${testname}")