mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
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:
@@ -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"
|
||||
|
||||
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user