summaryrefslogtreecommitdiffstats
path: root/utils/tools
diff options
context:
space:
mode:
authorJordan Henderson <jhenderson@hdfgroup.org>2023-10-03 19:39:01 (GMT)
committerJordan Henderson <jhenderson@hdfgroup.org>2023-10-03 19:39:01 (GMT)
commitdb8b00865fdb76ce076d2032a0b27c5b012e9afc (patch)
tree3ffb877096fe9dec084f9d0d6a43e9a416460f35 /utils/tools
parent3f0b8817a166bac02ee6155544b950d9c4cdfbc3 (diff)
parentcb6de06dcc18b31ab3f1d53bd93f0bbfaa0a17e1 (diff)
downloadhdf5-db8b00865fdb76ce076d2032a0b27c5b012e9afc.zip
hdf5-db8b00865fdb76ce076d2032a0b27c5b012e9afc.tar.gz
hdf5-db8b00865fdb76ce076d2032a0b27c5b012e9afc.tar.bz2
Merge branch 'develop' into feature/vol_tools_tests
Diffstat (limited to 'utils/tools')
-rw-r--r--utils/tools/h5dwalk/h5dwalk.142
-rw-r--r--utils/tools/h5dwalk/h5dwalk.c2
-rw-r--r--utils/tools/test/h5dwalk/testh5dwalk.sh.in5
3 files changed, 3 insertions, 46 deletions
diff --git a/utils/tools/h5dwalk/h5dwalk.1 b/utils/tools/h5dwalk/h5dwalk.1
deleted file mode 100644
index eb0e5e8..0000000
--- a/utils/tools/h5dwalk/h5dwalk.1
+++ /dev/null
@@ -1,42 +0,0 @@
-.TH "h5dwalk" 1
-.SH NAME
-h5dwalk \- Provides a means of extending HDF5 tools by using parallelism on groups of files.
-.SH SYNOPSIS
-h5dwalk [OPTIONS] -T h5tool [H5TOOL_options...]
-.SH DESCRIPTION
-h5dwalk utilizes the mpiFileUtils library to invoke a selected HDF5 tool on a collection of files. The mpiFileUtils library provides the facilities to walk directory trees and provide a selection of files contained therein. This selection can be filtered in various ways. At present, h5dwalk filters the original file selection to include only HDF5 formatted files. The resulting collection or collections can be utilized as the file inputs to the selected h5tool.
-.SH OPTIONS
-.TP
-.B \-h
-or
-.B \-\-help
-Print a usage message and exit.
-.TP
-.B \-i
-or
-.B \-\-input filename
-Read command input from a file. Not yet implemented.
-.TP
-.B \-o
-or
-.B \-\-output filename
-Captures the hdf5 tool output into a named file.
-.TP
-.B \-l
-or
-.B \-\-log [file]
-Captures hdf5 tool output into a individual log files. If an optional file (directory) is specified, then output from all tool instances will be written in the given file directory. Without the optional filename, each tool instance output will be captured in a new log file whose name is associated with the hdf5 tool that was run and is written in the current working directory.
-.TP
-.B \-E
-or
-.B \-\-error [file]
-Show all HDF5 error reporting. Behavior is similar to --log, i.e. errors can either be logged in a single named file or in individual tool specific files. Not yet implemented.
-.TP
-.B \-T
-or
-.B \-\-tool hdf5_tool
-Specifies the hdf5 tool that should be invoked for each file in a collection of files. The collection consists of individual HDF5 files found by walking a specified directory tree which is used in place of the normal tool filename argument. The '-T' option should appear on the command line just prior to the HDF5 tool argument options.
-.TP
-.SH "SEE ALSO"
-\&\fIh5dump\fR\|(1), \fIh5diff\fR\|(1), \fIh5repart\fR\|(1), \fIh5diff\fR\|(1),
-\&\fIh5import\fR\|(1), \fIgif2h5\fR\|(1), \fIh52gif\fR\|(1), \fIh5perf\fR\|(1)
diff --git a/utils/tools/h5dwalk/h5dwalk.c b/utils/tools/h5dwalk/h5dwalk.c
index 1f440e0..b510f3e 100644
--- a/utils/tools/h5dwalk/h5dwalk.c
+++ b/utils/tools/h5dwalk/h5dwalk.c
@@ -1350,7 +1350,7 @@ main(int argc, char *argv[])
sg_mpi_rank = rank;
#if 0
- env_var = HDgetenv("HDF5_H5DWALK_PRINT_CMDLINE");
+ env_var = getenv("HDF5_H5DWALK_PRINT_CMDLINE");
if (env_var) {
int enable = atoi(env_var);
if (enable) {
diff --git a/utils/tools/test/h5dwalk/testh5dwalk.sh.in b/utils/tools/test/h5dwalk/testh5dwalk.sh.in
index 4f6dbde..a123f8d 100644
--- a/utils/tools/test/h5dwalk/testh5dwalk.sh.in
+++ b/utils/tools/test/h5dwalk/testh5dwalk.sh.in
@@ -57,11 +57,10 @@ export LD_LIBRARY_PATH=@LL_PATH@
# source dirs
SRC_TOOLS="$TOP_DIR/tools/test"
-SRC_TOOLS_TESTFILES="$SRC_TOOLS/testfiles"
# testfiles source dirs for tools
-SRC_H5LS_TESTFILES="$SRC_TOOLS_TESTFILES"
-SRC_H5DUMP_TESTFILES="$SRC_TOOLS_TESTFILES"
+SRC_H5LS_TESTFILES="$SRC_TOOLS/test/h5ls/testfiles"
+SRC_H5DUMP_TESTFILES="$SRC_TOOLS/test/h5dump/testfiles"
SRC_H5DIFF_TESTFILES="$SRC_TOOLS/h5diff/testfiles"
SRC_H5COPY_TESTFILES="$SRC_TOOLS/h5copy/testfiles"
SRC_H5REPACK_TESTFILES="$SRC_TOOLS/h5repack/testfiles"