summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/testh5dump.sh.in
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-05-06 20:08:11 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-05-06 20:08:11 (GMT)
commiteb9ba954a5ed7200cc3d3c165c1ce630576c2a75 (patch)
tree541e05b8947a7415e06d32c29d643c8952f0fb06 /tools/h5dump/testh5dump.sh.in
parent41bf2001b12eb45be944d44dd99b56a5a15bfb92 (diff)
downloadhdf5-eb9ba954a5ed7200cc3d3c165c1ce630576c2a75.zip
hdf5-eb9ba954a5ed7200cc3d3c165c1ce630576c2a75.tar.gz
hdf5-eb9ba954a5ed7200cc3d3c165c1ce630576c2a75.tar.bz2
[svn-r14948] Add a test for the floating point user defined printf format
Usage is -m T, --format=T Where T - is a string containing the floating point format, e.g '%.3f' The test consists of writing a number with 7 fractional digits (default precision display of %f is 6 digits) and have the 7 digits displayed with -m %.7f fpformat.h5 Tested: windows, linux, solaris Note: the output file was generated in linux, it may be possible that platforms other than the ones tested have a different representation of the number
Diffstat (limited to 'tools/h5dump/testh5dump.sh.in')
-rw-r--r--tools/h5dump/testh5dump.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/h5dump/testh5dump.sh.in b/tools/h5dump/testh5dump.sh.in
index b7b8429..df5c40d 100644
--- a/tools/h5dump/testh5dump.sh.in
+++ b/tools/h5dump/testh5dump.sh.in
@@ -496,7 +496,8 @@ TOOLTEST torderattr2.ddl -H --sort_by=name --sort_order=descending torderattr.h5
TOOLTEST torderattr3.ddl -H --sort_by=creation_order --sort_order=ascending torderattr.h5
TOOLTEST torderattr4.ddl -H --sort_by=creation_order --sort_order=descending torderattr.h5
-
+# tests for floating point user defined printf format
+TOOLTEST tfpformat.ddl -m %.7f tfpformat.h5
if test $nerrors -eq 0 ; then
echo "All $DUMPER tests passed."