Update of /cvsroot/flexml/flexml/testbed
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv1795/testbed
Modified Files:
Makefile
Added Files:
missing-att.act missing-att.dtd missing-att.in
Log Message:
Fix/test sourceforge bug #1558023: validation failing for missing #REQUIRED attributes.
--- NEW FILE: missing-att.dtd ---
<!-- test mixed content elements with string sttributes -->
<!ELEMENT foo (#PCDATA|bar)*>
<!ELEMENT bar (#PCDATA)>
<!ATTLIST bar batt CDATA #REQUIRED>
Index: Makefile
===================================================================
RCS file: /cvsroot/flexml/flexml/testbed/Makefile,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- Makefile 12 Sep 2006 18:05:45 -0000 1.12
+++ Makefile 13 Sep 2006 16:34:33 -0000 1.13
@@ -39,14 +39,25 @@
# test definitions -- add new tests here
#####################################################
-EXES = mixed1 mixed-enumatt mixed-enumatt2 mixed-stratt mixed-stratt-def \
- multi-parser-run biparser init_header
+EXES = \
+ biparser \
+ init_header \
+ missing-att \
+ mixed-enumatt \
+ mixed-enumatt2 \
+ mixed-stratt \
+ mixed-stratt-def \
+ mixed1 \
+ multi-parser-run
+
+
INTERMEDIATES = $(EXES) $(EXES:%=%.c) $(EXES:%=%.l)
# leave this alphabetically sorted for easy scanning
UNIT_TESTS = \
test_biparser \
test_init_header \
+ test_missing-att \
test_mixed-enumatt \
test_mixed-enumatt2 \
test_mixed-stratt \
@@ -60,6 +71,10 @@
test_init_header_cmd = ./init_header < init_header.in
test_init_header_deps = init_header init_header.in
+# Test missing REQUIRED attribute
+test_missing-att_cmd = ./missing-att < missing-att.in
+test_missing-att_deps = missing-att missing-att.in
+
# Test mixed1
test_mixed1_cmd = ./mixed1 < mixed1.in
test_mixed1_deps = mixed1 mixed1.in
--- NEW FILE: missing-att.act ---
<!DOCTYPE actions SYSTEM "flexml-act.dtd">
<actions>
<top><![CDATA[
#include <stdio.h>
]]></top>
<start tag='bar'><![CDATA[
printf("bar att: %s\n", {batt});
]]></start>
<end tag='bar'><![CDATA[
printf("bar pcdata: %s\n", {#PCDATA});
]]></end>
<end tag='foo'><![CDATA[
printf("foo pcdata: %s\n", {#PCDATA});
]]></end>
<main><![CDATA[
int main(int argc, char **argv)
{
int retval = yylex();
printf("retval = %d\n", retval);
return retval;
}
]]></main>
</actions>
--- NEW FILE: missing-att.in ---
<!DOCTYPE foo SYSTEM "missing-att.dtd">
<foo>012<bar>456789ab</bar>cdefghijklmn</foo>
|