diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-12-03 22:27:51 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-12-03 22:27:51 (GMT) |
commit | 1914aff4f750c929f5eacacd267bb27b0b4e54f8 (patch) | |
tree | dcbae3d93e47535899f352f3e61410ce2ad4e0fb /fortran | |
parent | 5606cd6f9b7a630c902d5b76715ef6d741413c47 (diff) | |
download | hdf5-1914aff4f750c929f5eacacd267bb27b0b4e54f8.zip hdf5-1914aff4f750c929f5eacacd267bb27b0b4e54f8.tar.gz hdf5-1914aff4f750c929f5eacacd267bb27b0b4e54f8.tar.bz2 |
[svn-r19871] Add tests for examples.
Bring r19870 from trunk
Tested: local linux
Diffstat (limited to 'fortran')
-rw-r--r-- | fortran/examples/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fortran/examples/CMakeLists.txt b/fortran/examples/CMakeLists.txt index 6fe6cc7..0b36d03 100644 --- a/fortran/examples/CMakeLists.txt +++ b/fortran/examples/CMakeLists.txt @@ -50,6 +50,11 @@ FOREACH (example ${examples}) ${HDF5_LIB_TARGET} ) SET_TARGET_PROPERTIES (f90_ex_${example} PROPERTIES LINKER_LANGUAGE Fortran) + + IF (BUILD_TESTING) + ADD_TEST (NAME f90_ex_${example} COMMAND $<TARGET_FILE:f90_ex_${example}>) + ENDIF (BUILD_TESTING) + ENDFOREACH (example ${examples}) IF (H5_HAVE_PARALLEL) @@ -67,4 +72,9 @@ IF (H5_HAVE_PARALLEL) ${HDF5_LIB_TARGET} ) SET_TARGET_PROPERTIES (f90_ex_ph5example PROPERTIES LINKER_LANGUAGE Fortran) + + IF (BUILD_TESTING) + ADD_TEST (NAME f90_ex_ph5example COMMAND $<TARGET_FILE:f90_ex_ph5example>) + ENDIF (BUILD_TESTING) + ENDIF (H5_HAVE_PARALLEL) |