diff options
-rwxr-xr-x | config/cmake/CTestCustom.cmake | 547 | ||||
-rw-r--r-- | config/cmake/runTest.cmake | 26 | ||||
-rw-r--r-- | tools/h5import/CMakeLists.txt | 191 | ||||
-rw-r--r-- | tools/h5jam/CMakeLists.txt | 345 |
4 files changed, 642 insertions, 467 deletions
diff --git a/config/cmake/CTestCustom.cmake b/config/cmake/CTestCustom.cmake index 0dd0955..a962b1d 100755 --- a/config/cmake/CTestCustom.cmake +++ b/config/cmake/CTestCustom.cmake @@ -26,460 +26,117 @@ 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 -# H5DIFF-h5diff_10 #uses runTest.cmake -# H5DIFF-h5diff_11 #uses runTest.cmake -# H5DIFF-h5diff_12 #uses runTest.cmake -# H5DIFF-h5diff_13 #uses runTest.cmake -# H5DIFF-h5diff_14 #uses runTest.cmake -# H5DIFF-h5diff_15 #uses runTest.cmake -# H5DIFF-h5diff_16_1 #uses runTest.cmake -# H5DIFF-h5diff_16_2 #uses runTest.cmake -# H5DIFF-h5diff_16_3 #uses runTest.cmake -# H5DIFF-h5diff_17 #uses runTest.cmake -# H5DIFF-h5diff_171 #uses runTest.cmake -# H5DIFF-h5diff_172 #uses runTest.cmake -# H5DIFF-h5diff_18 #uses runTest.cmake -# H5DIFF-h5diff_18_1 #uses runTest.cmake -# H5DIFF-h5diff_20 #uses runTest.cmake -# H5DIFF-h5diff_21 #uses runTest.cmake -# H5DIFF-h5diff_22 #uses runTest.cmake -# H5DIFF-h5diff_23 #uses runTest.cmake -# H5DIFF-h5diff_24 #uses runTest.cmake -# H5DIFF-h5diff_25 #uses runTest.cmake -# H5DIFF-h5diff_26 #uses runTest.cmake -# H5DIFF-h5diff_27 #uses runTest.cmake -# H5DIFF-h5diff_28 #uses runTest.cmake -# H5DIFF-h5diff_50 #uses runTest.cmake -# H5DIFF-h5diff_51 #uses runTest.cmake -# H5DIFF-h5diff_52 #uses runTest.cmake -# H5DIFF-h5diff_53 #uses runTest.cmake -# H5DIFF-h5diff_54 #uses runTest.cmake -# H5DIFF-h5diff_55 #uses runTest.cmake -# H5DIFF-h5diff_56 #uses runTest.cmake -# H5DIFF-h5diff_57 #uses runTest.cmake -# H5DIFF-h5diff_58 #uses runTest.cmake -# H5DIFF-h5diff_600 #uses runTest.cmake -# H5DIFF-h5diff_601 #uses runTest.cmake -# H5DIFF-h5diff_603 #uses runTest.cmake -# H5DIFF-h5diff_604 #uses runTest.cmake -# H5DIFF-h5diff_605 #uses runTest.cmake -# H5DIFF-h5diff_606 #uses runTest.cmake -# H5DIFF-h5diff_607 #uses runTest.cmake -# H5DIFF-h5diff_608 #uses runTest.cmake -# H5DIFF-h5diff_609 #uses runTest.cmake -# H5DIFF-h5diff_610 #uses runTest.cmake -# H5DIFF-h5diff_612 #uses runTest.cmake -# H5DIFF-h5diff_613 #uses runTest.cmake -# H5DIFF-h5diff_614 #uses runTest.cmake -# H5DIFF-h5diff_615 #uses runTest.cmake -# H5DIFF-h5diff_616 #uses runTest.cmake -# H5DIFF-h5diff_617 #uses runTest.cmake -# H5DIFF-h5diff_618 #uses runTest.cmake -# H5DIFF-h5diff_619 #uses runTest.cmake -# H5DIFF-h5diff_621 #uses runTest.cmake -# H5DIFF-h5diff_622 #uses runTest.cmake -# H5DIFF-h5diff_623 #uses runTest.cmake -# H5DIFF-h5diff_624 #uses runTest.cmake -# H5DIFF-h5diff_625 #uses runTest.cmake -# H5DIFF-h5diff_626 #uses runTest.cmake -# H5DIFF-h5diff_627 #uses runTest.cmake -# H5DIFF-h5diff_628 #uses runTest.cmake -# H5DIFF-h5diff_70 #uses runTest.cmake -# H5DIFF-h5diff_80 #uses runTest.cmake -# H5DIFF-h5diff_90 #uses runTest.cmake -# H5DIFF-h5diff_101 #uses runTest.cmake -# H5DIFF-h5diff_102 #uses runTest.cmake -# H5DIFF-h5diff_200 #uses runTest.cmake -# H5DIFF-h5diff_201 #uses runTest.cmake -# H5DIFF-h5diff_202 #uses runTest.cmake -# H5DIFF-h5diff_203 #uses runTest.cmake -# H5DIFF-h5diff_204 #uses runTest.cmake -# H5DIFF-h5diff_205 #uses runTest.cmake -# H5DIFF-h5diff_206 #uses runTest.cmake -# H5DIFF-h5diff_207 #uses runTest.cmake -# H5DIFF-h5diff_300 #uses runTest.cmake -# H5DIFF-h5diff_400 #uses runTest.cmake -# H5DIFF-h5diff_401 #uses runTest.cmake -# H5DIFF-h5diff_402 #uses runTest.cmake -# H5DIFF-h5diff_403 #uses runTest.cmake -# H5DIFF-h5diff_404 #uses runTest.cmake -# H5DIFF-h5diff_405 #uses runTest.cmake -# H5DIFF-h5diff_406 #uses runTest.cmake -# H5DIFF-h5diff_407 #uses runTest.cmake -# H5DIFF-h5diff_408 #uses runTest.cmake -# H5DIFF-h5diff_409 #uses runTest.cmake -# H5DIFF-h5diff_410 #uses runTest.cmake -# H5DIFF-h5diff_411 #uses runTest.cmake -# H5DIFF-h5diff_412 #uses runTest.cmake -# H5DIFF-h5diff_413 #uses runTest.cmake -# H5DIFF-h5diff_414 #uses runTest.cmake -# H5DIFF-h5diff_415 #uses runTest.cmake -# H5DIFF-h5diff_416 #uses runTest.cmake -# H5DIFF-h5diff_417 #uses runTest.cmake -# H5DIFF-h5diff_418 #uses runTest.cmake -# H5DIFF-h5diff_419 #uses runTest.cmake -# H5DIFF-h5diff_420 #uses runTest.cmake -# H5DIFF-h5diff_421 #uses runTest.cmake -# H5DIFF-h5diff_422 #uses runTest.cmake -# H5DIFF-h5diff_423 #uses runTest.cmake -# H5DIFF-h5diff_424 #uses runTest.cmake -# H5DIFF-h5diff_425 #uses runTest.cmake -# H5DIFF-h5diff_450 #uses runTest.cmake -# H5DIFF-h5diff_451 #uses runTest.cmake -# H5DIFF-h5diff_452 #uses runTest.cmake -# H5DIFF-h5diff_453 #uses runTest.cmake -# H5DIFF-h5diff_454 #uses runTest.cmake -# H5DIFF-h5diff_455 #uses runTest.cmake -# H5DIFF-h5diff_456 #uses runTest.cmake -# H5DIFF-h5diff_457 #uses runTest.cmake -# H5DIFF-h5diff_458 #uses runTest.cmake -# H5DIFF-h5diff_459 #uses runTest.cmake -# H5DIFF-h5diff_500 #uses runTest.cmake -# H5DIFF-h5diff_501 #uses runTest.cmake -# H5DIFF-h5diff_502 #uses runTest.cmake -# H5DIFF-h5diff_503 #uses runTest.cmake -# H5DIFF-h5diff_504 #uses runTest.cmake -# H5DIFF-h5diff_505 #uses runTest.cmake -# H5DIFF-h5diff_506 #uses runTest.cmake -# H5DIFF-h5diff_507 #uses runTest.cmake -# H5DIFF-h5diff_508 #uses runTest.cmake -# H5DIFF-h5diff_509 #uses runTest.cmake -# H5DIFF-h5diff_510 #uses runTest.cmake -# H5DIFF-h5diff_511 #uses runTest.cmake -# H5DIFF-h5diff_512 #uses runTest.cmake -# H5DIFF-h5diff_513 #uses runTest.cmake -# H5DIFF-h5diff_514 #uses runTest.cmake -# H5DIFF-h5diff_515 #uses runTest.cmake -# H5DIFF-h5diff_516 #uses runTest.cmake -# H5DIFF-h5diff_517 #uses runTest.cmake -# H5DIFF-h5diff_518 #uses runTest.cmake -# H5DIFF-h5diff_480 #uses runTest.cmake -# H5DIFF-h5diff_481 #uses runTest.cmake -# H5DIFF-h5diff_482 #uses runTest.cmake -# H5DIFF-h5diff_483 #uses runTest.cmake -# H5DIFF-h5diff_484 #uses runTest.cmake -# H5DIFF-h5diff_530 #uses runTest.cmake ######### tools/h5dump ######### H5DUMP-clearall-objects - H5DUMP-packedbits #uses runTest.cmake - H5DUMP-tgroup-1 #uses runTest.cmake - H5DUMP-tgroup-2 #uses runTest.cmake - H5DUMP-tdset-1 #uses runTest.cmake - H5DUMP-tdset-2 #uses runTest.cmake - H5DUMP-tattr-1 #uses runTest.cmake - H5DUMP-tattr-2 #uses runTest.cmake - H5DUMP-tattr-3 #uses runTest.cmake - H5DUMP-tnamed_dtype_attr #uses runTest.cmake - H5DUMP-tslink-1 #uses runTest.cmake - H5DUMP-tudlink-1 #uses runTest.cmake - H5DUMP-tslink-2 #uses runTest.cmake - H5DUMP-tudlink-2 #uses runTest.cmake - H5DUMP-thlink-1 #uses runTest.cmake - H5DUMP-thlink-2 #uses runTest.cmake - H5DUMP-thlink-3 #uses runTest.cmake - H5DUMP-thlink-4 #uses runTest.cmake - H5DUMP-thlink-5 #uses runTest.cmake - H5DUMP-tcomp-1 #uses runTest.cmake - H5DUMP-tcomp-2 #uses runTest.cmake - H5DUMP-tcomp-4 #uses runTest.cmake - H5DUMP-tnestcomp-1 #uses runTest.cmake - H5DUMP-tall-1 #uses runTest.cmake - H5DUMP-tall-2 #uses runTest.cmake - H5DUMP-tall-3 #uses runTest.cmake - H5DUMP-tloop-1 #uses runTest.cmake - H5DUMP-tstr-1 #uses runTest.cmake - H5DUMP-tstr-2 #uses runTest.cmake - H5DUMP-tsaf #uses runTest.cmake - H5DUMP-tvldtypes1 #uses runTest.cmake - H5DUMP-tvldtypes2 #uses runTest.cmake - H5DUMP-tvldtypes3 #uses runTest.cmake - H5DUMP-tvldtypes4 #uses runTest.cmake - H5DUMP-tvldtypes5 #uses runTest.cmake - H5DUMP-tvlstr #uses runTest.cmake - H5DUMP-tarray1 #uses runTest.cmake - H5DUMP-tarray1_big #uses runTest.cmake - H5DUMP-tarray2 #uses runTest.cmake - H5DUMP-tarray3 #uses runTest.cmake - H5DUMP-tarray4 #uses runTest.cmake - H5DUMP-tarray5 #uses runTest.cmake - H5DUMP-tarray6 #uses runTest.cmake - H5DUMP-tarray7 #uses runTest.cmake - H5DUMP-tarray8 #uses runTest.cmake - H5DUMP-tempty #uses runTest.cmake - H5DUMP-tgrp_comments #uses runTest.cmake - H5DUMP-tsplit_file #uses runTest.cmake - H5DUMP-tfamily #uses runTest.cmake - H5DUMP-tmulti #uses runTest.cmake - H5DUMP-tlarge_objname #uses runTest.cmake - H5DUMP-tall-2A #uses runTest.cmake - H5DUMP-tall-2B #uses runTest.cmake - H5DUMP-tall-4s #uses runTest.cmake - H5DUMP-tall-5s #uses runTest.cmake - H5DUMP-tdset-3s #uses runTest.cmake - H5DUMP-tchar1 #uses runTest.cmake - H5DUMP-tchar1 #uses runTest.cmake - H5DUMP-tnofilename #uses runTest.cmake - H5DUMP-tboot1 #uses runTest.cmake - H5DUMP-tboot2 #uses runTest.cmake - H5DUMP-tperror #uses runTest.cmake - H5DUMP-tcontents #uses runTest.cmake - H5DUMP-tcompact #uses runTest.cmake - H5DUMP-tcontiguos #uses runTest.cmake - H5DUMP-tchunked #uses runTest.cmake - H5DUMP-texternal #uses runTest.cmake - H5DUMP-tfill #uses runTest.cmake - H5DUMP-packedbits #uses runTest.cmake - H5DUMP-tpbitsSignedWhole #uses runTest.cmake - H5DUMP-tpbitsSignedIntWhole #uses runTest.cmake - H5DUMP-tpbitsSignedLongWhole #uses runTest.cmake - H5DUMP-tpbitsSignedLongLongWhole #uses runTest.cmake - H5DUMP-tpbitsSignedLongLongWhole63 #uses runTest.cmake - H5DUMP-tpbitsSignedLongLongWhole1 #uses runTest.cmake - H5DUMP-tpbitsUnsignedWhole #uses runTest.cmake - H5DUMP-tpbitsUnsignedIntWhole #uses runTest.cmake - H5DUMP-tpbitsUnsignedLongWhole #uses runTest.cmake - H5DUMP-tpbitsUnsignedLongLongWhole #uses runTest.cmake - H5DUMP-tpbitsUnsignedLongLongWhole63 #uses runTest.cmake - H5DUMP-tpbitsUnsignedLongLongWhole1 #uses runTest.cmake - H5DUMP-tpbitsSigned2 #uses runTest.cmake - H5DUMP-tpbitsSigned4 #uses runTest.cmake - H5DUMP-tpbitsSignedInt #uses runTest.cmake - H5DUMP-tpbitsSignedInt4 #uses runTest.cmake - H5DUMP-tpbitsSignedInt8 #uses runTest.cmake - H5DUMP-tpbitsSignedLong #uses runTest.cmake - H5DUMP-tpbitsSignedLong8 #uses runTest.cmake - H5DUMP-tpbitsSignedLong16 #uses runTest.cmake - H5DUMP-tpbitsSignedLongLong #uses runTest.cmake - H5DUMP-tpbitsSignedLongLong16 #uses runTest.cmake - H5DUMP-tpbitsSignedLongLong32 #uses runTest.cmake - H5DUMP-tpbitsUnsigned2 #uses runTest.cmake - H5DUMP-tpbitsUnsigned4 #uses runTest.cmake - H5DUMP-tpbitsUnsignedInt #uses runTest.cmake - H5DUMP-tpbitsUnsignedInt4 #uses runTest.cmake - H5DUMP-tpbitsUnsignedInt8 #uses runTest.cmake - H5DUMP-tpbitsUnsignedLong #uses runTest.cmake - H5DUMP-tpbitsUnsignedLong8 #uses runTest.cmake - H5DUMP-tpbitsUnsignedLong16 #uses runTest.cmake - H5DUMP-tpbitsUnsignedLongLong #uses runTest.cmake - H5DUMP-tpbitsUnsignedLongLong16 #uses runTest.cmake - H5DUMP-tpbitsUnsignedLongLong32 #uses runTest.cmake - H5DUMP-tpbitsCharOffsetExceeded #uses runTest.cmake - H5DUMP-tpbitsIntOffsetExceeded #uses runTest.cmake - H5DUMP-tpbitsLongOffsetExceeded #uses runTest.cmake - H5DUMP-tpbitsCharLengthExceeded #uses runTest.cmake - H5DUMP-tpbitsIntLengthExceeded #uses runTest.cmake - H5DUMP-tpbitsLongLengthExceeded #uses runTest.cmake - H5DUMP-treference #uses runTest.cmake - H5DUMP-tstringe #uses runTest.cmake - H5DUMP-tstring #uses runTest.cmake - H5DUMP-tstring2 #uses runTest.cmake - H5DUMP-tindicesyes #uses runTest.cmake - H5DUMP-tindicesno #uses runTest.cmake - H5DUMP-tindicessub1 #uses runTest.cmake - H5DUMP-tindicessub2 #uses runTest.cmake - H5DUMP-tindicessub3 #uses runTest.cmake - H5DUMP-tindicessub4 #uses runTest.cmake - H5DUMP-tszip #uses runTest.cmake - H5DUMP-tdeflate #uses runTest.cmake - H5DUMP-tshuffle #uses runTest.cmake - H5DUMP-tfletcher32 #uses runTest.cmake - H5DUMP-tnbit #uses runTest.cmake - H5DUMP-tscaleoffset #uses runTest.cmake - H5DUMP-tallfilters #uses runTest.cmake - H5DUMP-tuserfilter #uses runTest.cmake - H5DUMP-tlonglinks #uses runTest.cmake - H5DUMP-tbigdims #uses runTest.cmake - H5DUMP-thyperslab #uses runTest.cmake - H5DUMP-tnullspace #uses runTest.cmake - H5DUMP-tvms #uses runTest.cmake - H5DUMP-tbin1LE #uses runTest.cmake - H5DUMP-tbin1 #uses runTest.cmake H5DUMP-clear-out1 - H5DUMP-h5import-out1 - H5DUMP-h5diff-out1 - H5DUMP-tbin2 #uses runTest.cmake - H5DUMP-tbin3 #uses runTest.cmake H5DUMP-clear-out3 - H5DUMP-h5import-out3 - H5DUMP-h5diff-out3 H5DUMP-clear-objects - H5DUMP-tbin4 #uses runTest.cmake - H5DUMP-tdatareg #uses runTest.cmake - H5DUMP-tdataregR #uses runTest.cmake - H5DUMP-tattrreg #uses runTest.cmake - H5DUMP-tattrregR #uses runTest.cmake - H5DUMP-output-tbinregR #uses runTest.cmake - H5DUMP-output-cmp-tbinregR #uses runTest.cmake - H5DUMP-tordergr1 #uses runTest.cmake - H5DUMP-tordergr2 #uses runTest.cmake - H5DUMP-tordergr3 #uses runTest.cmake - H5DUMP-tordergr4 #uses runTest.cmake - H5DUMP-tordergr5 #uses runTest.cmake - H5DUMP-torderattr1 #uses runTest.cmake - H5DUMP-torderattr2 #uses runTest.cmake - H5DUMP-torderattr3 #uses runTest.cmake - H5DUMP-torderattr4 #uses runTest.cmake - H5DUMP-tfpformat #uses runTest.cmake - H5DUMP-textlinksrc #uses runTest.cmake - H5DUMP-textlinkfar #uses runTest.cmake - H5DUMP-textlink #uses runTest.cmake H5DUMP_PACKED_BITS-clearall-objects - H5DUMP-tpackedbits #uses runTest.cmake - H5DUMP-tpackedbits2 #uses runTest.cmake - H5DUMP-tnofilename-with-packed-bits #uses runTest.cmake - H5DUMP-tpbitsSigned #uses runTest.cmake - H5DUMP-tpbitsUnsigned #uses runTest.cmake - H5DUMP-tpbitsOverlapped #uses runTest.cmake - H5DUMP-tpbitsMax #uses runTest.cmake - H5DUMP-tpbitsCompound #uses runTest.cmake - H5DUMP-tpbitsArray #uses runTest.cmake - H5DUMP-tpbitsMaxExceeded #uses runTest.cmake - H5DUMP-tpbitsOffsetExceeded #uses runTest.cmake - H5DUMP-tpbitsOffsetNegative #uses runTest.cmake - H5DUMP-tpbitsLengthPositive #uses runTest.cmake - H5DUMP-tpbitsLengthExceeded #uses runTest.cmake - H5DUMP-tpbitsIncomplete #uses runTest.cmake H5DUMP-XML-clearall-objects - H5DUMP-XML-tall.h5 #uses runTest.cmake - H5DUMP-XML-tattr.h5 #uses runTest.cmake - H5DUMP-XML-tbitfields.h5 #uses runTest.cmake - H5DUMP-XML-tcompound.h5 #uses runTest.cmake - H5DUMP-XML-tcompound2.h5 #uses runTest.cmake - H5DUMP-XML-tdatareg.h5 #uses runTest.cmake - H5DUMP-XML-tdset.h5 #uses runTest.cmake - H5DUMP-XML-tdset2.h5 #uses runTest.cmake - H5DUMP-XML-tenum.h5 #uses runTest.cmake - H5DUMP-XML-tgroup.h5 #uses runTest.cmake - H5DUMP-XML-thlink.h5 #uses runTest.cmake - H5DUMP-XML-tloop.h5 #uses runTest.cmake - H5DUMP-XML-tloop2.h5 #uses runTest.cmake - H5DUMP-XML-tmany.h5 #uses runTest.cmake - H5DUMP-XML-tnestedcomp.h5 #uses runTest.cmake - H5DUMP-XML-tcompound_complex.h5 #uses runTest.cmake - H5DUMP-XML-tobjref.h5 #uses runTest.cmake - H5DUMP-XML-topaque.h5 #uses runTest.cmake - H5DUMP-XML-tslink.h5 #uses runTest.cmake - H5DUMP-XML-tudlink.h5 #uses runTest.cmake - H5DUMP-XML-textlink.h5 #uses runTest.cmake - H5DUMP-XML-tstr.h5 #uses runTest.cmake - H5DUMP-XML-tstr2.h5 #uses runTest.cmake - H5DUMP-XML-tref.h5 #uses runTest.cmake - H5DUMP-XML-tname-amp.h5 #uses runTest.cmake - H5DUMP-XML-tname-apos.h5 #uses runTest.cmake - H5DUMP-XML-tname-gt.h5 #uses runTest.cmake - H5DUMP-XML-tname-lt.h5 #uses runTest.cmake - H5DUMP-XML-tname-quot.h5 #uses runTest.cmake - H5DUMP-XML-tname-sp.h5 #uses runTest.cmake - H5DUMP-XML-tstring.h5 #uses runTest.cmake - H5DUMP-XML-tstring-at.h5 #uses runTest.cmake - H5DUMP-XML-tref-escapes.h5 #uses runTest.cmake - H5DUMP-XML-tref-escapes-at.h5 #uses runTest.cmake - H5DUMP-XML-tnodata.h5 #uses runTest.cmake - H5DUMP-XML-tarray1.h5 #uses runTest.cmake - H5DUMP-XML-tarray2.h5 #uses runTest.cmake - H5DUMP-XML-tarray3.h5 #uses runTest.cmake - H5DUMP-XML-tarray6.h5 #uses runTest.cmake - H5DUMP-XML-tarray7.h5 #uses runTest.cmake - H5DUMP-XML-tvldtypes1.h5 #uses runTest.cmake - H5DUMP-XML-tvldtypes2.h5 #uses runTest.cmake - H5DUMP-XML-tvldtypes3.h5 #uses runTest.cmake - H5DUMP-XML-tvldtypes4.h5 #uses runTest.cmake - H5DUMP-XML-tvldtypes5.h5 #uses runTest.cmake - H5DUMP-XML-tvlstr.h5 #uses runTest.cmake - H5DUMP-XML-tsaf.h5 #uses runTest.cmake - H5DUMP-XML-tempty.h5 #uses runTest.cmake - H5DUMP-XML-tnamed_dtype_attr.h5 #uses runTest.cmake - H5DUMP-XML-tempty-dtd.h5 #uses runTest.cmake - H5DUMP-XML-tempty-dtd-2.h5 #uses runTest.cmake - H5DUMP-XML-tempty-nons.h5 #uses runTest.cmake - H5DUMP-XML-tempty-nons-2.h5 #uses runTest.cmake - H5DUMP-XML-tempty-ns.h5 #uses runTest.cmake - H5DUMP-XML-tempty-ns-2.h5 #uses runTest.cmake - H5DUMP-XML-tempty-nons-uri.h5 #uses runTest.cmake - H5DUMP-XML-tempty-dtd-uri.h5 #uses runTest.cmake - H5DUMP-XML-tall-2A.h5 #uses runTest.cmake - H5DUMP-XML-torderattr1.h5 #uses runTest.cmake - H5DUMP-XML-torderattr2.h5 #uses runTest.cmake - H5DUMP-XML-torderattr3.h5 #uses runTest.cmake - H5DUMP-XML-torderattr4.h5 #uses runTest.cmake - H5DUMP-XML-tfpformat.h5 #uses runTest.cmake ######### tools/h5import ######### H5IMPORT-clear-objects + H5IMPORT-ASCII_I32-clear-objects + H5IMPORT-ASCII_I16-clear-objects + H5IMPORT-ASCII_I8-clear-objects + H5IMPORT-ASCII_UI32-clear-objects + H5IMPORT-ASCII_UI16-clear-objects + H5IMPORT-ASCII_F32-clear-objects + H5IMPORT-ASCII_F64-clear-objects + H5IMPORT-BINARY_F64-clear-objects + H5IMPORT-BINARY_I16-clear-objects + H5IMPORT-BINARY_I8-clear-objects + H5IMPORT-BINARY_I32-clear-objects + H5IMPORT-BINARY_UI16-clear-objects + H5IMPORT-BINARY_UI32-clear-objects + H5IMPORT-STR-clear-objects + H5IMPORT-ASCII_F64_R1-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 - H5LS-help-1 #uses runTest.cmake - H5LS-help-2 #uses runTest.cmake - H5LS-help-3 #uses runTest.cmake - H5LS-tall-1 #uses runTest.cmake - H5LS-tall-2 #uses runTest.cmake - H5LS-tgroup #uses runTest.cmake - H5LS-tgroup-3 #uses runTest.cmake - H5LS-tgroup-1 #uses runTest.cmake - H5LS-tgroup-2 #uses runTest.cmake - H5LS-tgrp_comments #uses runTest.cmake - H5LS-tdset-1 #uses runTest.cmake - H5LS-tslink-1 #uses runTest.cmake - H5LS-tsoftlinks-1 #uses runTest.cmake - H5LS-tsoftlinks-2 #uses runTest.cmake - H5LS-tsoftlinks-3 #uses runTest.cmake - H5LS-tsoftlinks-4 #uses runTest.cmake - H5LS-tsoftlinks-5 #uses runTest.cmake - H5LS-textlink-1 #uses runTest.cmake - H5LS-textlinksrc-1 #uses runTest.cmake - H5LS-textlinksrc-2 #uses runTest.cmake - H5LS-textlinksrc-3 #uses runTest.cmake - H5LS-textlinksrc-4 #uses runTest.cmake - H5LS-textlinksrc-5 #uses runTest.cmake - H5LS-textlinksrc-6 #uses runTest.cmake - H5LS-textlinksrc-7 #uses runTest.cmake - H5LS-tudlink-1 #uses runTest.cmake - H5LS-textlinksrc-1-old #uses runTest.cmake - H5LS-textlinksrc-2-old #uses runTest.cmake - H5LS-textlinksrc-3-old #uses runTest.cmake - H5LS-textlinksrc-6-old #uses runTest.cmake - H5LS-textlinksrc-7-old #uses runTest.cmake - H5LS-textlinksrc-nodangle-1 #uses runTest.cmake - H5LS-textlinksrc-nodangle-2 #uses runTest.cmake - H5LS-tsoftlinks-nodangle-1 #uses runTest.cmake - H5LS-thlinks-nodangle-1 #uses runTest.cmake - H5LS-thlink-1 #uses runTest.cmake - H5LS-tcomp-1 #uses runTest.cmake - H5LS-tnestcomp-1 #uses runTest.cmake - H5LS-tnestcomp-2 #uses runTest.cmake - H5LS-tnestcomp-3 #uses runTest.cmake - H5LS-tnestcomp-4 #uses runTest.cmake - H5LS-tloop-1 #uses runTest.cmake - H5LS-tstr-1 #uses runTest.cmake - H5LS-tsaf #uses runTest.cmake - H5LS-tvldtypes1 #uses runTest.cmake - H5LS-tarray1 #uses runTest.cmake - H5LS-tempty #uses runTest.cmake - H5LS-tattr2 #uses runTest.cmake - H5LS-nosuchfile #uses runTest.cmake - H5LS-tvldtypes2le #uses runTest.cmake - H5LS-tdataregle #uses runTest.cmake ######### tools/h5repack ######### H5REPACK-clearall-objects H5REPACK-gzip_verbose_filters #uses runTest.cmake @@ -504,20 +161,6 @@ SET (CTEST_CUSTOM_MEMCHECK_IGNORE H5REPACK_VERIFY_LAYOUT_ALL-layout_short_switches #uses grepTest.cmake ######### tools/h5stat ######### H5STAT-clearall-objects - H5STAT-h5stat_help1 #uses runTest.cmake - H5STAT-h5stat_help2 #uses runTest.cmake - H5STAT-h5stat_filters #uses runTest.cmake - H5STAT-h5stat_filters-file #uses runTest.cmake - H5STAT-h5stat_filters-F #uses runTest.cmake - H5STAT-h5stat_filters-d #uses runTest.cmake - H5STAT-h5stat_filters-g #uses runTest.cmake - H5STAT-h5stat_filters-dT #uses runTest.cmake - H5STAT-h5stat_filters-UD #uses runTest.cmake - H5STAT-h5stat_filters-UT #uses runTest.cmake - H5STAT-h5stat_tsohm #uses runTest.cmake - H5STAT-h5stat_newgrat #uses runTest.cmake - H5STAT-h5stat_newgrat-UG #uses runTest.cmake - H5STAT-h5stat_newgrat-UA #uses runTest.cmake ######### tools/misc ######### h5repart_20K-clear-objects h5repart_5K-clear-objects 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}") diff --git a/tools/h5import/CMakeLists.txt b/tools/h5import/CMakeLists.txt index 8a2ec82..3ac114e 100644 --- a/tools/h5import/CMakeLists.txt +++ b/tools/h5import/CMakeLists.txt @@ -29,12 +29,149 @@ IF (BUILD_TESTING) ADD_EXECUTABLE (h5importtest ${HDF5_TOOLS_H5IMPORT_SOURCE_DIR}/h5importtest.c) TARGET_NAMING (h5importtest ${LIB_TYPE}) TARGET_LINK_LIBRARIES (h5importtest ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET}) + + SET (HDF5_REFERENCE_CONF_FILES + binfp32.conf + binfp64.conf + binin8.conf + binin16.conf + binin32.conf + binuin16.conf + binuin32.conf + textfp32.conf + textfp64.conf + textin8.conf + textin16.conf + textin32.conf + textuin16.conf + textuin32.conf + textpfe.conf + textstr.conf + ) + SET (HDF5_REFERENCE_TXT_FILES + fp1.txt + fp2.txt + in1.txt + in16.txt + in32.txt + in64.txt + str.txt + ) + SET (HDF5_REFERENCE_TEST_FILES + test1.h5 + test2.h5 + test3.h5 + test4.h5 + test5.h5 + test6.h5 + test7.h5 + test8.h5 + test9.h5 + test10.h5 + test11.h5 + test12.h5 + test13.h5 + test14.h5 + test15.h5 + ) + + FILE (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles") + FOREACH (conf_file ${HDF5_REFERENCE_CONF_FILES}) + SET (dest "${PROJECT_BINARY_DIR}/testfiles/${conf_file}") + #MESSAGE (STATUS " Copying ${conf_file}") + ADD_CUSTOM_COMMAND ( + TARGET h5import + POST_BUILD + COMMAND ${CMAKE_COMMAND} + ARGS -E copy_if_different ${HDF5_TOOLS_H5IMPORT_SOURCE_DIR}/testfiles/${conf_file} ${dest} + ) + ENDFOREACH (conf_file ${HDF5_REFERENCE_CONF_FILES}) + + FOREACH (txt_file ${HDF5_REFERENCE_TXT_FILES}) + SET (dest "${PROJECT_BINARY_DIR}/${txt_file}") + #MESSAGE (STATUS " Copying ${txt_file}") + ADD_CUSTOM_COMMAND ( + TARGET h5import + POST_BUILD + COMMAND ${CMAKE_COMMAND} + ARGS -E copy_if_different ${HDF5_TOOLS_H5IMPORT_SOURCE_DIR}/testfiles/${txt_file} ${dest} + ) + ENDFOREACH (txt_file ${HDF5_REFERENCE_TXT_FILES}) + + FILE (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/tmp_testfiles") + FOREACH (h5_file ${HDF5_REFERENCE_TEST_FILES}) + SET (tmpdest "${PROJECT_BINARY_DIR}/tmp_testfiles/${h5_file}") + #MESSAGE (STATUS " Copying ${h5_file}") + ADD_CUSTOM_COMMAND ( + TARGET h5import + POST_BUILD + COMMAND ${CMAKE_COMMAND} + ARGS -E copy_if_different ${HDF5_TOOLS_H5IMPORT_SOURCE_DIR}/testfiles/${h5_file} ${tmpdest} + ) + SET (dest "${PROJECT_BINARY_DIR}/testfiles/${h5_file}") + #MESSAGE (STATUS " Copying ${h5_file}") + ADD_CUSTOM_COMMAND ( + TARGET h5import + POST_BUILD + COMMAND ${CMAKE_COMMAND} + ARGS -E copy_if_different ${HDF5_TOOLS_H5IMPORT_SOURCE_DIR}/testfiles/${h5_file} ${dest} + ) + ENDFOREACH (h5_file ${HDF5_REFERENCE_TEST_FILES}) ############################################################################## ############################################################################## ### T H E T E S T S M A C R O S ### ############################################################################## ############################################################################## + MACRO (ADD_H5_TEST testname importfile conffile testfile) + ADD_TEST ( + NAME H5IMPORT-${testname}-clear-objects + COMMAND ${CMAKE_COMMAND} + -E remove + ${testfile} + ${testfile}.new + ${testfile}.new.err + ${testfile}.out + ${testfile}.out.err + ) + IF (NOT "${last_test}" STREQUAL "") + SET_TESTS_PROPERTIES (H5IMPORT-${testname}-clear-objects PROPERTIES DEPENDS ${last_test}) + ENDIF (NOT "${last_test}" STREQUAL "") + ADD_TEST (NAME H5IMPORT-${testname} COMMAND $<TARGET_FILE:h5import> ${importfile} -c testfiles/${conffile} -o ${testfile}) + SET_TESTS_PROPERTIES (H5IMPORT-${testname} PROPERTIES DEPENDS H5IMPORT-${testname}-clear-objects) + SET (last_test "H5IMPORT-${testname}") + + # If using memchecker add tests without using scripts + IF (NOT HDF5_ENABLE_USING_MEMCHECKER) + ADD_TEST ( + NAME H5IMPORT-H5DUMP-${testname} + COMMAND "${CMAKE_COMMAND}" + -D "TEST_PROGRAM=$<TARGET_FILE:h5dump>" + -D "TEST_ARGS:STRING=testfiles/${testfile}" + -D "TEST_FOLDER=${PROJECT_BINARY_DIR}" + -D "TEST_OUTPUT=${testfile}.new" + -D "TEST_EXPECT=0" + -D "TEST_FILTER=(^(HDF5)[^\n]*)" + -D "TEST_SKIP_COMPARE=TRUE" + -P "${HDF5_RESOURCES_DIR}/runTest.cmake" + ) + SET_TESTS_PROPERTIES (H5IMPORT-H5DUMP-${testname} PROPERTIES DEPENDS H5IMPORT-${testname}) + ADD_TEST ( + NAME H5IMPORT-H5DUMP_CMP-${testname} + COMMAND "${CMAKE_COMMAND}" + -D "TEST_PROGRAM=$<TARGET_FILE:h5dump>" + -D "TEST_ARGS:STRING=tmp_testfiles/${testfile}" + -D "TEST_FOLDER=${PROJECT_BINARY_DIR}" + -D "TEST_OUTPUT=${testfile}.out" + -D "TEST_EXPECT=0" + -D "TEST_FILTER=(^(HDF5)[^\n]*)" + -D "TEST_REFERENCE=${testfile}.new" + -P "${HDF5_RESOURCES_DIR}/runTest.cmake" + ) + SET_TESTS_PROPERTIES (H5IMPORT-H5DUMP_CMP-${testname} PROPERTIES DEPENDS H5IMPORT-H5DUMP-${testname}) + SET (last_test "H5IMPORT-H5DUMP_CMP-${testname}") + ENDIF (NOT HDF5_ENABLE_USING_MEMCHECKER) + ENDMACRO (ADD_H5_TEST testname resultcode testfile vparam srcname dstname) ############################################################################## ############################################################################## @@ -57,9 +194,59 @@ IF (BUILD_TESTING) txtin16.txt txtin32.txt ) + SET (last_test "H5IMPORT-clear-objects") + + ADD_TEST (NAME H5IMPORT-h5importtest COMMAND $<TARGET_FILE:h5importtest>) + IF (NOT "${last_test}" STREQUAL "") + SET_TESTS_PROPERTIES (H5IMPORT-h5importtest PROPERTIES DEPENDS ${last_test}) + ENDIF (NOT "${last_test}" STREQUAL "") + SET (last_test "H5IMPORT-h5importtest") + + # ----- TESTING "ASCII I32 rank 3 - Output BE " + ADD_H5_TEST (ASCII_I32 in32.txt textin32.conf test1.h5) + + # ----- TESTING "ASCII I16 rank 3 - Output LE - CHUNKED - extended" + ADD_H5_TEST (ASCII_I16 in16.txt textin16.conf test2.h5) + + # ----- TESTING "ASCII I8 - rank 3 - Output I8 LE-Chunked+Extended+Compressed " + ADD_H5_TEST (ASCII_I8 in16.txt textin8.conf test3.h5) + + # ----- TESTING "ASCII UI32 - rank 3 - Output BE" + ADD_H5_TEST (ASCII_UI32 in1.txt textuin32.conf test4.h5) + + # ----- TESTING "ASCII UI16 - rank 2 - Output LE+Chunked+Compressed " + ADD_H5_TEST (ASCII_UI16 in1.txt textuin16.conf test5.h5) + + # ----- TESTING "ASCII F32 - rank 3 - Output LE " + ADD_H5_TEST (ASCII_F32 fp1.txt textfp32.conf test6.h5) + + # ----- TESTING "ASCII F64 - rank 3 - Output BE + CHUNKED+Extended+Compressed " + ADD_H5_TEST (ASCII_F64 fp2.txt textfp64.conf test7.h5) + + # ----- TESTING "BINARY F64 - rank 3 - Output LE+CHUNKED+Extended+Compressed " + ADD_H5_TEST (BINARY_F64 binfp64.bin binfp64.conf test8.h5) + + # ----- TESTING "BINARY I16 - rank 3 - Output order LE + CHUNKED + extended " + ADD_H5_TEST (BINARY_I16 binin16.bin binin16.conf test9.h5) + + # ----- TESTING "BINARY I8 - rank 3 - Output I16LE + Chunked+Extended+Compressed " + ADD_H5_TEST (BINARY_I8 binin8.bin binin8.conf test10.h5) + + # ----- TESTING "BINARY I32 - rank 3 - Output BE + CHUNKED " + ADD_H5_TEST (BINARY_I32 binin32.bin binin32.conf test11.h5) + + # ----- TESTING "BINARY UI16 - rank 3 - Output byte BE + CHUNKED " + ADD_H5_TEST (BINARY_UI16 binuin16.bin binuin16.conf test12.h5) + + # ----- TESTING "BINARY UI32 - rank 3 - Output LE + CHUNKED " + ADD_H5_TEST (BINARY_UI32 binuin32.bin binuin32.conf test13.h5) + + # ----- TESTING "STR" + ADD_H5_TEST (STR str.txt textstr.conf test14.h5) + + # ----- TESTING "ASCII F64 - rank 1 - INPUT-CLASS TEXTFPE " + ADD_H5_TEST (ASCII_F64_R1 in64.txt textpfe.conf test15.h5) - ADD_TEST (NAME h5importtest COMMAND $<TARGET_FILE:h5importtest>) - SET_TESTS_PROPERTIES (h5importtest PROPERTIES DEPENDS H5IMPORT-clear-objects) ENDIF (BUILD_TESTING) ############################################################################## diff --git a/tools/h5jam/CMakeLists.txt b/tools/h5jam/CMakeLists.txt index fce4e0c..475f159 100644 --- a/tools/h5jam/CMakeLists.txt +++ b/tools/h5jam/CMakeLists.txt @@ -50,19 +50,362 @@ IF (BUILD_TESTING) #ADD_TEST (NAME h5jamgentest COMMAND $<TARGET_FILE:h5jamgentest>) ENDIF (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS) - + + SET (HDF5_REFERENCE_TXT_FILES + u10.txt + u511.txt + u512.txt + u513.txt + ) + SET (HDF5_REFERENCE_TEST_FILES + tall.h5 + twithub.h5 + twithub513.h5 + ) + + FILE (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles") + FOREACH (h5_file ${HDF5_REFERENCE_TEST_FILES}) + SET (dest "${PROJECT_BINARY_DIR}/testfiles/${h5_file}") + #MESSAGE (STATUS " Copying ${h5_file}") + ADD_CUSTOM_COMMAND ( + TARGET h5jam + POST_BUILD + COMMAND ${CMAKE_COMMAND} + ARGS -E copy_if_different ${HDF5_TOOLS_H5JAM_SOURCE_DIR}/testfiles/${h5_file} ${dest} + ) + ENDFOREACH (h5_file ${HDF5_REFERENCE_TEST_FILES}) + + FOREACH (txt_file ${HDF5_REFERENCE_TXT_FILES}) + SET (dest "${PROJECT_BINARY_DIR}/testfiles/${txt_file}") + #MESSAGE (STATUS " Copying ${txt_file}") + ADD_CUSTOM_COMMAND ( + TARGET h5jam + POST_BUILD + COMMAND ${CMAKE_COMMAND} + ARGS -E copy_if_different ${HDF5_TOOLS_H5JAM_SOURCE_DIR}/testfiles/${txt_file} ${dest} + ) + ENDFOREACH (txt_file ${HDF5_REFERENCE_TXT_FILES}) + ############################################################################## ############################################################################## ### T H E T E S T S M A C R O S ### ############################################################################## ############################################################################## + MACRO (CLEANUP testname) + ADD_TEST ( + NAME H5JAM-CLEANUP-${testname}-clear-objects + COMMAND ${CMAKE_COMMAND} -E remove ${ARGN} + ) + IF (NOT "${last_test}" STREQUAL "") + SET_TESTS_PROPERTIES (H5JAM-CLEANUP-${testname}-clear-objects PROPERTIES DEPENDS ${last_test}) + ENDIF (NOT "${last_test}" STREQUAL "") + SET (last_test "H5JAM-CLEANUP-${testname}-clear-objects") + ENDMACRO(CLEANUP testname testfile) + + MACRO (CHECKFILE testname expected actual) + # If using memchecker add tests without using scripts + IF (NOT HDF5_ENABLE_USING_MEMCHECKER) + ADD_TEST ( + NAME H5JAM-CHECKFILE-${testname}-clear-objects + COMMAND ${CMAKE_COMMAND} + -E remove + ${expected}.new + ${expected}.new.err + ${actual}.out + ${actual}.out.err + ) + IF (NOT "${last_test}" STREQUAL "") + SET_TESTS_PROPERTIES (H5JAM-CHECKFILE-${testname}-clear-objects PROPERTIES DEPENDS ${last_test}) + ENDIF (NOT "${last_test}" STREQUAL "") + ADD_TEST ( + NAME H5JAM-CHECKFILE-H5DUMP-${testname} + COMMAND "${CMAKE_COMMAND}" + -D "TEST_PROGRAM=$<TARGET_FILE:h5dump>" + -D "TEST_ARGS:STRING=testfiles/${expected}" + -D "TEST_FOLDER=${PROJECT_BINARY_DIR}" + -D "TEST_OUTPUT=${expected}.new" + -D "TEST_EXPECT=0" + -D "TEST_FILTER=(^(HDF5)[^\n]*)" + -D "TEST_SKIP_COMPARE=TRUE" + -P "${HDF5_RESOURCES_DIR}/runTest.cmake" + ) + SET_TESTS_PROPERTIES (H5JAM-CHECKFILE-H5DUMP-${testname} PROPERTIES DEPENDS H5JAM-CHECKFILE-${testname}-clear-objects) + ADD_TEST ( + NAME H5JAM-CHECKFILE-H5DUMP_CMP-${testname} + COMMAND "${CMAKE_COMMAND}" + -D "TEST_PROGRAM=$<TARGET_FILE:h5dump>" + -D "TEST_ARGS:STRING=${actual}" + -D "TEST_FOLDER=${PROJECT_BINARY_DIR}" + -D "TEST_OUTPUT=${actual}.out" + -D "TEST_EXPECT=0" + -D "TEST_FILTER=(^(HDF5)[^\n]*)" + -D "TEST_REFERENCE=${expected}.new" + -P "${HDF5_RESOURCES_DIR}/runTest.cmake" + ) + SET_TESTS_PROPERTIES (H5JAM-CHECKFILE-H5DUMP_CMP-${testname} PROPERTIES DEPENDS H5JAM-CHECKFILE-H5DUMP-${testname}) + SET (last_test "H5JAM-CHECKFILE-H5DUMP_CMP-${testname}") + ENDIF (NOT HDF5_ENABLE_USING_MEMCHECKER) + ENDMACRO(CHECKFILE testname expected actual) + + MACRO (SETUP testname infile outfile) + ADD_TEST ( + NAME H5JAM-SETUP-${testname}-clear-objects + COMMAND ${CMAKE_COMMAND} -E remove ${outfile} + ) + IF (NOT "${last_test}" STREQUAL "") + SET_TESTS_PROPERTIES (H5JAM-SETUP-${testname}-clear-objects PROPERTIES DEPENDS ${last_test}) + ENDIF (NOT "${last_test}" STREQUAL "") + ADD_TEST ( + NAME H5JAM-SETUP-${testname} + COMMAND ${CMAKE_COMMAND} -E copy_if_different ${HDF5_TOOLS_H5JAM_SOURCE_DIR}/testfiles/${infile} ${PROJECT_BINARY_DIR}/${outfile} + ) + SET_TESTS_PROPERTIES (H5JAM-SETUP-${testname} PROPERTIES DEPENDS H5JAM-SETUP-${testname}-clear-objects) + SET (last_test "H5JAM-SETUP-${testname}") + ENDMACRO(SETUP testname infile outfile) + + MACRO (CHECK_UB_1 testname testfile ufile) + ADD_TEST ( + NAME H5JAM-CHECK_UB_1-${testname} + COMMAND ${CMAKE_COMMAND} -E echo "CHECK_UB_1 ${testname} ${testfile} ${ufile} ${ARGN}" + ) + IF (NOT "${last_test}" STREQUAL "") + SET_TESTS_PROPERTIES (H5JAM-CHECK_UB_1-${testname} PROPERTIES DEPENDS ${last_test}) + ENDIF (NOT "${last_test}" STREQUAL "") + SET (last_test "H5JAM-CHECK_UB_1-${testname}") + ENDMACRO(CHECK_UB_1 testname testfile ufile) + + MACRO (CHECK_NOUB testname testfile) + ADD_TEST ( + NAME H5JAM-CHECK_NOUB-${testname} + COMMAND ${CMAKE_COMMAND} -E echo "CHECK_NOUB ${testname} ${testfile} ${ARGN}" + ) + IF (NOT "${last_test}" STREQUAL "") + SET_TESTS_PROPERTIES (H5JAM-CHECK_NOUB-${testname} PROPERTIES DEPENDS ${last_test}) + ENDIF (NOT "${last_test}" STREQUAL "") + SET (last_test "H5JAM-CHECK_NOUB-${testname}") + ENDMACRO(CHECK_NOUB testname testfile) + + MACRO (UNJAMTEST testname infile ufile outfile) + ADD_TEST ( + NAME H5JAM-UNJAM-${testname}-clear-objects + COMMAND ${CMAKE_COMMAND} -E remove ${outfile} + ) + IF (NOT "${last_test}" STREQUAL "") + SET_TESTS_PROPERTIES (H5JAM-UNJAM-${testname}-clear-objects PROPERTIES DEPENDS ${last_test}) + ENDIF (NOT "${last_test}" STREQUAL "") + IF (NOT "${ufile}" STREQUAL "NONE") + ADD_TEST ( + NAME H5JAM-UNJAM_D-${testname}-clear-objects + COMMAND ${CMAKE_COMMAND} -E remove ${ufile} + ) + SET_TESTS_PROPERTIES (H5JAM-UNJAM_D-${testname}-clear-objects PROPERTIES DEPENDS H5JAM-UNJAM-${testname}-clear-objects) + ADD_TEST (NAME H5JAM-UNJAM-${testname} COMMAND $<TARGET_FILE:h5unjam> -i ${infile} -u ${ufile} -o ${outfile} ${ARGN}) + SET_TESTS_PROPERTIES (H5JAM-UNJAM-${testname} PROPERTIES DEPENDS H5JAM-UNJAM_D-${testname}-clear-objects) + SET (compare_test ${ufile}) + ELSE (NOT "${ufile}" STREQUAL "NONE") + IF (NOT "${ARGN}" STREQUAL "--delete") + ADD_TEST ( + NAME H5JAM-UNJAM_D-${testname}-clear-objects + COMMAND ${CMAKE_COMMAND} -E remove ${outfile}.ufile.txt ${outfile}.ufile.txt.err + ) + SET_TESTS_PROPERTIES (H5JAM-UNJAM_D-${testname}-clear-objects PROPERTIES DEPENDS H5JAM-UNJAM-${testname}-clear-objects) + ADD_TEST ( + NAME H5JAM-UNJAM-${testname} + COMMAND "${CMAKE_COMMAND}" + -D "TEST_PROGRAM=$<TARGET_FILE:h5unjam>" + -D "TEST_ARGS:STRING=-i;${infile};-o;${outfile}" + -D "TEST_FOLDER=${PROJECT_BINARY_DIR}" + -D "TEST_OUTPUT=${outfile}.ufile.txt" + -D "TEST_EXPECT=0" + -D "TEST_SKIP_COMPARE=TRUE" + -P "${HDF5_RESOURCES_DIR}/runTest.cmake" + ) + SET_TESTS_PROPERTIES (H5JAM-UNJAM-${testname} PROPERTIES DEPENDS H5JAM-UNJAM_D-${testname}-clear-objects) + SET (compare_test "${outfile}.ufile.txt") + ELSE (NOT "${ARGN}" STREQUAL "--delete") + ADD_TEST (NAME H5JAM-UNJAM-${testname} COMMAND $<TARGET_FILE:h5unjam> -i ${infile} -o ${outfile} ${ARGN}) + SET_TESTS_PROPERTIES (H5JAM-UNJAM-${testname} PROPERTIES DEPENDS H5JAM-UNJAM-${testname}-clear-objects) + ENDIF (NOT "${ARGN}" STREQUAL "--delete") + ENDIF (NOT "${ufile}" STREQUAL "NONE") + SET (last_test "H5JAM-UNJAM-${testname}") + IF (NOT "${compare_test}" STREQUAL "") + CHECK_UB_1 (${testname} ${infile} ${compare_test}) + ENDIF (NOT "${compare_test}" STREQUAL "") + CHECK_NOUB (${testname} ${compare_test}) + ENDMACRO(UNJAMTEST testname infile ufile outfile) + + MACRO (JAMTEST testname jamfile infile outfile) + ADD_TEST ( + NAME H5JAM-${testname}-clear-objects + COMMAND ${CMAKE_COMMAND} -E remove ${outfile} + ) + IF (NOT "${last_test}" STREQUAL "") + SET_TESTS_PROPERTIES (H5JAM-${testname}-clear-objects PROPERTIES DEPENDS ${last_test}) + ENDIF (NOT "${last_test}" STREQUAL "") + IF ("${outfile}" STREQUAL "NONE") + ADD_TEST (NAME H5JAM-${testname} COMMAND $<TARGET_FILE:h5jam> -u testfiles/${jamfile} -i ${infile} ${ARGN}) + SET (compare_test testfiles/${infile}) + ELSE ("${outfile}" STREQUAL "NONE") + ADD_TEST (NAME H5JAM-${testname} COMMAND $<TARGET_FILE:h5jam> -u testfiles/${jamfile} -i testfiles/${infile} -o ${outfile} ${ARGN}) + SET (compare_test testfiles/${outfile}) + ENDIF ("${outfile}" STREQUAL "NONE") + SET_TESTS_PROPERTIES (H5JAM-${testname} PROPERTIES DEPENDS H5JAM-${testname}-clear-objects) + SET (last_test "H5JAM-${testname}") + IF ("${ARGN}" STREQUAL "--clobber") + SET (compare_orig "NONE") + ELSE ("${ARGN}" STREQUAL "--clobber") + SET (compare_orig testfiles/${infile}) + ENDIF ("${ARGN}" STREQUAL "--clobber") + CHECK_UB_1 (${testname} ${compare_test} testfiles/${jamfile} ${compare_orig}) + ENDMACRO (JAMTEST testname jamfile infile outfile) + ############################################################################## ############################################################################## ### T H E T E S T S ### ############################################################################## ############################################################################## + JAMTEST (tall_u10 u10.txt tall.h5 ta2.h5) + CHECKFILE (tall_u10 tall.h5 ta2.h5) +# CLEANUP (tall_u10 ta2.h5) + JAMTEST (tall_u511 u511.txt tall.h5 ta3.h5) + CHECKFILE (tall_u511 tall.h5 ta3.h5) +# CLEANUP (tall_u511 ta3.h5) + JAMTEST (tall_u512 u512.txt tall.h5 ta4.h5) + CHECKFILE (tall_u512 tall.h5 ta4.h5) +# CLEANUP (tall_u512 ta4.h5) + JAMTEST (tall_u513 u513.txt tall.h5 ta5.h5) + CHECKFILE (tall_u513 tall.h5 ta5.h5) +# CLEANUP (tall_u513 ta5.h5) + + SETUP (ta_u10 tall.h5 ta.h5) + JAMTEST (ta_u10 u10.txt ta.h5 NONE) + CHECKFILE (ta_u10 tall.h5 ta.h5) + SETUP (ta_u511 tall.h5 ta.h5 NOCLEAN) + JAMTEST (ta_u511 u511.txt ta.h5 NONE) + CHECKFILE (ta_u511 tall.h5 ta.h5) + SETUP (ta_u512 tall.h5 ta.h5 NOCLEAN) + JAMTEST (ta_u512 u512.txt ta.h5 NONE) + CHECKFILE (ta_u512 tall.h5 ta.h5) + SETUP (ta_u513 tall.h5 ta.h5 NOCLEAN) + JAMTEST (ta_u513 u513.txt ta.h5 NONE) + CHECKFILE (ta_u513 tall.h5 ta.h5) +# CLEANUP (ta ta.h5) + + JAMTEST (twithub_u10 u10.txt twithub.h5 tax2.h5) + CHECKFILE (twithub_u10 tall.h5 tax2.h5) +# CLEANUP (twithub_u10 tax2.h5) + JAMTEST (twithub_u511 u511.txt twithub.h5 tax3.h5) + CHECKFILE (twithub_u511 tall.h5 tax3.h5) +# CLEANUP (twithub_u511 tax3.h5) + JAMTEST (twithub_u512 u512.txt twithub.h5 tax4.h5) + CHECKFILE (twithub_u512 tall.h5 tax4.h5) +# CLEANUP (twithub_u512 tax4.h5) + JAMTEST (twithub_u513 u513.txt twithub.h5 tax5.h5) + CHECKFILE (twithub_u513 tall.h5 tax5.h5) +# CLEANUP (twithub_u513 tax5.h5) + + JAMTEST (twithub513_u10 u10.txt twithub513.h5 tax6.h5) + CHECKFILE (twithub513_u10 tall.h5 tax6.h5) +# CLEANUP (twithub513_u10 tax6.h5) + JAMTEST (twithub513_u511 u511.txt twithub513.h5 tax7.h5) + CHECKFILE (twithub513_u511 tall.h5 tax7.h5) +# CLEANUP (twithub513_u511 tax7.h5) + JAMTEST (twithub513_u512 u512.txt twithub513.h5 tax8.h5) + CHECKFILE (twithub513_u512 tall.h5 tax8.h5) +# CLEANUP (twithub513_u512 tax8.h5) + JAMTEST (twithub513_u513 u513.txt twithub513.h5 tax9.h5) + CHECKFILE (twithub513_u513 tall.h5 tax9.h5) +# CLEANUP (twithub513_u513 tax9.h5) + + JAMTEST (twithub_u10_c u10.txt twithub.h5 taz2.h5 --clobber) + CHECKFILE (twithub_u10_c tall.h5 taz2.h5) +# CLEANUP (twithub_u10_c taz2.h5) + JAMTEST (twithub_u511_c u511.txt twithub.h5 taz3.h5 --clobber) + CHECKFILE (twithub_u511_c tall.h5 taz3.h5) +# CLEANUP (twithub_u511_c taz3.h5) + JAMTEST (twithub_u512_c u512.txt twithub.h5 taz4.h5 --clobber) + CHECKFILE (twithub_u512_c tall.h5 taz4.h5) +# CLEANUP (twithub_u512_c taz4.h5) + JAMTEST (twithub_u513_c u513.txt twithub.h5 taz5.h5 --clobber) + CHECKFILE (twithub_u513_c tall.h5 taz5.h5) +# CLEANUP (twithub_u513_c taz5.h5) + + JAMTEST (twithub513_u10_c u10.txt twithub513.h5 taz6.h5 --clobber) + CHECKFILE (twithub513_u10_c tall.h5 taz6.h5) +# CLEANUP (twithub513_u10_c taz6.h5) + JAMTEST (twithub513_u511_c u511.txt twithub513.h5 taz7.h5 --clobber) + CHECKFILE (twithub513_u511_c tall.h5 taz7.h5) +# CLEANUP (twithub513_u511_c taz7.h5) + JAMTEST (twithub513_u512_c u512.txt twithub513.h5 taz8.h5 --clobber) + CHECKFILE (twithub513_u512_c tall.h5 taz8.h5) +# CLEANUP (twithub513_u512_c taz8.h5) + JAMTEST (twithub513_u513_c u513.txt twithub513.h5 taz9.h5 --clobber) + CHECKFILE (twithub513_u513_c tall.h5 taz9.h5) +# CLEANUP (twithub513_u513_c taz9.h5) + + SETUP (N_twithub_u10_c twithub.h5 tay2.h5) + JAMTEST (N_twithub_u10_c u10.txt tay2.h5 NONE --clobber) + CHECKFILE (N_twithub_u10_c tall.h5 tay2.h5) +# CLEANUP (N_twithub_u10_c tay2.h5) + SETUP (N_twithub_u511_c twithub.h5 tay3.h5) + JAMTEST (N_twithub_u511_c u511.txt tay3.h5 NONE --clobber) + CHECKFILE (N_twithub_u511_c tall.h5 tay3.h5) +# CLEANUP (N_twithub_u511_c tay3.h5) + SETUP (N_twithub_u512_c twithub.h5 tay4.h5) + JAMTEST (N_twithub_u512_c u512.txt tay4.h5 NONE --clobber) + CHECKFILE (N_twithub_u512_c tall.h5 tay4.h5) +# CLEANUP (N_twithub_u512_c tay4.h5) + SETUP (N_twithub_u513_c twithub.h5 tay5.h5) + JAMTEST (N_twithub_u513_c u513.txt tay5.h5 NONE --clobber) + CHECKFILE (N_twithub_u513_c tall.h5 tay5.h5) +# CLEANUP (N_twithub_u513_c tay5.h5) + + SETUP (N_twithub513_u10_c twithub513.h5 tay6.h5) + JAMTEST (N_twithub513_u10_c u10.txt tay6.h5 NONE --clobber) + CHECKFILE (N_twithub513_u10_c tall.h5 tay6.h5) +# CLEANUP (N_twithub513_u10_c tay6.h5) + SETUP (N_twithub513_u511_c twithub513.h5 tay7.h5) + JAMTEST (N_twithub513_u511_c u511.txt tay7.h5 NONE --clobber) + CHECKFILE (N_twithub513_u511_c tall.h5 tay7.h5) +# CLEANUP (N_twithub513_u511_c tay7.h5) + SETUP (N_twithub513_u512_c twithub513.h5 tay8.h5) + JAMTEST (N_twithub513_u512_c u512.txt tay8.h5 NONE --clobber) + CHECKFILE (N_twithub513_u512_c tall.h5 tay8.h5) +# CLEANUP (N_twithub513_u512_c tay8.h5) + SETUP (N_twithub513_u513_c twithub513.h5 tay9.h5) + JAMTEST (N_twithub513_u513_c u513.txt tay9.h5 NONE --clobber) + CHECKFILE (N_twithub513_u513_c tall.h5 tay9.h5) +# CLEANUP (N_twithub513_u513_c tay9.h5) + + SETUP (twithub_tall twithub.h5 tai1.h5) + UNJAMTEST (twithub_tall tai1.h5 o10.txt taa1.h5) + CHECKFILE (twithub_tall tall.h5 taa1.h5) +# CLEANUP (twithub_tall taa1.h5 tai1.h5 o10.txt) + SETUP (twithub513_tall twithub513.h5 tai2.h5) + UNJAMTEST (twithub513_tall tai2.h5 o512.txt taa2.h5) + CHECKFILE (twithub513_tall tall.h5 taa2.h5) +# CLEANUP (twithub513_tall taa2.h5 tai2.h5 o512.txt) + + SETUP (N_twithub_tall twithub.h5 tai3.h5) + UNJAMTEST (N_twithub_tall tai3.h5 NONE taa3.h5) + CHECKFILE (N_twithub_tall tall.h5 taa3.h5) +# CLEANUP (N_twithub_tall taa3.h5 tai3.h5) + SETUP (N_twithub513_tall twithub513.h5 tai4.h5) + UNJAMTEST (N_twithub513_tall tai4.h5 NONE taa4.h5) + CHECKFILE (N_twithub513_tall tall.h5 taa4.h5) +# CLEANUP (N_twithub513_tall taa4.h5 tai4.h5) + + SETUP (D_twithub_tall twithub.h5 taj2.h5) + UNJAMTEST (D_twithub_tall taj2.h5 NONE tac2.h5 --delete) + CHECKFILE (D_twithub_tall tall.h5 tac2.h5) +# CLEANUP (D_twithub_tall tac2.h5 taj2.h5) + SETUP (D_twithub513_tall twithub513.h5 taj3.h5) + UNJAMTEST (D_twithub513_tall taj3.h5 NONE tac3.h5 --delete) + CHECKFILE (D_twithub513_tall tall.h5 tac3.h5) +# CLEANUP (D_twithub513_tall tac3.h5 taj3.h5) + ENDIF (BUILD_TESTING) ############################################################################## |