summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2005-02-05 12:06:19 +0000
committerMike Hommey <mh@glandium.org>2005-02-05 12:06:19 +0000
commita7457388701e6ccba9091ba3ec09505dc903b758 (patch)
tree80a7d0fba3968fee73cc71a62ffe1af039396f29 /test
parentf51dd67f3a3f472af0620391eb588eeca4533689 (diff)
downloadlibxml2-a7457388701e6ccba9091ba3ec09505dc903b758.tar.gz
Load /tmp/tmp.5kkLmZ/libxml2-2.6.17 intoupstream/2.6.17
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'test')
-rw-r--r--test/ns64
-rw-r--r--test/relaxng/.memdump16
-rw-r--r--test/relaxng/choice0.rng25
-rw-r--r--test/relaxng/choice0_0.xml2
-rw-r--r--test/relaxng/choice0_1.xml2
-rw-r--r--test/relaxng/choice0_2.xml3
-rw-r--r--test/relaxng/choice0_3.xml3
-rw-r--r--test/relaxng/choice0_4.xml2
-rw-r--r--test/relaxng/choice0_5.xml3
-rw-r--r--test/relaxng/choice0_6.xml3
-rw-r--r--test/relaxng/choice0_7.xml3
-rw-r--r--test/relaxng/choice0_8.xml3
12 files changed, 55 insertions, 14 deletions
diff --git a/test/ns6 b/test/ns6
new file mode 100644
index 0000000..1f2a8b3
--- /dev/null
+++ b/test/ns6
@@ -0,0 +1,4 @@
+<root>
+ <foo xmlns="http://abc" />
+ <bar />
+</root>
diff --git a/test/relaxng/.memdump b/test/relaxng/.memdump
index 0f97d97..9849352 100644
--- a/test/relaxng/.memdump
+++ b/test/relaxng/.memdump
@@ -1,16 +1,4 @@
- 02:06:22 PM
+ 01:31:31 PM
- MEMORY ALLOCATED : 2304, MAX was 94954
+ MEMORY ALLOCATED : 0, MAX was 36632
BLOCK NUMBER SIZE TYPE
-0 3260 192 malloc() in none(0)
-1 3254 192 malloc() in none(0)
-2 3253 192 malloc() in none(0)
-3 3245 192 malloc() in none(0)
-4 3223 192 malloc() in none(0)
-5 3214 192 malloc() in none(0)
-6 3210 192 malloc() in none(0)
-7 3206 192 malloc() in none(0)
-8 3198 192 malloc() in none(0)
-9 3194 192 malloc() in none(0)
-10 3172 192 malloc() in none(0)
-11 3132 192 malloc() in none(0)
diff --git a/test/relaxng/choice0.rng b/test/relaxng/choice0.rng
new file mode 100644
index 0000000..99526e1
--- /dev/null
+++ b/test/relaxng/choice0.rng
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<element xmlns="http://relaxng.org/ns/structure/1.0" name="device">
+ <choice>
+ <group>
+ <attribute name="link">
+ <value>ethernet</value>
+ </attribute>
+ <optional>
+ <element name="ethernet-element">
+ <text/>
+ </element>
+ </optional>
+ </group>
+ <group>
+ <attribute name="link">
+ <value>serial</value>
+ </attribute>
+ <optional>
+ <element name="serial-element">
+ <text/>
+ </element>
+ </optional>
+ </group>
+ </choice>
+</element>
diff --git a/test/relaxng/choice0_0.xml b/test/relaxng/choice0_0.xml
new file mode 100644
index 0000000..113ffa8
--- /dev/null
+++ b/test/relaxng/choice0_0.xml
@@ -0,0 +1,2 @@
+<device link="ethernet">
+</device>
diff --git a/test/relaxng/choice0_1.xml b/test/relaxng/choice0_1.xml
new file mode 100644
index 0000000..f0c441d
--- /dev/null
+++ b/test/relaxng/choice0_1.xml
@@ -0,0 +1,2 @@
+<device link="serial">
+</device>
diff --git a/test/relaxng/choice0_2.xml b/test/relaxng/choice0_2.xml
new file mode 100644
index 0000000..5f67e0b
--- /dev/null
+++ b/test/relaxng/choice0_2.xml
@@ -0,0 +1,3 @@
+<device link="ethernet">
+ <ethernet-element/>
+</device>
diff --git a/test/relaxng/choice0_3.xml b/test/relaxng/choice0_3.xml
new file mode 100644
index 0000000..79ac4a6
--- /dev/null
+++ b/test/relaxng/choice0_3.xml
@@ -0,0 +1,3 @@
+<device link="serial">
+ <serial-element/>
+</device>
diff --git a/test/relaxng/choice0_4.xml b/test/relaxng/choice0_4.xml
new file mode 100644
index 0000000..1de1abc
--- /dev/null
+++ b/test/relaxng/choice0_4.xml
@@ -0,0 +1,2 @@
+<device link="unknown">
+</device>
diff --git a/test/relaxng/choice0_5.xml b/test/relaxng/choice0_5.xml
new file mode 100644
index 0000000..2ac50f7
--- /dev/null
+++ b/test/relaxng/choice0_5.xml
@@ -0,0 +1,3 @@
+<device link="ethernet">
+ <serial-element/>
+</device>
diff --git a/test/relaxng/choice0_6.xml b/test/relaxng/choice0_6.xml
new file mode 100644
index 0000000..1e4d1d2
--- /dev/null
+++ b/test/relaxng/choice0_6.xml
@@ -0,0 +1,3 @@
+<device link="serial">
+ <ethernet-element/>
+</device>
diff --git a/test/relaxng/choice0_7.xml b/test/relaxng/choice0_7.xml
new file mode 100644
index 0000000..f28f89f
--- /dev/null
+++ b/test/relaxng/choice0_7.xml
@@ -0,0 +1,3 @@
+<device link="ethernet">
+ <unknown-element/>
+</device>
diff --git a/test/relaxng/choice0_8.xml b/test/relaxng/choice0_8.xml
new file mode 100644
index 0000000..f810229
--- /dev/null
+++ b/test/relaxng/choice0_8.xml
@@ -0,0 +1,3 @@
+<device link="unknown">
+ <unknown-element/>
+</device>