From e387120f945dcfdf113a34d47d828796dd84ad16 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Thu, 11 Oct 2007 13:47:55 -0500 Subject: [svn-r14200] added tests for XML output of attribute iteration orders (same calls as DDL ) tested: linux --- MANIFEST | 4 + tools/h5dump/testh5dumpxml.sh.in | 9 +++ tools/testfiles/torderattr1.h5.xml | 155 +++++++++++++++++++++++++++++++++++++ tools/testfiles/torderattr2.h5.xml | 155 +++++++++++++++++++++++++++++++++++++ tools/testfiles/torderattr3.h5.xml | 155 +++++++++++++++++++++++++++++++++++++ tools/testfiles/torderattr4.h5.xml | 155 +++++++++++++++++++++++++++++++++++++ 6 files changed, 633 insertions(+) create mode 100644 tools/testfiles/torderattr1.h5.xml create mode 100644 tools/testfiles/torderattr2.h5.xml create mode 100644 tools/testfiles/torderattr3.h5.xml create mode 100644 tools/testfiles/torderattr4.h5.xml diff --git a/MANIFEST b/MANIFEST index 6772fa2..589cb52 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1317,6 +1317,10 @@ ./tools/testfiles/tempty-nons-2.h5.xml ./tools/testfiles/tempty-ns-2.h5.xml ./tools/testfiles/tall-2A.h5.xml +./tools/testfiles/torderattr4.h5.xml +./tools/testfiles/torderattr2.h5.xml +./tools/testfiles/torderattr3.h5.xml +./tools/testfiles/torderattr1.h5.xml diff --git a/tools/h5dump/testh5dumpxml.sh.in b/tools/h5dump/testh5dumpxml.sh.in index 42d0a8e..3e81a05 100755 --- a/tools/h5dump/testh5dumpxml.sh.in +++ b/tools/h5dump/testh5dumpxml.sh.in @@ -178,6 +178,15 @@ TOOLTEST tempty-dtd-uri.h5.xml --xml --use-dtd --xml-dtd="http://somewhere.net" TOOLTEST tall-2A.h5.xml --xml -A tall.h5 +# tests for attribute order +TOOLTEST torderattr1.h5.xml --xml -H --sort_by=name --sort_order=ascending torderattr.h5 +TOOLTEST torderattr2.h5.xml --xml -H --sort_by=name --sort_order=descending torderattr.h5 +TOOLTEST torderattr3.h5.xml --xml -H --sort_by=creation_order --sort_order=ascending torderattr.h5 +TOOLTEST torderattr4.h5.xml --xml -H --sort_by=creation_order --sort_order=descending torderattr.h5 + + + + if test $nerrors -eq 0 ; then echo "All $DUMPER tests passed." fi diff --git a/tools/testfiles/torderattr1.h5.xml b/tools/testfiles/torderattr1.h5.xml new file mode 100644 index 0000000..7ee2f10 --- /dev/null +++ b/tools/testfiles/torderattr1.h5.xml @@ -0,0 +1,155 @@ +############################# +Expected output for 'h5dump --xml -H --sort_by=name --sort_order=ascending torderattr.h5' +############################# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/testfiles/torderattr2.h5.xml b/tools/testfiles/torderattr2.h5.xml new file mode 100644 index 0000000..9f5d216 --- /dev/null +++ b/tools/testfiles/torderattr2.h5.xml @@ -0,0 +1,155 @@ +############################# +Expected output for 'h5dump --xml -H --sort_by=name --sort_order=descending torderattr.h5' +############################# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/testfiles/torderattr3.h5.xml b/tools/testfiles/torderattr3.h5.xml new file mode 100644 index 0000000..6659d1b --- /dev/null +++ b/tools/testfiles/torderattr3.h5.xml @@ -0,0 +1,155 @@ +############################# +Expected output for 'h5dump --xml -H --sort_by=creation_order --sort_order=ascending torderattr.h5' +############################# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/testfiles/torderattr4.h5.xml b/tools/testfiles/torderattr4.h5.xml new file mode 100644 index 0000000..82e57e0 --- /dev/null +++ b/tools/testfiles/torderattr4.h5.xml @@ -0,0 +1,155 @@ +############################# +Expected output for 'h5dump --xml -H --sort_by=creation_order --sort_order=descending torderattr.h5' +############################# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v0.12