Commit graph

1484 commits

Author SHA1 Message Date
Sebastian Pipping
ce34ddfe9f Travis: Inline .travis.sh for better integration 2017-03-13 18:45:31 +01:00
Sebastian Pipping
e064eb4c18 Travis: Pull xmlts.zip download out of script section
.. so that temporary download issues count for setup issues,
not script execution
2017-03-13 18:44:06 +01:00
Sebastian Pipping
11187083d9 Travis: Move from sudo to apt addon 2017-03-13 18:44:06 +01:00
Rhodri James
7091e83cb4 Check that version information is consistent 2017-03-13 18:12:24 +01:00
Rhodri James
69b23486c9 Test XML_ErrorString range checking 2017-03-13 18:06:20 +01:00
Sebastian Pipping
822036fd12 Tests: Make dealing with global parser instance more robust 2017-03-13 18:06:05 +01:00
Rhodri James
6a1873f1f1 Free the content model when used 2017-03-13 17:54:41 +01:00
Rhodri James
813dde9bcc Add test coverage of XML_GetInputContext() 2017-03-13 17:51:59 +01:00
Sebastian Pipping
19e6c3ac9f Tests: Address wildcard expansion order variance (fixes #13) 2017-03-13 17:39:14 +01:00
Rhodri James
c85b577eed Check byte information behaviour in handlers 2017-03-13 16:23:04 +01:00
Rhodri James
a0eca419bd Extend coverage of byte information function tests 2017-03-13 15:39:38 +01:00
Rhodri James
2dbc5c800b Test byte information functions 2017-03-13 15:39:38 +01:00
Rhodri James
012de3c01b Improve test coverage of XML_ResumeParser 2017-03-13 15:22:52 +01:00
Rhodri James
cf29d40fd3 Extend test coverage of XML_ResumeParser 2017-03-13 15:21:24 +01:00
Rhodri James
6975a78eb5 Extend test coverage of XML_ResumeParser() 2017-03-13 15:21:13 +01:00
Rhodri James
b1ef084e82 Test XML_StopParser() in external entity parsing 2017-03-13 15:15:44 +01:00
Rhodri James
ca324d219c Increase test coverage of XML_StopParser 2017-03-12 19:42:33 +01:00
Sebastian Pipping
7c715a9d3c Fix __func__ for -std=c89 with GCC 5.4.0 (fixes #12)
GCC 5.4.0 does not define __STDC_VERSION__ when -std=c89 is passed.
2017-03-08 22:25:37 +01:00
Sebastian Pipping
acbdb19a28 configure.ac: Fix const correctness in check for __func__ 2017-03-08 22:24:47 +01:00
Rhodri James
0a3827eb7d Extend tests of XML_GetBuffer for still more coverage 2017-03-05 22:56:23 +01:00
Rhodri James
28d9f9938f Extend XML_GetBuffer testing coverage 2017-03-05 22:54:57 +01:00
Rhodri James
1c3c9b2bd5 Further test coverage of XML_GetBuffer 2017-03-05 22:53:15 +01:00
Rhodri James
11df015a54 Extend tests to XML_GetBuffer in various circumstances 2017-03-05 22:44:17 +01:00
Rhodri James
98c2606759 Test XML_ParseBuffer API in various parse states 2017-03-05 22:38:33 +01:00
Rhodri James
d54933675f Extend empty string parse tests 2017-03-05 22:36:29 +01:00
Rhodri James
bc193a62a0 Test parsing a zero-length string 2017-03-05 22:33:53 +01:00
Rhodri James
d7550d1446 Check parsing is faulted once parser is FINISHED 2017-03-05 22:30:44 +01:00
Rhodri James
ce9b32fe94 Check XML_Parse faults parsing while suspended 2017-03-05 22:29:50 +01:00
Rhodri James
93fabef3cd Check manual setting of hash salt 2017-03-05 22:27:50 +01:00
Rhodri James
bcee6525d1 Check entity parsing policy can't be changed mid-parse 2017-03-05 22:27:13 +01:00
Rhodri James
7c27879ec9 Test XML declaration handler 2017-03-05 22:26:34 +01:00
Rhodri James
12fb5000c2 Check skipped entity handler 2017-03-05 22:24:39 +01:00
Rhodri James
fefa4bc3f0 Check clearing of external entity handler parameter 2017-03-05 22:22:49 +01:00
Rhodri James
e3194021b6 Test NotStandalone handlers 2017-03-05 22:13:36 +01:00
Rhodri James
3dd91b2e7b Call namespace declaration start and end handlers 2017-03-05 22:13:29 +01:00
Rhodri James
454f53885b Ensure unparsed entity handler gets set
This adds test coverage for an obsolete handler that is supported
only for backwards compatibility.  While it is supported, we should
test it.
2017-03-05 22:05:54 +01:00
Rhodri James
b94580da12 Extend coverage to XML_{Start|End}DoctypeDeclHandler 2017-03-05 22:04:08 +01:00
Rhodri James
37f374a1c0 Extend test_return_ns_triplet() to improve code coverage 2017-03-05 22:02:47 +01:00
Rhodri James
b0993ad257 Test non-NULL external entity ref handler parameter 2017-03-05 22:00:21 +01:00
Rhodri James
64543da013 Extend test of passing parser as userData 2017-03-05 21:58:48 +01:00
Sebastian Pipping
a0f8c0817b Configure Travis CI (issue #2) 2017-02-19 22:38:22 +01:00
Rhodri James
d1f980f55d Test XML_SetEncoding against memory allocation failures 2017-02-18 21:16:17 +01:00
Rhodri James
1e5cdb011c Test XML_SetBase against failing memory allocations 2017-02-18 20:45:30 +01:00
Rhodri James
36fb006a34 Test XML_SetEncoding against memory allocation failures 2017-02-18 20:44:08 +01:00
Rhodri James
d0c57b2a29 Increase test coverage of XML_SetEncoding() 2017-02-18 20:42:42 +01:00
Rhodri James
8f21640654 Test freeing a non-existent parser 2017-02-18 20:39:49 +01:00
Rhodri James
682eac7acf Add some coverage of CDATA section handlers 2017-02-18 20:38:16 +01:00
Rhodri James
effb3e98a0 Test XML_ParserReset in external entity parsing is ignored 2017-02-18 20:37:04 +01:00
Rhodri James
b3cc5a74d9 Test XML_ParserReset in internal entity expansion 2017-02-18 20:35:28 +01:00
Rhodri James
7f872d8edf Test that XML_ParserReset() does reset the parse state 2017-02-18 20:33:39 +01:00