diff options
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 5 | ||||
-rw-r--r-- | tools/h5dump/testh5dump.sh.in | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index ca21773..69adb31 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -2725,6 +2725,11 @@ set_binary_form(const char *form) bform = 0; else if (strcmp(form,"DI")==0) /* file type form */ bform = 1; + else if (strcmp(form,"LI")==0) /* convert to little endian */ + bform = 2; + else if (strcmp(form,"BI")==0) /* convert to big endian */ + bform = 3; + return bform; } diff --git a/tools/h5dump/testh5dump.sh.in b/tools/h5dump/testh5dump.sh.in index 1505b9f..81bcab8 100644 --- a/tools/h5dump/testh5dump.sh.in +++ b/tools/h5dump/testh5dump.sh.in @@ -322,9 +322,8 @@ TOOLTEST tvms.ddl tvms.h5 # test for binary output TOOLTEST tbin.ddl -d integer -b out.bin test1.h5 - -# test for binary output using a file type form -F DI TOOLTEST tbin2.ddl -d integer -b out2.bin -F DI test1.h5 +TOOLTEST tbin3.ddl -d integer -b out3.bin -F LI test1.h5 if test $nerrors -eq 0 ; then echo "All $DUMPER tests passed." |