mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r21987] Remove unnecessary dependancies on tools library for h5 file gentests.
Tested: local linux
This commit is contained in:
parent
8405400213
commit
3d3bf48b9a
@ -27,7 +27,7 @@ IF (BUILD_TESTING)
|
||||
IF (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
ADD_EXECUTABLE (h5copygentest ${HDF5_TOOLS_H5COPY_SOURCE_DIR}/h5copygentest.c)
|
||||
TARGET_NAMING (h5copygentest ${LIB_TYPE})
|
||||
TARGET_LINK_LIBRARIES (h5copygentest ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET})
|
||||
TARGET_LINK_LIBRARIES (h5copygentest ${HDF5_LIB_TARGET})
|
||||
SET_TARGET_PROPERTIES (h5copygentest PROPERTIES FOLDER generator/tools)
|
||||
|
||||
#ADD_TEST (NAME h5copygentest COMMAND $<TARGET_FILE:h5copygentest>)
|
||||
|
@ -19,10 +19,6 @@
|
||||
#include <stdlib.h>
|
||||
#include "hdf5.h"
|
||||
#include "H5private.h"
|
||||
#include "h5tools.h"
|
||||
|
||||
/* Name of tool */
|
||||
#define PROGRAMNAME "h5copygentest"
|
||||
|
||||
/* HDF file names */
|
||||
#define HDF_FILE1 "h5copytst.h5"
|
||||
@ -365,7 +361,7 @@ static void gent_empty_group(hid_t loc_id)
|
||||
* Function: gent_nested_datasets
|
||||
*
|
||||
* Purpose: Generate a group in a location and populate it with the "standard"
|
||||
* datasets
|
||||
* datasets
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -387,7 +383,7 @@ static void gent_nested_datasets(hid_t loc_id)
|
||||
* Function: gent_nested_group
|
||||
*
|
||||
* Purpose: Generate a group in a location and populate it with another group
|
||||
* containing the "standard" datasets
|
||||
* containing the "standard" datasets
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -891,9 +887,6 @@ out:
|
||||
|
||||
int main(void)
|
||||
{
|
||||
h5tools_setprogname(PROGRAMNAME);
|
||||
h5tools_setstatus(EXIT_SUCCESS);
|
||||
|
||||
Test_Obj_Copy();
|
||||
Test_Ref_Copy();
|
||||
Test_Extlink_Copy();
|
||||
|
@ -43,7 +43,7 @@ IF (BUILD_TESTING)
|
||||
IF (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
ADD_EXECUTABLE (h5diffgentest ${HDF5_TOOLS_H5DIFF_SOURCE_DIR}/h5diffgentest.c)
|
||||
TARGET_NAMING (h5diffgentest ${LIB_TYPE})
|
||||
TARGET_LINK_LIBRARIES (h5diffgentest ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET})
|
||||
TARGET_LINK_LIBRARIES (h5diffgentest ${HDF5_LIB_TARGET})
|
||||
SET_TARGET_PROPERTIES (h5diffgentest PROPERTIES FOLDER generator/tools)
|
||||
|
||||
#ADD_TEST (NAME h5diffgentest COMMAND $<TARGET_FILE:h5diffgentest>)
|
||||
|
@ -17,12 +17,18 @@
|
||||
#include <stdlib.h>
|
||||
#include "hdf5.h"
|
||||
#include "H5private.h"
|
||||
#include "h5tools.h"
|
||||
#include "h5tools_utils.h"
|
||||
|
||||
|
||||
/* Name of tool */
|
||||
#define PROGRAMNAME "h5diffgentest"
|
||||
/*
|
||||
* The output functions need a temporary buffer to hold a piece of the
|
||||
* dataset while it's being printed. This constant sets the limit on the
|
||||
* size of that temporary buffer in bytes. For efficiency's sake, choose the
|
||||
* largest value suitable for your machine (for testing use a small value).
|
||||
*/
|
||||
/* Maximum size used in a call to malloc for a dataset
|
||||
* NOTE: this value should stay in sync with the value defined in the tools
|
||||
* library file: h5tools_utils.h
|
||||
*/
|
||||
hsize_t H5TOOLS_MALLOCSIZE = (128 * 1024 * 1024);
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Program: h5diffgentest
|
||||
|
@ -50,7 +50,7 @@ IF (BUILD_TESTING)
|
||||
IF (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
ADD_EXECUTABLE (h5jamgentest ${HDF5_TOOLS_H5JAM_SOURCE_DIR}/h5jamgentest.c)
|
||||
TARGET_NAMING (h5jamgentest ${LIB_TYPE})
|
||||
TARGET_LINK_LIBRARIES (h5jamgentest ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET})
|
||||
TARGET_LINK_LIBRARIES (h5jamgentest ${HDF5_LIB_TARGET})
|
||||
SET_TARGET_PROPERTIES (h5jamgentest PROPERTIES FOLDER generator/tools)
|
||||
|
||||
#ADD_TEST (NAME h5jamgentest COMMAND $<TARGET_FILE:h5jamgentest>)
|
||||
|
@ -30,7 +30,7 @@ IF (BUILD_TESTING)
|
||||
IF (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
ADD_EXECUTABLE (h5stat_gentest ${HDF5_TOOLS_H5STAT_SOURCE_DIR}/h5stat_gentest.c)
|
||||
TARGET_NAMING (h5stat_gentest ${LIB_TYPE})
|
||||
TARGET_LINK_LIBRARIES (h5stat_gentest ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET})
|
||||
TARGET_LINK_LIBRARIES (h5stat_gentest ${HDF5_LIB_TARGET})
|
||||
SET_TARGET_PROPERTIES (h5stat_gentest PROPERTIES FOLDER generator/tools)
|
||||
|
||||
#ADD_TEST (NAME h5stat_gentest COMMAND $<TARGET_FILE:h5stat_gentest>)
|
||||
|
Loading…
Reference in New Issue
Block a user