Skip to content

Commit 55d0fe3

Browse files
committed
Correct script grep usage and options
1 parent 9491206 commit 55d0fe3

File tree

7 files changed

+8
-4
lines changed

7 files changed

+8
-4
lines changed

HDF5Examples/C/H5PAR/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ if (H5EX_BUILD_TESTING)
3939
-D "TEST_EXPECT=0"
4040
-D "TEST_SKIP_COMPARE=TRUE"
4141
-D "TEST_OUTPUT=${testname}.out"
42+
-D "TEST_GREP_COMPARE=TRUE"
4243
-D "TEST_REFERENCE:STRING=PHDF5 example finished with no errors"
4344
-D "TEST_LIBRARY_DIRECTORY=${CMAKE_TEST_LIB_DIRECTORY}"
4445
-P "${H5EX_RESOURCES_DIR}/runTest.cmake"

HDF5Examples/FORTRAN/H5PAR/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ if (H5EX_BUILD_TESTING)
5050
-D "TEST_EXPECT=0"
5151
-D "TEST_SKIP_COMPARE=TRUE"
5252
-D "TEST_OUTPUT=${testname}.out"
53+
-D "TEST_GREP_COMPARE=TRUE"
5354
-D "TEST_REFERENCE:STRING=PHDF5 example finished with no errors"
5455
-D "TEST_LIBRARY_DIRECTORY=${CMAKE_TEST_LIB_DIRECTORY}"
5556
-P "${H5EX_RESOURCES_DIR}/runTest.cmake"

HDF5Examples/config/cmake/runExecute.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ if (NOT TEST_SKIP_COMPARE)
386386
endif () # TEST_SKIP_COMPARE
387387

388388
set (TEST_GREP_RESULT 0)
389-
if (TEST_GREP_COMPARE AND EXISTS "${TEST_FOLDER}/${TEST_OUTPUT}")
389+
if (TEST_GREP_COMPARE AND TEST_SKIP_COMPARE AND EXISTS "${TEST_FOLDER}/${TEST_OUTPUT}")
390390
# now grep the output with the reference
391391
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM)
392392
list (LENGTH TEST_STREAM test_len)

config/cmake/runExecute.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ if (NOT TEST_SKIP_COMPARE)
386386
endif () # TEST_SKIP_COMPARE
387387

388388
set (TEST_GREP_RESULT 0)
389-
if (TEST_GREP_COMPARE AND EXISTS "${TEST_FOLDER}/${TEST_OUTPUT}")
389+
if (TEST_GREP_COMPARE AND TEST_SKIP_COMPARE AND EXISTS "${TEST_FOLDER}/${TEST_OUTPUT}")
390390
# now grep the output with the reference
391391
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM)
392392
list (LENGTH TEST_STREAM test_len)

tools/test/h5dump/CMakeTests.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,6 @@
851851
-D "TEST_ERRREF=${result_errcheck}"
852852
-D "TEST_ENV_VAR:STRING=${envvar}"
853853
-D "TEST_ENV_VALUE:STRING=${envval}"
854-
-D "TEST_GREP_COMPARE=TRUE"
855854
-P "${HDF_RESOURCES_DIR}/runTest.cmake"
856855
)
857856
set_tests_properties (H5DUMP-${resultfile} PROPERTIES

tools/test/h5dump/CMakeTestsPBITS.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
-D "TEST_EXPECT=${resultcode}"
117117
-D "TEST_REFERENCE=${resultfile}.ddl"
118118
-D "TEST_ERRREF=${result_errcheck}"
119-
-D "TEST_GREP_COMPARE=TRUE"
120119
-P "${HDF_RESOURCES_DIR}/runTest.cmake"
121120
)
122121
else ()

tools/test/h5repack/CMakeTests.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@
803803
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/testfiles"
804804
-D "TEST_OUTPUT=${testfile}-${testname}-v.out"
805805
-D "TEST_EXPECT=${resultcode}"
806+
-D "TEST_SKIP_COMPARE=TRUE"
806807
-D "TEST_GREP_FILTER:STRING=${testfilter}"
807808
-D "TEST_REFERENCE=${testfilter}"
808809
-D "TEST_GREP_COMPARE=TRUE"
@@ -830,6 +831,7 @@
830831
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/testfiles"
831832
-D "TEST_OUTPUT=${testfile}-${testname}-v.out"
832833
-D "TEST_EXPECT=0"
834+
-D "TEST_SKIP_COMPARE=TRUE"
833835
-D "TEST_GREP_EXPECT=${resultcode}"
834836
-D "TEST_GREP_FILTER:STRING=${nottestfilter}"
835837
-D "TEST_REFERENCE=${testfilter}"
@@ -937,6 +939,7 @@
937939
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/testfiles"
938940
-D "TEST_OUTPUT=${testfile}-${testname}-v.out"
939941
-D "TEST_EXPECT=0"
942+
-D "TEST_SKIP_COMPARE=TRUE"
940943
-D "TEST_GREP_FILTER:STRING=SUPERBLOCK_VERSION ${superblock}"
941944
-D "TEST_REFERENCE=SUPERBLOCK_VERSION ${superblock}"
942945
-D "TEST_GREP_COMPARE=TRUE"
@@ -1008,6 +1011,7 @@
10081011
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/testfiles"
10091012
-D "TEST_OUTPUT=${testfile}-${testname}-v.out"
10101013
-D "TEST_EXPECT=0"
1014+
-D "TEST_SKIP_COMPARE=TRUE"
10111015
-D "TEST_GREP_FILTER:STRING=USERBLOCK_SIZE ${userblocksize}"
10121016
-D "TEST_REFERENCE=USERBLOCK_SIZE ${userblocksize}"
10131017
-D "TEST_GREP_COMPARE=TRUE"

0 commit comments

Comments
 (0)