Zach Laine
1278bdfd0a
Consolidate lists of tests and known failures.
2017-05-12 16:08:49 -05:00
Zach Laine
e0c549a92d
Tag more broken tests.
2017-05-12 14:40:18 -05:00
Zach Laine
edb019f72e
It looks like the yaml-test-suite tests intend a terminal "\" to be a
...
placeholder for a terminal newline.
2017-05-12 13:59:57 -05:00
Zach Laine
0ed0a9b976
Add simple CMake file to build libyaml and one of its test apps.
2017-05-11 18:55:15 -05:00
Zach Laine
82ddfc7227
Mark a few more expected failures.
2017-05-11 17:56:56 -05:00
Zach Laine
b75aab44cf
Move configuration of Spirit debug output from compile time to run time. Give
...
the test apps an optional "-v" flag to control this output.
2017-05-11 15:51:31 -05:00
Zach Laine
e1d60f54b9
Mark a compare test as an expected failure.
2017-05-11 14:37:43 -05:00
Zach Laine
6a536f260a
Add scalar_auto_detect_indent, which must do multiline lookahead.
2017-05-10 21:24:35 -05:00
Zach Laine
d180a11454
De-templatize the parsers.
2017-05-10 17:04:55 -05:00
Zach Laine
83401b05a0
Add config.hpp, and a build-test of the use of YAML_HEADER_ONLY.
2017-05-10 16:10:17 -05:00
Zach Laine
77ea53a917
Mark a couple more expected failures, and fix part of the CMake failure
...
auto-marking.
2017-05-10 13:26:44 -05:00
Zach Laine
8d80390b3e
Change .tml section stripping to elide the extra newline at the end of each section.
2017-05-10 12:14:17 -05:00
Zach Laine
80aaa62a4f
Add print_yaml_canonical(), and use this in the parse-compare tests.
2017-05-09 15:38:55 -05:00
Zach Laine
e735e0fd48
Fix CMake marking of known parse-only failures as expected comparison test
...
failures as well.
2017-05-08 23:31:59 -05:00
Zach Laine
c5010cea17
Annotate some obviously broken comparison tests as expected failures.
2017-05-08 23:03:01 -05:00
Zach Laine
f53d18d64f
Add tests for comparing the in-yaml, out-yaml, and json sections from the .tml
...
test files.
2017-05-08 22:15:02 -05:00
Zach Laine
405269423c
Modify make_test_suite_yaml.py to create files for the out-yaml and json
...
sections as well.
2017-05-08 20:38:10 -05:00
Zach Laine
d2fc6305bb
Another large refactor, this time to support UTF-8 streams.
2017-05-08 17:23:21 -05:00
Zach Laine
2b69ae79c8
Effectively constrain all the parser templates by enforcing their use of
...
Spirit's position_iterator<>. Also, give each parser a "_t" suffix.
2017-05-07 15:08:34 -05:00
Zach Laine
1bd2eb7d36
Second half of the BOM-handling refactor.
2017-05-07 12:37:39 -05:00
Zach Laine
7e208d7085
First half of a largish refactor that allows BOMs to be handled correctly.
2017-05-06 14:29:10 -05:00
Zach Laine
edfc5c4f6d
boost::optional instead of out-param for parse_yaml().
2017-05-05 16:01:15 -05:00
Zach Laine
dbdce9abc3
Mark XW4D as an expected failure.
2017-05-05 01:03:05 -05:00
Zach Laine
682c0ff55f
Clarify reason that NHX8 and P94K are marked as expected failures.
2017-05-05 00:13:19 -05:00
Zach Laine
630032589c
Mark NHX8 and P94K as expected failures.
2017-05-04 21:20:43 -05:00
Zach Laine
ec9be6a771
Don't expect escaped_percent_27NA.yml to be treated as an error.
2017-05-02 20:38:05 -05:00
Zach Laine
6832be2621
Update yaml-test-suite, and support its new error-tagged tests.
2017-05-02 20:23:14 -05:00
Zach Laine
bb3448d250
Mark 2SXE as an expected failure.
2017-05-02 20:13:56 -05:00
Zach Laine
7f8684191c
Correct typo in test/CMakeLists.txt.
2017-05-01 21:26:55 -05:00
Zach Laine
202cb3318a
Don't require test input files to contain at least one document.
2017-05-01 21:26:55 -05:00
Zach Laine
3f7e0cba2c
Apparently <SPC> means ' ' in the input test data. Sigh again.
2017-05-01 21:26:55 -05:00
Zach Laine
98e4efbd47
Remove simplifying assumption in tests that each input file contains only one
...
document.
2017-04-30 10:52:18 -05:00
Zach Laine
b5e25fc867
Apparently <TAB> means \t in the input test data. Sigh.
2017-04-30 01:07:42 -05:00
Zach Laine
84209639c7
Serveral interconencted changes:
...
- anchored_node_t -> properties_node_t
- Correctly handle anchors and aliases, plus retention of propertieswhen
specified (tags TBD).
- Remove now-moot link_yaml().
This makes ast::value_t Regular.
2017-04-29 23:20:08 -05:00
Zach Laine
59103f136a
Add very simple test to exercise the flow plain parsers.
2017-04-29 16:59:50 -05:00
Zach Laine
67e67afc3e
Add ASan and UBSan build support.
2017-04-28 21:19:39 -05:00
Zach Laine
8a5b47312e
Numerous small corrections, fixing several failures.
2017-04-28 00:16:52 -05:00
Zach Laine
14133d1954
Remove old parser cruft, and omd namespace.
2017-04-27 22:36:55 -05:00
Zach Laine
b61041da17
Add support for expected-fail tests.
2017-04-27 22:36:55 -05:00
Zach Laine
534a5ceb7f
Convert the current test to parse-only, and preserve the current round-trip
...
test in a new TU, to be used later.
2017-04-27 22:36:48 -05:00
Zach Laine
a5c83296f4
Fix crashes in tests, due to improper checking of parse validity.
2017-04-27 19:45:37 -05:00
Zach Laine
ec1d3d5a76
Switch parse test to using new parser.
2017-04-26 21:25:50 -05:00
Zach Laine
8ee7d42672
Add parsers implementing YAML Character Stream section.
2017-04-26 21:10:04 -05:00
Zach Laine
46a0826b93
Add parsers implementing Block Styles section.
2017-04-26 20:27:21 -05:00
Zach Laine
a9ad95203a
Add parsers implementing Flow Styles section.
2017-04-25 22:15:45 -05:00
Zach Laine
5740ead138
Add parsers implementing Basic Structures section.
2017-04-25 15:59:59 -05:00
Zach Laine
a0a6d5f2e9
Add new lowest-level parser, implementing YAML section 5.
2017-04-25 15:59:59 -05:00
Zach Laine
d4e4e0e3ac
Include scalar.yaml in the "check" target.
2017-04-24 10:54:41 -05:00
Zach Laine
ae74567002
Rewrite "yaml" grammar to better conform to the spec.
2017-04-24 10:48:48 -05:00
Zach Laine
9b09002357
Remove escaping of % and # in original .tml test files.
2017-04-24 10:46:33 -05:00