summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-11-16 18:22:36 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-11-16 18:22:36 (GMT)
commit7349aa2b68ef7dd1d9eaaf1e03795ae338877bc6 (patch)
treea4efd914872a4f22780d39d9e5ef682ade772f20 /tools
parent186d01285a70848570482c853d00c151323981fa (diff)
downloadhdf5-7349aa2b68ef7dd1d9eaaf1e03795ae338877bc6.zip
hdf5-7349aa2b68ef7dd1d9eaaf1e03795ae338877bc6.tar.gz
hdf5-7349aa2b68ef7dd1d9eaaf1e03795ae338877bc6.tar.bz2
[svn-r19792] Revised the valgrind ignore list, added simple execute command tests for when doing a valgrind test of tools that only use a cmake script for testing.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5diff/CMakeLists.txt6
-rw-r--r--tools/h5dump/CMakeLists.txt19
-rw-r--r--tools/h5ls/CMakeLists.txt7
-rw-r--r--tools/h5stat/CMakeLists.txt6
4 files changed, 38 insertions, 0 deletions
diff --git a/tools/h5diff/CMakeLists.txt b/tools/h5diff/CMakeLists.txt
index b86a804..4ad17de 100644
--- a/tools/h5diff/CMakeLists.txt
+++ b/tools/h5diff/CMakeLists.txt
@@ -608,6 +608,12 @@ IF (BUILD_TESTING)
h5diff_90.out.err
)
+ # If using memchecker add tests without using scripts
+ IF (HDF5_ENABLE_USING_MEMCHECKER)
+ ADD_TEST (NAME H5DIFF-help COMMAND h5diff -h)
+ ADD_TEST (NAME H5DIFF-normal-mode COMMAND h5diff ${FILE1} ${FILE2})
+ ENDIF (HDF5_ENABLE_USING_MEMCHECKER)
+
# ############################################################################
# # Common usage
# ############################################################################
diff --git a/tools/h5dump/CMakeLists.txt b/tools/h5dump/CMakeLists.txt
index 5458b9d..f89011c 100644
--- a/tools/h5dump/CMakeLists.txt
+++ b/tools/h5dump/CMakeLists.txt
@@ -692,6 +692,15 @@ IF (BUILD_TESTING)
tvms.out.err
)
+ # If using memchecker add tests without using scripts
+ IF (HDF5_ENABLE_USING_MEMCHECKER)
+ ADD_TEST (NAME H5DUMP-tgroup COMMAND h5dump tgroup.h5)
+ ADD_TEST (NAME H5DUMP-tdset COMMAND h5dump tdset.h5)
+ ADD_TEST (NAME H5DUMP-tattr COMMAND h5dump tattr.h5)
+ ADD_TEST (NAME H5DUMP-tslink COMMAND h5dump tslink.h5)
+ ADD_TEST (NAME H5DUMP-thlink COMMAND h5dump thlink.h5)
+ ENDIF (HDF5_ENABLE_USING_MEMCHECKER)
+
# test for displaying groups
ADD_H5_TEST (tgroup-1 0 tgroup.h5)
# test for displaying the selected groups
@@ -1141,6 +1150,16 @@ IF (BUILD_TESTING)
)
########## test XML
+
+ # If using memchecker add tests without using scripts
+ IF (HDF5_ENABLE_USING_MEMCHECKER)
+ ADD_TEST (NAME H5DUMP-XML-tgroup COMMAND h5dump --xml tgroup.h5)
+ ADD_TEST (NAME H5DUMP-XML-tdset COMMAND h5dump --xml tdset.h5)
+ ADD_TEST (NAME H5DUMP-XML-tattr COMMAND h5dump --xml tattr.h5)
+ ADD_TEST (NAME H5DUMP-XML-tslink COMMAND h5dump --xml tslink.h5)
+ ADD_TEST (NAME H5DUMP-XML-thlink COMMAND h5dump --xml thlink.h5)
+ ENDIF (HDF5_ENABLE_USING_MEMCHECKER)
+
ADD_XML_H5_TEST (tall.h5 0 tall.h5)
ADD_XML_H5_TEST (tattr.h5 0 tattr.h5)
ADD_XML_H5_TEST (tbitfields.h5 0 tbitfields.h5)
diff --git a/tools/h5ls/CMakeLists.txt b/tools/h5ls/CMakeLists.txt
index 149e69f..0e38fc2 100644
--- a/tools/h5ls/CMakeLists.txt
+++ b/tools/h5ls/CMakeLists.txt
@@ -265,6 +265,13 @@ IF (BUILD_TESTING)
tvldtypes2be.out.err
)
+ # If using memchecker add tests without using scripts
+ IF (HDF5_ENABLE_USING_MEMCHECKER)
+ ADD_TEST (NAME H5LS-help COMMAND h5ls -w80 -h)
+ ADD_TEST (NAME H5LS-tall COMMAND h5ls -w80 tall.h5)
+ ADD_TEST (NAME H5LS-tsoftlinks COMMAND h5ls --follow-symlinks tsoftlinks.h5)
+ ENDIF (HDF5_ENABLE_USING_MEMCHECKER)
+
# test the help syntax
ADD_H5_TEST (help-1 0 -w80 -h)
ADD_H5_TEST (help-2 0 -w80 --help)
diff --git a/tools/h5stat/CMakeLists.txt b/tools/h5stat/CMakeLists.txt
index 3fa2041..e00d8ae 100644
--- a/tools/h5stat/CMakeLists.txt
+++ b/tools/h5stat/CMakeLists.txt
@@ -144,6 +144,12 @@ IF (BUILD_TESTING)
h5stat_newgrat-UA.out.err
)
+ # If using memchecker add tests without using scripts
+ IF (HDF5_ENABLE_USING_MEMCHECKER)
+ ADD_TEST (NAME H5STAT-help COMMAND h5stat -h)
+ ADD_TEST (NAME H5STAT-filters COMMAND h5stat h5stat_filters.h5)
+ ENDIF (HDF5_ENABLE_USING_MEMCHECKER)
+
# Test for help flag
ADD_H5_TEST (h5stat_help1 0 -h)
ADD_H5_TEST (h5stat_help2 0 --help)