Squashed commit of the following: commit60734e63feAuthor: Allen Byrne <50328838+byrnHDF@users.noreply.github.com> Date: Thu Jun 24 14:20:39 2021 -0500 Hdf5 1 10 Fix tools test (#796) * HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes * Merge CMake changes from develop * test testing script merge from develop * Update supported platforms * PR#3 merge from develop * Merge gcc 10 diagnostics option from develop * Merge #318 OSX changes from develop * Merge small changes from develop * Minor non-space formatting changes * #386 copyright corrections for java folder * Merges from develop #358 patches from vtk #361 fix header guard spelling * Merge updates #358 patches from vtk #361 fix header guard spelling * format fix * Fix missing underscore and make H5public.h closer to dev * Merges from develop #340 clang -Wformat-security warnings #360 Fixed uninitialized warnings header guard underscore cleanup JNI cleanup * format alignment * Add missing test ref file * Merge #380 from develop * Finish java merges from develop * Fix java issues with tests and javadoc * Correct use of attribute access plist * Remove debug code * Remove unused variable * Change file access to read only for java tests * Split clang format operations. * More javadoc comments * Remove pre-split setting * format source * Change windows TS to use older VS. * Mostly all javadoc fixes, one argument rename. * synch file * Merge of long double fix and compiler flags * HDFFV-11229 merge changes from develop * HDFFV-11229 correct test script * HDFFV-11229 update autotools test script for two ref files * HDFFV-11229 merge dev changes for long double display in tools * Committing clang-format changes * minor whitespace * remove unneeded macro * Committing clang-format changes * Add "option" command for clang options * Rework CMake add_custom to use the BYPRODUCTS argument Update pkgconfig scripts for parallel builds. Fix install COPYING file reference. Remove unused round defines. Change CMake default setting of BUILD_CPP to off. * Fortran target depends * Remove incorrect source attribute * Revert define removal * printf specifiers and VS2015 min changes * Committing clang-format changes * Add time struct * TRILAB-227 and tools debug merges from develop * Merge various changes from dev * Issue #669 remove version from pkgcfg filename * remove version from h5cc script * doxygen changes merged from develop * Committing clang-format changes * Merge CMake fortran ninja changes from dev * Enable fortran to gcc yaml * Refactor Fortran CMake config tests and CMake test args * Merge warnings files fixes from develop * Fix cmake configure path * Update missing release note info. * Update code owners * Add known problem * Use only core library for testing dynamic plugins. CMake uses H5_HAVE_DIRECT instead of DIRECT_VFD Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> commitbfb780a444Author: Allen Byrne <50328838+byrnHDF@users.noreply.github.com> Date: Wed Jun 23 14:11:46 2021 -0500 Hdf5 1 10 Release Note (#786) * HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes * Merge CMake changes from develop * test testing script merge from develop * Update supported platforms * PR#3 merge from develop * Merge gcc 10 diagnostics option from develop * Merge #318 OSX changes from develop * Merge small changes from develop * Minor non-space formatting changes * #386 copyright corrections for java folder * Merges from develop #358 patches from vtk #361 fix header guard spelling * Merge updates #358 patches from vtk #361 fix header guard spelling * format fix * Fix missing underscore and make H5public.h closer to dev * Merges from develop #340 clang -Wformat-security warnings #360 Fixed uninitialized warnings header guard underscore cleanup JNI cleanup * format alignment * Add missing test ref file * Merge #380 from develop * Finish java merges from develop * Fix java issues with tests and javadoc * Correct use of attribute access plist * Remove debug code * Remove unused variable * Change file access to read only for java tests * Split clang format operations. * More javadoc comments * Remove pre-split setting * format source * Change windows TS to use older VS. * Mostly all javadoc fixes, one argument rename. * synch file * Merge of long double fix and compiler flags * HDFFV-11229 merge changes from develop * HDFFV-11229 correct test script * HDFFV-11229 update autotools test script for two ref files * HDFFV-11229 merge dev changes for long double display in tools * Committing clang-format changes * minor whitespace * remove unneeded macro * Committing clang-format changes * Add "option" command for clang options * Rework CMake add_custom to use the BYPRODUCTS argument Update pkgconfig scripts for parallel builds. Fix install COPYING file reference. Remove unused round defines. Change CMake default setting of BUILD_CPP to off. * Fortran target depends * Remove incorrect source attribute * Revert define removal * printf specifiers and VS2015 min changes * Committing clang-format changes * Add time struct * TRILAB-227 and tools debug merges from develop * Merge various changes from dev * Issue #669 remove version from pkgcfg filename * remove version from h5cc script * doxygen changes merged from develop * Committing clang-format changes * Merge CMake fortran ninja changes from dev * Enable fortran to gcc yaml * Refactor Fortran CMake config tests and CMake test args * Merge warnings files fixes from develop * Fix cmake configure path * Update missing release note info. * Update code owners * Add known problem Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> commit9f50407368Author: Allen Byrne <50328838+byrnHDF@users.noreply.github.com> Date: Tue Jun 22 07:03:26 2021 -0500 Hdf5 1 10 Update missing release note info. (#778) * HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes * Merge CMake changes from develop * test testing script merge from develop * Update supported platforms * PR#3 merge from develop * Merge gcc 10 diagnostics option from develop * Merge #318 OSX changes from develop * Merge small changes from develop * Minor non-space formatting changes * #386 copyright corrections for java folder * Merges from develop #358 patches from vtk #361 fix header guard spelling * Merge updates #358 patches from vtk #361 fix header guard spelling * format fix * Fix missing underscore and make H5public.h closer to dev * Merges from develop #340 clang -Wformat-security warnings #360 Fixed uninitialized warnings header guard underscore cleanup JNI cleanup * format alignment * Add missing test ref file * Merge #380 from develop * Finish java merges from develop * Fix java issues with tests and javadoc * Correct use of attribute access plist * Remove debug code * Remove unused variable * Change file access to read only for java tests * Split clang format operations. * More javadoc comments * Remove pre-split setting * format source * Change windows TS to use older VS. * Mostly all javadoc fixes, one argument rename. * synch file * Merge of long double fix and compiler flags * HDFFV-11229 merge changes from develop * HDFFV-11229 correct test script * HDFFV-11229 update autotools test script for two ref files * HDFFV-11229 merge dev changes for long double display in tools * Committing clang-format changes * minor whitespace * remove unneeded macro * Committing clang-format changes * Add "option" command for clang options * Rework CMake add_custom to use the BYPRODUCTS argument Update pkgconfig scripts for parallel builds. Fix install COPYING file reference. Remove unused round defines. Change CMake default setting of BUILD_CPP to off. * Fortran target depends * Remove incorrect source attribute * Revert define removal * printf specifiers and VS2015 min changes * Committing clang-format changes * Add time struct * TRILAB-227 and tools debug merges from develop * Merge various changes from dev * Issue #669 remove version from pkgcfg filename * remove version from h5cc script * doxygen changes merged from develop * Committing clang-format changes * Merge CMake fortran ninja changes from dev * Enable fortran to gcc yaml * Refactor Fortran CMake config tests and CMake test args * Merge warnings files fixes from develop * Fix cmake configure path * Update missing release note info. * Update code owners Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> commit2e80c9cdecAuthor: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Fri Jun 18 06:42:23 2021 -0700 Brings hash table IDs feature from develop/1.12 (#768) * Brings updated tid test from develop * Adds empty H5Iint.c and H5Idbg.c files * H5I renaming to match 1.12/develop * Splits off H5I debug code to H5Idbg.c * Splits internal H5I.c functionality to H5Iint.c * Header cleanup * More renaming cleanup to match develop/1.12 * Adds "save last ID" optimization * Adds uthash.h * Adds hash table IDs from develop/1.12 * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> commit1e29bcbfe2Author: Allen Byrne <50328838+byrnHDF@users.noreply.github.com> Date: Thu Jun 17 11:21:43 2021 -0500 Hdf5 1 10 Fix cmake configure path (#762) * HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes * Merge CMake changes from develop * test testing script merge from develop * Update supported platforms * PR#3 merge from develop * Merge gcc 10 diagnostics option from develop * Merge #318 OSX changes from develop * Merge small changes from develop * Minor non-space formatting changes * #386 copyright corrections for java folder * Merges from develop #358 patches from vtk #361 fix header guard spelling * Merge updates #358 patches from vtk #361 fix header guard spelling * format fix * Fix missing underscore and make H5public.h closer to dev * Merges from develop #340 clang -Wformat-security warnings #360 Fixed uninitialized warnings header guard underscore cleanup JNI cleanup * format alignment * Add missing test ref file * Merge #380 from develop * Finish java merges from develop * Fix java issues with tests and javadoc * Correct use of attribute access plist * Remove debug code * Remove unused variable * Change file access to read only for java tests * Split clang format operations. * More javadoc comments * Remove pre-split setting * format source * Change windows TS to use older VS. * Mostly all javadoc fixes, one argument rename. * synch file * Merge of long double fix and compiler flags * HDFFV-11229 merge changes from develop * HDFFV-11229 correct test script * HDFFV-11229 update autotools test script for two ref files * HDFFV-11229 merge dev changes for long double display in tools * Committing clang-format changes * minor whitespace * remove unneeded macro * Committing clang-format changes * Add "option" command for clang options * Rework CMake add_custom to use the BYPRODUCTS argument Update pkgconfig scripts for parallel builds. Fix install COPYING file reference. Remove unused round defines. Change CMake default setting of BUILD_CPP to off. * Fortran target depends * Remove incorrect source attribute * Revert define removal * printf specifiers and VS2015 min changes * Committing clang-format changes * Add time struct * TRILAB-227 and tools debug merges from develop * Merge various changes from dev * Issue #669 remove version from pkgcfg filename * remove version from h5cc script * doxygen changes merged from develop * Committing clang-format changes * Merge CMake fortran ninja changes from dev * Enable fortran to gcc yaml * Refactor Fortran CMake config tests and CMake test args * Merge warnings files fixes from develop * Fix cmake configure path Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> commit475cdaf431Author: Allen Byrne <50328838+byrnHDF@users.noreply.github.com> Date: Wed Jun 16 15:45:58 2021 -0500 Hdf5 1 10 merge warnings changes (#756) * HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes * Merge CMake changes from develop * test testing script merge from develop * Update supported platforms * PR#3 merge from develop * Merge gcc 10 diagnostics option from develop * Merge #318 OSX changes from develop * Merge small changes from develop * Minor non-space formatting changes * #386 copyright corrections for java folder * Merges from develop #358 patches from vtk #361 fix header guard spelling * Merge updates #358 patches from vtk #361 fix header guard spelling * format fix * Fix missing underscore and make H5public.h closer to dev * Merges from develop #340 clang -Wformat-security warnings #360 Fixed uninitialized warnings header guard underscore cleanup JNI cleanup * format alignment * Add missing test ref file * Merge #380 from develop * Finish java merges from develop * Fix java issues with tests and javadoc * Correct use of attribute access plist * Remove debug code * Remove unused variable * Change file access to read only for java tests * Split clang format operations. * More javadoc comments * Remove pre-split setting * format source * Change windows TS to use older VS. * Mostly all javadoc fixes, one argument rename. * synch file * Merge of long double fix and compiler flags * HDFFV-11229 merge changes from develop * HDFFV-11229 correct test script * HDFFV-11229 update autotools test script for two ref files * HDFFV-11229 merge dev changes for long double display in tools * Committing clang-format changes * minor whitespace * remove unneeded macro * Committing clang-format changes * Add "option" command for clang options * Rework CMake add_custom to use the BYPRODUCTS argument Update pkgconfig scripts for parallel builds. Fix install COPYING file reference. Remove unused round defines. Change CMake default setting of BUILD_CPP to off. * Fortran target depends * Remove incorrect source attribute * Revert define removal * printf specifiers and VS2015 min changes * Committing clang-format changes * Add time struct * TRILAB-227 and tools debug merges from develop * Merge various changes from dev * Issue #669 remove version from pkgcfg filename * remove version from h5cc script * doxygen changes merged from develop * Committing clang-format changes * Merge CMake fortran ninja changes from dev * Enable fortran to gcc yaml * Refactor Fortran CMake config tests and CMake test args * Merge warnings files fixes from develop Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> commite25980e7f3Author: Allen Byrne <50328838+byrnHDF@users.noreply.github.com> Date: Tue Jun 8 14:37:13 2021 -0500 Hdf5 1 10 merges of CMake changes (#738) * HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes * Merge CMake changes from develop * test testing script merge from develop * Update supported platforms * PR#3 merge from develop * Merge gcc 10 diagnostics option from develop * Merge #318 OSX changes from develop * Merge small changes from develop * Minor non-space formatting changes * #386 copyright corrections for java folder * Merges from develop #358 patches from vtk #361 fix header guard spelling * Merge updates #358 patches from vtk #361 fix header guard spelling * format fix * Fix missing underscore and make H5public.h closer to dev * Merges from develop #340 clang -Wformat-security warnings #360 Fixed uninitialized warnings header guard underscore cleanup JNI cleanup * format alignment * Add missing test ref file * Merge #380 from develop * Finish java merges from develop * Fix java issues with tests and javadoc * Correct use of attribute access plist * Remove debug code * Remove unused variable * Change file access to read only for java tests * Split clang format operations. * More javadoc comments * Remove pre-split setting * format source * Change windows TS to use older VS. * Mostly all javadoc fixes, one argument rename. * synch file * Merge of long double fix and compiler flags * HDFFV-11229 merge changes from develop * HDFFV-11229 correct test script * HDFFV-11229 update autotools test script for two ref files * HDFFV-11229 merge dev changes for long double display in tools * Committing clang-format changes * minor whitespace * remove unneeded macro * Committing clang-format changes * Add "option" command for clang options * Rework CMake add_custom to use the BYPRODUCTS argument Update pkgconfig scripts for parallel builds. Fix install COPYING file reference. Remove unused round defines. Change CMake default setting of BUILD_CPP to off. * Fortran target depends * Remove incorrect source attribute * Revert define removal * printf specifiers and VS2015 min changes * Committing clang-format changes * Add time struct * TRILAB-227 and tools debug merges from develop * Merge various changes from dev * Issue #669 remove version from pkgcfg filename * remove version from h5cc script * doxygen changes merged from develop * Committing clang-format changes * Merge CMake fortran ninja changes from dev * Enable fortran to gcc yaml * Refactor Fortran CMake config tests and CMake test args Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> commit061b23ac00Author: Larry Knox <lrknox@hdfgroup.org> Date: Thu Jun 3 16:07:23 2021 -0500 Partial merge issue #642 develop branch PRs to Hdf5 1 10 (#718) * Revert addition of & to 2 parameters in DSetCreatPropList::setVirtual to maintain binary compatibility. * Fix H5Eget_auto2/H5Eauto_is_v2 to not clear error stack (#625) * Removes gratuitous (double)x.yF casts (#632) * Committing clang-format changes * Removes gratuitous (double)x.yF casts * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Cleans up a const warning left over from previous constification (#633) * Committing clang-format changes * Adds consts to a few global variables * Cleans up a const warning left over from previous constification Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Purges UFAIL from the library (#637) * Committing clang-format changes * Purges UFAIL from the library * H5HL_insert change requested in PR Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Bmr dev hdffv 11223 (#640) * Fixed HDFFV-11223 (CVE-2018-14460) Description - Added checks against buffer size to prevent segfault, in case of data corruption, for sdim->size and sdim->max. - Renamed data files in an existing test to shorten their length as agreed with other developers previously. Platforms tested: Linux/64 (jelly) * Committing clang-format changes * Updated for test files * Updated for HDFFV-11223 Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Committing clang-format changes * Restore "error:" in line 2666. * Revert "Fix H5Eget_auto2/H5Eauto_is_v2 to not clear error stack (#625)" This reverts commit426b504848. Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org> Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: bmribler <39579120+bmribler@users.noreply.github.com>
372 lines
16 KiB
CMake
372 lines
16 KiB
CMake
#
|
|
# Copyright by The HDF Group.
|
|
# All rights reserved.
|
|
#
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
# terms governing use, modification, and redistribution, is contained in
|
|
# the COPYING file, which can be found at the root of the source code
|
|
# distribution tree, or in https://www.hdfgroup.org/licenses.
|
|
# If you do not have access to either file, you may request a copy from
|
|
# help@hdfgroup.org.
|
|
#
|
|
|
|
##############################################################################
|
|
##############################################################################
|
|
### T E S T I N G ###
|
|
##############################################################################
|
|
##############################################################################
|
|
|
|
# --------------------------------------------------------------------
|
|
# Copy all the test files from source directory to test directory
|
|
# --------------------------------------------------------------------
|
|
set (LIST_HDF5_TEST_FILES
|
|
${HDF5_TOOLS_DIR}/testfiles/tall.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tarray1.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tattr2.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tattrreg.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tcompound.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tdatareg.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tdset.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tempty.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/textlink.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinktar.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tgroup.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tgrp_comments.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tgrpnullspace.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/thlink.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tloop.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tnestedcomp.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tsaf.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tslink.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tsoftlinks.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tstr.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tudfilter.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tudlink.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tvldtypes1.h5
|
|
${HDF5_TOOLS_DIR}/testfiles/tdset_idx.h5
|
|
)
|
|
|
|
set (LIST_ERR_TEST_FILES
|
|
${HDF5_TOOLS_DIR}/test/h5ls/errfiles/nosuchfile.err
|
|
${HDF5_TOOLS_DIR}/test/h5ls/errfiles/textlinksrc-nodangle-1.err
|
|
${HDF5_TOOLS_DIR}/test/h5ls/errfiles/tgroup-1.err
|
|
)
|
|
|
|
set (LIST_OTHER_TEST_FILES
|
|
${HDF5_TOOLS_DIR}/testfiles/help-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/help-2.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/help-3.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/nosuchfile.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tall-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tall-2.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tarray1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tattr2.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tattrreg_le.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tattrreg_be.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tcomp-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tdataregbe.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tdataregle.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tdset-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tempty.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlink-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-2.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-3.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-4.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-5.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-6.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-7.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-1-old.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-2-old.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-3-old.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-6-old.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-7-old.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tsoftlinks-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tsoftlinks-2.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tsoftlinks-3.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tsoftlinks-4.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tsoftlinks-5.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-nodangle-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/textlinksrc-nodangle-2.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tgrp_comments.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tsoftlinks-nodangle-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/thlinks-nodangle-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tgroup.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tgroup-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tgroup-2.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tgroup-3.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tgrpnullspace.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/thlink-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tloop-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tmultifile.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tnestcomp-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tnestcomp-2.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tnestcomp-3.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tnestcomp-4.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tsaf.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tslink-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tstr-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tudfilter.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tudlink-1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tvldtypes1.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tvldtypes2le.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tvldtypes2be.ls
|
|
${HDF5_TOOLS_DIR}/testfiles/tdset_idx.ls
|
|
)
|
|
|
|
file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles")
|
|
|
|
# copy the list of test files
|
|
foreach (listfiles ${LIST_HDF5_TEST_FILES} ${LIST_OTHER_TEST_FILES})
|
|
get_filename_component(fname "${listfiles}" NAME)
|
|
HDFTEST_COPY_FILE("${listfiles}" "${PROJECT_BINARY_DIR}/testfiles/${fname}" "h5ls_files")
|
|
endforeach ()
|
|
foreach (listfiles ${LIST_ERR_TEST_FILES})
|
|
get_filename_component(fname "${listfiles}" NAME)
|
|
HDFTEST_COPY_FILE("${listfiles}" "${PROJECT_BINARY_DIR}/testfiles/${fname}" "h5ls_files")
|
|
endforeach ()
|
|
add_custom_target(h5ls_files ALL COMMENT "Copying files needed by h5ls tests" DEPENDS ${h5ls_files_list})
|
|
|
|
##############################################################################
|
|
##############################################################################
|
|
### T H E T E S T S M A C R O S ###
|
|
##############################################################################
|
|
##############################################################################
|
|
|
|
macro (ADD_H5_TEST resultfile resultcode)
|
|
# If using memchecker add tests without using scripts
|
|
if (HDF5_ENABLE_USING_MEMCHECKER)
|
|
add_test (NAME H5LS-${resultfile} COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:h5ls${tgt_file_ext}> ${ARGN})
|
|
set_tests_properties (H5LS-${resultfile} PROPERTIES WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles")
|
|
if ("${resultcode}" STREQUAL "1")
|
|
set_tests_properties (H5LS-${resultfile} PROPERTIES WILL_FAIL "true")
|
|
endif ()
|
|
else ()
|
|
# Remove any output file left over from previous test run
|
|
add_test (
|
|
NAME H5LS-${resultfile}
|
|
COMMAND "${CMAKE_COMMAND}"
|
|
-D "TEST_EMULATOR=${CMAKE_CROSSCOMPILING_EMULATOR}"
|
|
-D "TEST_PROGRAM=$<TARGET_FILE:h5ls${tgt_file_ext}>"
|
|
-D "TEST_ARGS=${ARGN}"
|
|
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/testfiles"
|
|
-D "TEST_OUTPUT=${resultfile}.out"
|
|
-D "TEST_EXPECT=${resultcode}"
|
|
-D "TEST_REFERENCE=${resultfile}.ls"
|
|
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
|
)
|
|
endif ()
|
|
endmacro ()
|
|
|
|
macro (ADD_H5_ERR_TEST resultfile resultcode)
|
|
# If using memchecker add tests without using scripts
|
|
if (HDF5_ENABLE_USING_MEMCHECKER)
|
|
add_test (NAME H5LS-${resultfile} COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:h5ls${tgt_file_ext}> ${ARGN})
|
|
set_tests_properties (H5LS-${resultfile} PROPERTIES WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles")
|
|
if ("${resultcode}" STREQUAL "1")
|
|
set_tests_properties (H5LS-${resultfile} PROPERTIES WILL_FAIL "true")
|
|
endif ()
|
|
else ()
|
|
add_test (
|
|
NAME H5LS-${resultfile}
|
|
COMMAND "${CMAKE_COMMAND}"
|
|
-D "TEST_EMULATOR=${CMAKE_CROSSCOMPILING_EMULATOR}"
|
|
-D "TEST_PROGRAM=$<TARGET_FILE:h5ls${tgt_file_ext}>"
|
|
-D "TEST_ARGS=${ARGN}"
|
|
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/testfiles"
|
|
-D "TEST_OUTPUT=${resultfile}.out"
|
|
-D "TEST_EXPECT=${resultcode}"
|
|
-D "TEST_REFERENCE=${resultfile}.ls"
|
|
-D "TEST_ERRREF=${resultfile}.err"
|
|
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
|
)
|
|
endif ()
|
|
endmacro ()
|
|
|
|
macro (ADD_H5_UD_TEST testname resultcode resultfile)
|
|
if (NOT HDF5_ENABLE_USING_MEMCHECKER)
|
|
add_test (
|
|
NAME H5LS_UD-${testname}
|
|
COMMAND "${CMAKE_COMMAND}"
|
|
-D "TEST_EMULATOR=${CMAKE_CROSSCOMPILING_EMULATOR}"
|
|
-D "TEST_PROGRAM=$<TARGET_FILE:h5ls${tgt_file_ext}>"
|
|
-D "TEST_ARGS=${ARGN}"
|
|
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/testfiles"
|
|
-D "TEST_OUTPUT=${resultfile}.out"
|
|
-D "TEST_EXPECT=${resultcode}"
|
|
-D "TEST_REFERENCE=${resultfile}.ls"
|
|
-D "TEST_ENV_VAR=HDF5_PLUGIN_PATH"
|
|
-D "TEST_ENV_VALUE=${CMAKE_BINARY_DIR}/plugins"
|
|
-D "TEST_LIBRARY_DIRECTORY=${CMAKE_TEST_OUTPUT_DIRECTORY}"
|
|
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
|
)
|
|
endif ()
|
|
endmacro ()
|
|
|
|
##############################################################################
|
|
##############################################################################
|
|
### T H E T E S T S ###
|
|
##############################################################################
|
|
##############################################################################
|
|
|
|
# See which filters are usable (and skip tests for filters we
|
|
# don't have). Do this by searching H5pubconf.h to see which
|
|
# filters are defined.
|
|
|
|
# detect whether the encoder is present.
|
|
if (H5_HAVE_FILTER_DEFLATE)
|
|
set (USE_FILTER_DEFLATE "true")
|
|
endif ()
|
|
|
|
if (H5_HAVE_FILTER_SZIP)
|
|
set (USE_FILTER_SZIP "true")
|
|
endif ()
|
|
|
|
# test the help syntax
|
|
ADD_H5_TEST (help-1 0 -w80 -h)
|
|
ADD_H5_TEST (help-2 0 -w80 --help)
|
|
ADD_H5_TEST (help-3 0 -w80 -?)
|
|
|
|
# test simple command
|
|
ADD_H5_TEST (tall-1 0 -w80 tall.h5)
|
|
ADD_H5_TEST (tall-2 0 -w80 -r -d tall.h5)
|
|
ADD_H5_TEST (tgroup 0 -w80 tgroup.h5)
|
|
ADD_H5_TEST (tgroup-3 0 -w80 tgroup.h5/g1)
|
|
|
|
# test for displaying groups
|
|
# The following combination of arguments is expected to return an error message
|
|
# and return value 1
|
|
ADD_H5_ERR_TEST (tgroup-1 1 -w80 -r -g tgroup.h5)
|
|
ADD_H5_TEST (tgroup-2 0 -w80 -g tgroup.h5/g1)
|
|
|
|
# test for files with groups that have long comments
|
|
ADD_H5_TEST (tgrp_comments 0 -w80 -v -g tgrp_comments.h5/glongcomment)
|
|
|
|
# test for displaying simple space datasets
|
|
ADD_H5_TEST (tdset-1 0 -w80 -r -d tdset.h5)
|
|
|
|
# test for displaying soft links (dangle)
|
|
ADD_H5_TEST (tslink-1 0 -w80 -r tslink.h5)
|
|
|
|
# test for displaying more soft links with --follow-symlinks
|
|
ADD_H5_TEST (tsoftlinks-1 0 --follow-symlinks tsoftlinks.h5)
|
|
ADD_H5_TEST (tsoftlinks-2 0 --follow-symlinks -r tsoftlinks.h5)
|
|
ADD_H5_TEST (tsoftlinks-3 0 --follow-symlinks tsoftlinks.h5/group1)
|
|
ADD_H5_TEST (tsoftlinks-4 0 --follow-symlinks -r tsoftlinks.h5/group1)
|
|
ADD_H5_TEST (tsoftlinks-5 0 --follow-symlinks tsoftlinks.h5/soft_dset1)
|
|
|
|
# test for displaying external and user-defined links with --follow-symlinks
|
|
ADD_H5_TEST (textlink-1 0 -w80 -r textlink.h5)
|
|
ADD_H5_TEST (textlinksrc-1 0 -w80 --follow-symlinks -r textlinksrc.h5)
|
|
ADD_H5_TEST (textlinksrc-2 0 -w80 --follow-symlinks -rv textlinksrc.h5/ext_link5)
|
|
ADD_H5_TEST (textlinksrc-3 0 -w80 --follow-symlinks -r textlinksrc.h5/ext_link1)
|
|
ADD_H5_TEST (textlinksrc-4 0 -w80 -r textlinksrc.h5)
|
|
ADD_H5_TEST (textlinksrc-5 0 -w80 -r textlinksrc.h5/ext_link1)
|
|
ADD_H5_TEST (textlinksrc-6 0 -w80 --follow-symlinks textlinksrc.h5)
|
|
ADD_H5_TEST (textlinksrc-7 0 -w80 --follow-symlinks textlinksrc.h5/ext_link1)
|
|
ADD_H5_TEST (tudlink-1 0 -w80 -r tudlink.h5)
|
|
|
|
# test for displaying external links with -E
|
|
# the option -E will be depriciated but keep it for backward compatibility
|
|
ADD_H5_TEST (textlinksrc-1-old 0 -w80 -Er textlinksrc.h5)
|
|
ADD_H5_TEST (textlinksrc-2-old 0 -w80 -Erv textlinksrc.h5/ext_link5)
|
|
ADD_H5_TEST (textlinksrc-3-old 0 -w80 -Er textlinksrc.h5/ext_link1)
|
|
ADD_H5_TEST (textlinksrc-6-old 0 -w80 -E textlinksrc.h5)
|
|
ADD_H5_TEST (textlinksrc-7-old 0 -w80 -E textlinksrc.h5/ext_link1)
|
|
|
|
# tests for no-dangling-links
|
|
# if this option is given on dangling link, h5ls should return exit code 1
|
|
# when used alone , expect to print out help and return exit code 1
|
|
ADD_H5_ERR_TEST (textlinksrc-nodangle-1 1 -w80 --no-dangling-links textlinksrc.h5)
|
|
# external dangling link - expected exit code 1
|
|
ADD_H5_TEST (textlinksrc-nodangle-2 1 -w80 --follow-symlinks --no-dangling-links textlinksrc.h5)
|
|
# soft dangling link - expected exit code 1
|
|
ADD_H5_TEST (tsoftlinks-nodangle-1 1 -w80 --follow-symlinks --no-dangling-links tsoftlinks.h5)
|
|
# when used file with no dangling links - expected exit code 0
|
|
ADD_H5_TEST (thlinks-nodangle-1 0 -w80 --follow-symlinks --no-dangling-links thlink.h5)
|
|
|
|
# test for wildcards in filename (does not work with cmake)
|
|
# ADD_H5_TEST (tstarfile 0 -w80 t*link.h5)
|
|
# ADD_H5_TEST (tqmarkfile 0 -w80 t?link.h5)
|
|
ADD_H5_TEST (tmultifile 0 -w80 thlink.h5 tslink.h5)
|
|
|
|
# tests for hard links
|
|
ADD_H5_TEST (thlink-1 0 -w80 thlink.h5)
|
|
|
|
# tests for compound data types
|
|
ADD_H5_TEST (tcomp-1 0 -w80 -r -d tcompound.h5)
|
|
|
|
#test for the nested compound type
|
|
ADD_H5_TEST (tnestcomp-1 0 -w80 -r -d tnestedcomp.h5)
|
|
|
|
ADD_H5_TEST (tnestcomp-2 0 -w80 -r -d -S tnestedcomp.h5)
|
|
|
|
ADD_H5_TEST (tnestcomp-3 0 -w80 -r -d -l tnestedcomp.h5)
|
|
|
|
ADD_H5_TEST (tnestcomp-4 0 -w80 -r -d -l -S tnestedcomp.h5)
|
|
|
|
# test for loop detection
|
|
ADD_H5_TEST (tloop-1 0 -w80 -r -d tloop.h5)
|
|
|
|
# test for string
|
|
ADD_H5_TEST (tstr-1 0 -w80 -r -d tstr.h5)
|
|
|
|
# test test file created from lib SAF team
|
|
ADD_H5_TEST (tsaf 0 -w80 -r -d tsaf.h5)
|
|
|
|
# test for variable length data types
|
|
ADD_H5_TEST (tvldtypes1 0 -w80 -r -d tvldtypes1.h5)
|
|
|
|
# test for array data types
|
|
ADD_H5_TEST (tarray1 0 -w80 -r -d tarray1.h5)
|
|
|
|
# test for empty data
|
|
ADD_H5_TEST (tempty 0 -w80 -d tempty.h5)
|
|
|
|
# test for displaying dataset and attribute of null space
|
|
ADD_H5_TEST (tgrpnullspace 0 -w80 -v -S tgrpnullspace.h5)
|
|
|
|
# test for all dataset types written to attributes
|
|
# enable -S for avoiding printing NATIVE types
|
|
ADD_H5_TEST (tattr2 0 -w80 -v -S tattr2.h5)
|
|
|
|
# test for attribute with region references wo verbose mode
|
|
# ( HDFFV-7838, )
|
|
if (H5_WORDS_BIGENDIAN)
|
|
ADD_H5_TEST (tattrreg_be 0 -w80 -v -d tattrreg.h5)
|
|
else ()
|
|
ADD_H5_TEST (tattrreg_le 0 -w80 -v -d tattrreg.h5)
|
|
endif ()
|
|
|
|
# test for non-existing file
|
|
ADD_H5_ERR_TEST (nosuchfile 1 nosuchfile.h5)
|
|
|
|
# test for variable length data types in verbose mode
|
|
if (H5_WORDS_BIGENDIAN)
|
|
ADD_H5_TEST (tvldtypes2be 0 -v tvldtypes1.h5)
|
|
else ()
|
|
ADD_H5_TEST (tvldtypes2le 0 -v tvldtypes1.h5)
|
|
endif ()
|
|
|
|
# test for dataset region references data types in verbose mode
|
|
if (H5_WORDS_BIGENDIAN)
|
|
ADD_H5_TEST (tdataregbe 0 -v tdatareg.h5)
|
|
else ()
|
|
ADD_H5_TEST (tdataregle 0 -v tdatareg.h5)
|
|
endif ()
|
|
|
|
# test for file with datasets that use Fixed Array chunk indices
|
|
if (USE_FILTER_DEFLATE)
|
|
# data read internal filters
|
|
ADD_H5_TEST (tdset_idx 0 -w80 -d tdset_idx.h5)
|
|
endif ()
|
|
|
|
|
|
##############################################################################
|
|
### P L U G I N T E S T S
|
|
##############################################################################
|
|
if (BUILD_SHARED_LIBS)
|
|
ADD_H5_UD_TEST (h5ls_plugin_test 0 tudfilter -w80 -d tudfilter.h5)
|
|
endif ()
|