summaryrefslogtreecommitdiffstats
path: root/tools/testfiles
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2009-02-26 20:21:50 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2009-02-26 20:21:50 (GMT)
commitf8c5384aa534a60d6e23697d30d9f56c6f0257aa (patch)
treed4d0d6c5603813f857b3c010e2c33332342c671d /tools/testfiles
parent24341c6eb4bb584583efeb4b7d1592ae7f5f0680 (diff)
downloadhdf5-f8c5384aa534a60d6e23697d30d9f56c6f0257aa.zip
hdf5-f8c5384aa534a60d6e23697d30d9f56c6f0257aa.tar.gz
hdf5-f8c5384aa534a60d6e23697d30d9f56c6f0257aa.tar.bz2
[svn-r16518] have 2 expected outputs for 2 h5ls runs depending if run on a big or little endian machine. Configure.in was modified to export a variable carrying endianess information to testh5ls.sh. This script then compares the current run with 2 expected outputs, one for a big-endian machine (linew was used to generate the output), other for little endian (jam was used to generate the output)
the way h5ls prints types, it starts searching for NATIVE types first. One solution would be h5ls not to detect these native types, using for example the same print datatype function that h5dump does, that would make the output look the same on all platforms ("32-bit little-endian integer" would be printed instead). Drawback, this "native" information would not be available. Other solution is to have not one but 2 expected outputs and make the shell script detect the endianess and compare with one output or other tested: h5committest
Diffstat (limited to 'tools/testfiles')
-rw-r--r--tools/testfiles/tdataregbe.ls14
-rw-r--r--tools/testfiles/tdataregle.ls (renamed from tools/testfiles/tdatareg.ls)0
-rw-r--r--tools/testfiles/tvldtypes2be.ls22
-rw-r--r--tools/testfiles/tvldtypes2le.ls (renamed from tools/testfiles/tvldtypes2.ls)0
4 files changed, 36 insertions, 0 deletions
diff --git a/tools/testfiles/tdataregbe.ls b/tools/testfiles/tdataregbe.ls
new file mode 100644
index 0000000..47b6994
--- /dev/null
+++ b/tools/testfiles/tdataregbe.ls
@@ -0,0 +1,14 @@
+#############################
+ output for 'h5ls -v tdatareg.h5'
+#############################
+Opened "tdatareg.h5" with sec2 driver.
+Dataset1 Dataset {4/4}
+ Location: 1:1284
+ Links: 1
+ Storage: information not available
+ Type: dataset region reference
+Dataset2 Dataset {10/10, 10/10}
+ Location: 1:744
+ Links: 1
+ Storage: 100 logical bytes, 100 allocated bytes, 100.00% utilization
+ Type: native unsigned char
diff --git a/tools/testfiles/tdatareg.ls b/tools/testfiles/tdataregle.ls
index b07b274..b07b274 100644
--- a/tools/testfiles/tdatareg.ls
+++ b/tools/testfiles/tdataregle.ls
diff --git a/tools/testfiles/tvldtypes2be.ls b/tools/testfiles/tvldtypes2be.ls
new file mode 100644
index 0000000..ee84185
--- /dev/null
+++ b/tools/testfiles/tvldtypes2be.ls
@@ -0,0 +1,22 @@
+#############################
+ output for 'h5ls -v tvldtypes1.h5'
+#############################
+Opened "tvldtypes1.h5" with sec2 driver.
+Dataset1.0 Dataset {4/4}
+ Location: 1:976
+ Links: 1
+ Storage: information not available
+ Type: variable length of
+ 32-bit little-endian integer
+Dataset2.0 Dataset {4/4}
+ Location: 1:1576
+ Links: 1
+ Storage: information not available
+ Type: variable length of
+ IEEE 32-bit little-endian float
+Dataset3.0 Dataset {SCALAR}
+ Location: 1:6272
+ Links: 1
+ Storage: information not available
+ Type: variable length of
+ 32-bit little-endian integer
diff --git a/tools/testfiles/tvldtypes2.ls b/tools/testfiles/tvldtypes2le.ls
index 62dfa61..62dfa61 100644
--- a/tools/testfiles/tvldtypes2.ls
+++ b/tools/testfiles/tvldtypes2le.ls