diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-03-23 21:23:11 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-03-23 21:23:11 (GMT) |
commit | 76abbdeff03a5025d8786f3fdc4007c5bed64a71 (patch) | |
tree | bcbf816942e85942e250063bf140abe79ecaee4f /config | |
parent | 4147de8d02fdfb651e860df999f87263d72be573 (diff) | |
download | hdf5-76abbdeff03a5025d8786f3fdc4007c5bed64a71.zip hdf5-76abbdeff03a5025d8786f3fdc4007c5bed64a71.tar.gz hdf5-76abbdeff03a5025d8786f3fdc4007c5bed64a71.tar.bz2 |
[svn-r20305] Add tests to h5import and 80% of h5jam
Tested: local linux
Diffstat (limited to 'config')
-rwxr-xr-x | config/cmake/CTestCustom.cmake | 113 | ||||
-rw-r--r-- | config/cmake/runTest.cmake | 26 |
2 files changed, 110 insertions, 29 deletions
diff --git a/config/cmake/CTestCustom.cmake b/config/cmake/CTestCustom.cmake index ac400fb..2a3159b 100755 --- a/config/cmake/CTestCustom.cmake +++ b/config/cmake/CTestCustom.cmake @@ -26,26 +26,9 @@ SET (CTEST_CUSTOM_MEMCHECK_IGNORE hl_fortran_test-clear-objects ######### tools/h5copy ######### H5COPY-clearall-objects - H5COPY-H5LS_h5copytst-basic #uses runTest.cmake H5COPY-clear-refs - H5COPY-region_ref #needs clear-refs - H5COPY-H5LS_h5copy_ref-refs #uses runTest.cmake H5COPY-clear-ext-links - H5COPY-ext_link #needs clear-ext-links - H5COPY-ext_link_f #needs clear-ext-links - H5COPY-ext_dangle_noobj #needs clear-ext-links - H5COPY-ext_dangle_noobj_f #needs clear-ext-links - H5COPY-ext_dangle_nofile #needs clear-ext-links - H5COPY-ext_dangle_nofile_f #needs clear-ext-links - H5COPY-ext_link_group #needs clear-ext-links - H5COPY-ext_link_group_f #needs clear-ext-links - H5COPY-H5LS_h5copy_extlinks_src-links #uses runTest.cmake H5COPY-clear-misc - H5COPY-CMP-h5copy_misc1 #uses runTest.cmake - H5COPY-samefile1_pre #needs clear-ext-links - H5COPY-samefile2_pre #needs clear-ext-links - H5COPY-samefile1 #needs clear-ext-links - H5COPY-samefile2 #needs clear-ext-links ######### tools/h5diff ######### H5DIFF-clearall-objects ######### tools/h5dump ######### @@ -57,6 +40,102 @@ SET (CTEST_CUSTOM_MEMCHECK_IGNORE H5DUMP-XML-clearall-objects ######### tools/h5import ######### H5IMPORT-clear-objects + H5IMPORT-ASCII_F32-clear-objects + H5IMPORT-ASCII_UI16-clear-objects + H5IMPORT-ASCII_UI32-clear-objects + H5IMPORT-ASCII_I8-clear-objects + H5IMPORT-ASCII_I16-clear-objects + H5IMPORT-ASCII_I32-clear-objects + H5IMPORT-ASCII_F64_R1-clear-objects + H5IMPORT-BINARY_I8_EOF-clear-objects + H5IMPORT-STR-clear-objects + H5IMPORT-BINARY_UI32-clear-objects + H5IMPORT-BINARY_UI16-clear-objects + H5IMPORT-BINARY_I32-clear-objects + H5IMPORT-BINARY_I8-clear-objects + H5IMPORT-BINARY_I16-clear-objects + H5IMPORT-BINARY_F64-clear-objects + H5IMPORT-ASCII_F64-clear-objects + ######### tools/h5jam ######### + H5JAM-SETUP-N_twithub_u511_c-clear-objects + H5JAM-N_twithub_u511_c-clear-objects + H5JAM-CHECKFILE-N_twithub_u511_c-clear-objects + H5JAM-SETUP-N_twithub_u512_c-clear-objects + H5JAM-N_twithub_u512_c-clear-objects + H5JAM-CHECKFILE-N_twithub_u512_c-clear-objects + H5JAM-SETUP-N_twithub_u513_c-clear-objects + H5JAM-N_twithub_u513_c-clear-objects + H5JAM-CHECKFILE-N_twithub_u513_c-clear-objects + H5JAM-SETUP-N_twithub513_u10_c-clear-objects + H5JAM-N_twithub513_u10_c-clear-objects + H5JAM-CHECKFILE-N_twithub513_u10_c-clear-objects + H5JAM-SETUP-N_twithub513_u511_c-clear-objects + H5JAM-N_twithub513_u511_c-clear-objects + H5JAM-CHECKFILE-N_twithub513_u511_c-clear-objects + H5JAM-SETUP-N_twithub513_u512_c-clear-objects + H5JAM-N_twithub513_u512_c-clear-objects + H5JAM-CHECKFILE-N_twithub513_u512_c-clear-objects + H5JAM-CHECKFILE-twithub_u10_c-clear-objects + H5JAM-twithub_u511_c-clear-objects + H5JAM-CHECKFILE-twithub_u511_c-clear-objects + H5JAM-twithub_u512_c-clear-objects + H5JAM-CHECKFILE-twithub_u512_c-clear-objects + H5JAM-twithub_u513_c-clear-objects + H5JAM-CHECKFILE-twithub_u513_c-clear-objects + H5JAM-twithub513_u10_c-clear-objects + H5JAM-CHECKFILE-twithub513_u10_c-clear-objects + H5JAM-twithub513_u511_c-clear-objects + H5JAM-CHECKFILE-twithub513_u511_c-clear-objects + H5JAM-twithub513_u512_c-clear-objects + H5JAM-CHECKFILE-twithub513_u512_c-clear-objects + H5JAM-twithub513_u513_c-clear-objects + H5JAM-CHECKFILE-twithub513_u513_c-clear-objects + H5JAM-SETUP-N_twithub_u10_c-clear-objects + H5JAM-N_twithub_u10_c-clear-objects + H5JAM-CHECKFILE-N_twithub_u10_c-clear-objects + H5JAM-SETUP-D_twithub_tall-clear-objects + H5JAM-UNJAM-D_twithub_tall-clear-objects + H5JAM-CHECKFILE-D_twithub_tall-clear-objects + H5JAM-SETUP-D_twithub513_tall-clear-objects + H5JAM-UNJAM-D_twithub513_tall-clear-objects + H5JAM-CHECKFILE-D_twithub513_tall-clear-objects + H5JAM-CHECKFILE-ta_u513-clear-objects + H5JAM-twithub_u10-clear-objects + H5JAM-CHECKFILE-twithub_u10-clear-objects + H5JAM-twithub_u511-clear-objects + H5JAM-CHECKFILE-twithub_u511-clear-objects + H5JAM-twithub_u512-clear-objects + H5JAM-CHECKFILE-twithub_u512-clear-objects + H5JAM-twithub_u513-clear-objects + H5JAM-CHECKFILE-twithub_u513-clear-objects + H5JAM-twithub513_u10-clear-objects + H5JAM-CHECKFILE-twithub513_u10-clear-objects + H5JAM-twithub513_u511-clear-objects + H5JAM-CHECKFILE-twithub513_u511-clear-objects + H5JAM-twithub513_u512-clear-objects + H5JAM-CHECKFILE-twithub513_u512-clear-objects + H5JAM-twithub513_u513-clear-objects + H5JAM-CHECKFILE-twithub513_u513-clear-objects + H5JAM-twithub_u10_c-clear-objects + H5JAM-tall_u10-clear-objects + H5JAM-CHECKFILE-tall_u10-clear-objects + H5JAM-tall_u511-clear-objects + H5JAM-CHECKFILE-tall_u511-clear-objects + H5JAM-tall_u512-clear-objects + H5JAM-CHECKFILE-tall_u512-clear-objects + H5JAM-tall_u513-clear-objects + H5JAM-CHECKFILE-tall_u513-clear-objects + H5JAM-SETUP-ta_u10-clear-objects + H5JAM-ta_u10-clear-objects + H5JAM-CHECKFILE-ta_u10-clear-objects + H5JAM-SETUP-ta_u511-clear-objects + H5JAM-ta_u511-clear-objects + H5JAM-CHECKFILE-ta_u511-clear-objects + H5JAM-SETUP-ta_u512-clear-objects + H5JAM-ta_u512-clear-objects + H5JAM-CHECKFILE-ta_u512-clear-objects + H5JAM-SETUP-ta_u513-clear-objects + H5JAM-ta_u513-clear-objects ######### tools/h5ls ######### H5LS-clearall-objects ######### tools/h5repack ######### diff --git a/config/cmake/runTest.cmake b/config/cmake/runTest.cmake index 4bdc4fd..28f4114 100644 --- a/config/cmake/runTest.cmake +++ b/config/cmake/runTest.cmake @@ -20,9 +20,9 @@ ENDIF (NOT TEST_OUTPUT) #IF (NOT TEST_FILTER) # MESSAGE (STATUS "Require TEST_FILTER to be defined") #ENDIF (NOT TEST_FILTER) -IF (NOT TEST_REFERENCE) +IF (NOT TEST_SKIP_COMPARE AND NOT TEST_REFERENCE) MESSAGE (FATAL_ERROR "Require TEST_REFERENCE to be defined") -ENDIF (NOT TEST_REFERENCE) +ENDIF (NOT TEST_SKIP_COMPARE AND NOT TEST_REFERENCE) SET (ERROR_APPEND 1) @@ -96,18 +96,20 @@ IF (WIN32 AND NOT MINGW) FILE (WRITE ${TEST_FOLDER}/${TEST_REFERENCE} "${TEST_STREAM}") ENDIF (WIN32 AND NOT MINGW) -# now compare the output with the reference -EXECUTE_PROCESS ( - COMMAND ${CMAKE_COMMAND} -E compare_files ${TEST_FOLDER}/${TEST_OUTPUT} ${TEST_FOLDER}/${TEST_REFERENCE} - RESULT_VARIABLE TEST_RESULT -) +IF (NOT TEST_SKIP_COMPARE) + # now compare the output with the reference + EXECUTE_PROCESS ( + COMMAND ${CMAKE_COMMAND} -E compare_files ${TEST_FOLDER}/${TEST_OUTPUT} ${TEST_FOLDER}/${TEST_REFERENCE} + RESULT_VARIABLE TEST_RESULT + ) -MESSAGE (STATUS "COMPARE Result: ${TEST_RESULT}") + MESSAGE (STATUS "COMPARE Result: ${TEST_RESULT}") -# again, if return value is !=0 scream and shout -IF (NOT ${TEST_RESULT} STREQUAL 0) - MESSAGE (FATAL_ERROR "Failed: The output of ${TEST_PROGRAM} did not match ${TEST_REFERENCE}") -ENDIF (NOT ${TEST_RESULT} STREQUAL 0) + # again, if return value is !=0 scream and shout + IF (NOT ${TEST_RESULT} STREQUAL 0) + MESSAGE (FATAL_ERROR "Failed: The output of ${TEST_PROGRAM} did not match ${TEST_REFERENCE}") + ENDIF (NOT ${TEST_RESULT} STREQUAL 0) +ENDIF (NOT TEST_SKIP_COMPARE) # everything went fine... MESSAGE ("Passed: The output of ${TEST_PROGRAM} matches ${TEST_REFERENCE}") |