Commit Graph

725 Commits

Author SHA1 Message Date
Fred L. Drake, Jr.
d05c7a58f7 Added target to run checks based on xmlwf and James Clark's test cases.
This is not run by "make check" since it requires unzip, wget, and network
access to set up the tests.  Use "make run-xmltext" to run the tests.
2002-04-29 21:31:18 +00:00
Fred L. Drake, Jr.
0767c2ce17 Fix stupid last minute change. 2002-04-29 17:10:26 +00:00
Fred L. Drake, Jr.
d29adbd972 Added a bunch of assertions that internal assumptions are not violated
(specifically, make sure args are not NULL).

If the expected value is not the right length, include the value found in
the error message, to make problems easier to diagnose.
2002-04-29 17:09:31 +00:00
Fred L. Drake, Jr.
198ab270fe Revise the data accumulation to be at least a little separated from the
actual test code.  Not pretty & lacking in internal documentation, but
allows the test code to be a bit more readable.
2002-04-25 04:04:42 +00:00
Fred L. Drake, Jr.
d701da0bd5 Make the organization slightly easier to discern. 2002-04-25 01:42:34 +00:00
Fred L. Drake, Jr.
a1451f8ae7 Take advantage of XML_ParserReset(): Instead of creating new parsers in
run_*_check(), reset the parser between uses in the one place its actually
needed.
2002-04-24 03:48:03 +00:00
Fred L. Drake, Jr.
d2baa2aec2 Add a new test that demonstrates SF bug #481609 is invalid. 2002-04-22 18:50:18 +00:00
Fred L. Drake, Jr.
c5e5a2cab9 Test support enhancements:
_xml_failure():  Clean up the output message so the first line doesn't
    wrap in the typical case.

CharData typedef:  If count is less than 0, consider it "unset".  This
    is used in the new support to check attribute values.

accumulate_characters():  Handle storage->count < 0.  Allow XML_Char
    to be more than one byte.

accumulate_attribute():  New function: store the value of the first
    attribute encountered in parsing.  This needs the concept of a
    CharData that is unset to allow capturing a value that is an empty
    string.

check_characters():  Handle storage->count < 0.  Allow XML_Char to be
    more than one byte.

run_character_check():  Create a local parser so that both
    run_character_check() and run_attribute_check() can be used in a
    single test function.

run_attribute_check():  New function: check that the value of the
    first attribute in a document matches the expected value.
2002-04-22 18:46:00 +00:00
Fred L. Drake, Jr.
307462a492 Added test for SF bug #480278. 2002-04-20 13:19:40 +00:00
Fred L. Drake, Jr.
e2db2bc4c4 Fix typo in comment. 2002-04-20 02:53:15 +00:00
Fred L. Drake, Jr.
118257bc4c Added a test for SF bug #231864. 2002-04-19 20:59:01 +00:00
Fred L. Drake, Jr.
1258481fbc Add a test that checks that illegal UTF-8 sequences are not allowed to pass
when we are using UTF-8 encoding.
This closes SF bug #477667.
2002-04-19 19:18:35 +00:00
Fred L. Drake, Jr.
083326894e Add the new tests to the right TCase object. 2002-04-19 18:50:26 +00:00
Fred L. Drake, Jr.
38b6ee29b2 basic_setup(): Remove bogus assumption that all tests would use US-ASCII
data; let Expat determine the proper encoding from the XML source text.

Added several tests relating to supposed mis-interpretation of Latin-1;
these show that Expat (at least in the CVS version) is properly decoding
the Latin-1 text and generating the proper UTF-8 output.

This closes SF bug #491986, #514281.
2002-04-19 18:25:07 +00:00
Greg Stein
a13d856e8f * Switch to a single, top-level Makefile (simplification, consistency)
* use libtool to compile/link all programs
* remove */Makefile.in and remove them from configure
* remove autom4te.cache after running autoconf
* remove .o from the FILEMAP logic in configure and the Make system;
  provides more flexibility in the Makefile to use it
* for VPATH builds: create the build subdirs by running
  "make mkdir-init" from the configure script
* adjust .cvsignore files to account for presence of .libs now
2001-12-07 10:19:31 +00:00
Fred L. Drake, Jr.
f762a852d9 Add a check for unknown command line options. 2001-11-18 13:56:01 +00:00
Fred L. Drake, Jr.
01012061bc Added a test to make sure that whitespace in ENTITIES, IDREFS, and NMTOKENS
attributes is properly collapsed according to Section 3.3.3 of the spec.
This is the first even slightly complicated test; boy are these painful in
C!  Had to add a test of a helper routine as well; that just uses assertions
since the test framework should not be dealing with tests of the tester,
just of Expat.

Added a helper to make the failure messages more useful when Expat produces
an unexpected error code; we now include the error message and location from
Expat.  This is mostly useful when developing a new test.
2001-11-16 20:19:39 +00:00
Fred L. Drake, Jr.
b1447b1ba3 Added tests that some basic encodings are recognized and the corresponding
BOM marks do not cause core dumps.  The UTF-8 BOM bug was fixed a while ago,
but a regression test is always a good idea.
2001-11-13 17:31:53 +00:00
Fred L. Drake, Jr.
1cd143fcf7 Note that the tests need check 0.8 to work. 2001-11-13 05:04:51 +00:00
Fred L. Drake, Jr.
3e89ab4c4b Update to work with check 0.8. 2001-11-13 05:04:02 +00:00
Fred L. Drake, Jr.
5769f4a431 Added a test that ensures the parser reports an out-of-place XML declaration.
(Originally written to attempt to tickle a different bug, but useful as a
regression test even though Expat has been doing the right thing.)
2001-11-13 04:49:52 +00:00
Fred L. Drake, Jr.
559fbc6c4b Tell CVS to ignore the intermediate files generated by building the test
suite.
2001-08-17 19:16:41 +00:00
Fred L. Drake, Jr.
cc89b6f763 Build & run the test suite. 2001-08-17 19:16:41 +00:00
Fred L. Drake, Jr.
ed9b8e0d46 Explain what is required to build & run the test suite, and that it all
might change in the future.
2001-08-17 19:16:41 +00:00
Fred L. Drake, Jr.
fcf971bfe0 A very small test suite for Expat; additional tests will be added as time
permits.
2001-08-17 19:16:41 +00:00