OCaml HTML5 parser/serialiser based on Python's JustHTML
1(library
2 (name test_report)
3 (modules test_report))
4
5(executable
6 (name test_all)
7 (modules test_all)
8 (libraries bytesrw html5rw jsont jsont.bytesrw test_report))
9
10(executable
11 (name test_html5lib)
12 (modules test_html5lib)
13 (libraries bytesrw html5rw test_report))
14
15(rule
16 (alias runtest)
17 (deps
18 (glob_files ../html5lib-tests/tree-construction/*.dat))
19 (action
20 (run %{exe:test_html5lib.exe} ../html5lib-tests/tree-construction)))
21
22(executable
23 (name test_tokenizer)
24 (modules test_tokenizer)
25 (libraries bytesrw html5rw jsont jsont.bytesrw test_report))
26
27(rule
28 (alias runtest)
29 (deps
30 (glob_files ../html5lib-tests/tokenizer/*.test))
31 (action
32 (run %{exe:test_tokenizer.exe} ../html5lib-tests/tokenizer)))
33
34(executable
35 (name test_encoding)
36 (modules test_encoding)
37 (libraries html5rw test_report))
38
39(rule
40 (alias runtest)
41 (deps
42 (glob_files ../html5lib-tests/encoding/*.dat))
43 (action
44 (run %{exe:test_encoding.exe} ../html5lib-tests/encoding)))
45
46(executable
47 (name test_serializer)
48 (modules test_serializer)
49 (libraries html5rw jsont jsont.bytesrw test_report))
50
51(rule
52 (alias runtest)
53 (deps
54 (glob_files ../html5lib-tests/serializer/*.test))
55 (action
56 (run %{exe:test_serializer.exe} ../html5lib-tests/serializer)))
57
58(executable
59 (name test_nesting_checker)
60 (modules test_nesting_checker)
61 (libraries html5rw.check))
62
63(executable
64 (name test_html5_checker)
65 (modules test_html5_checker)
66 (libraries bytesrw html5rw html5rw.check str))
67
68(rule
69 (alias runtest)
70 (action
71 (run %{exe:test_html5_checker.exe})))
72
73(library
74 (name validator_messages)
75 (modules validator_messages)
76 (libraries jsont jsont.bytesrw))
77
78(library
79 (name expected_message)
80 (modules expected_message)
81 (libraries html5rw.check str jsont jsont.bytesrw))
82
83(executable
84 (name test_validator)
85 (modules test_validator)
86 (libraries bytesrw html5rw html5rw.check str jsont jsont.bytesrw test_report validator_messages expected_message unix))
87
88(executable
89 (name test_roundtrip)
90 (modules test_roundtrip)
91 (libraries bytesrw html5rw html5rw.check astring test_report))