Skip to content

Commit 343c9fa

Browse files
committed
Sherlodoc: Use tyxml for testing rather than base
1 parent bdd75af commit 343c9fa

File tree

9 files changed

+605
-902
lines changed

9 files changed

+605
-902
lines changed

sherlodoc.opam

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ depends: [
2525
"tyxml" {>= "4.6.0"}
2626
"result" {>= "1.5"}
2727
"odig" {with-test}
28-
"base" {with-test & = "v0.16.3"}
2928
"alcotest" {with-test}
3029
]
3130
depopts: [

sherlodoc/test/cram/base_benchmark.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
This test will fail, it is not deterministic. Please just check that the values
22
are not crazy and discard the changes
3-
$ ODOCLS=$(find ../docs/odoc/base/ -name '*.odocl' | grep -v "__")
3+
$ ODOCLS=$(find ../docs/odoc/tyxml/ -name '*.odocl' | grep -v "__")
44
$ sherlodoc index --format=js --db=db.js $ODOCLS

sherlodoc/test/cram/base_cli.t

Lines changed: 313 additions & 284 deletions
Large diffs are not rendered by default.

sherlodoc/test/cram/base_odocls.t

Lines changed: 32 additions & 148 deletions
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,35 @@
1-
$ find ../docs/odoc/base/ -name '*.odocl' -exec basename '{}' ';' | grep -v "__" | sort
2-
base.odocl
3-
base_internalhash_types.odocl
4-
caml.odocl
5-
md5_lib.odocl
1+
$ find ../docs/odoc/tyxml/ -name '*.odocl' -exec basename '{}' ';' | grep -v "__" | sort
2+
html_f.odocl
3+
html_sigs.odocl
4+
html_types.odocl
65
page-index.odocl
7-
shadow_stdlib.odocl
6+
svg_f.odocl
7+
svg_sigs.odocl
8+
svg_types.odocl
9+
tyxml.odocl
10+
tyxml_html.odocl
11+
tyxml_svg.odocl
12+
tyxml_xml.odocl
13+
xml_iter.odocl
14+
xml_print.odocl
15+
xml_sigs.odocl
16+
xml_stream.odocl
17+
xml_wrap.odocl
818

9-
$ find ../docs/odoc/base/ -name '*.odocl' -exec basename '{}' ';' | sort
10-
base.odocl
11-
base__.odocl
12-
base__Applicative.odocl
13-
base__Applicative_intf.odocl
14-
base__Array.odocl
15-
base__Array0.odocl
16-
base__Array_permute.odocl
17-
base__Avltree.odocl
18-
base__Backtrace.odocl
19-
base__Binary_search.odocl
20-
base__Binary_searchable.odocl
21-
base__Binary_searchable_intf.odocl
22-
base__Blit.odocl
23-
base__Blit_intf.odocl
24-
base__Bool.odocl
25-
base__Bool0.odocl
26-
base__Buffer.odocl
27-
base__Buffer_intf.odocl
28-
base__Bytes.odocl
29-
base__Bytes0.odocl
30-
base__Bytes_tr.odocl
31-
base__Char.odocl
32-
base__Char0.odocl
33-
base__Comparable.odocl
34-
base__Comparable_intf.odocl
35-
base__Comparator.odocl
36-
base__Comparisons.odocl
37-
base__Container.odocl
38-
base__Container_intf.odocl
39-
base__Either.odocl
40-
base__Either0.odocl
41-
base__Either_intf.odocl
42-
base__Equal.odocl
43-
base__Error.odocl
44-
base__Exn.odocl
45-
base__Field.odocl
46-
base__Fieldslib.odocl
47-
base__Float.odocl
48-
base__Float0.odocl
49-
base__Floatable.odocl
50-
base__Fn.odocl
51-
base__Formatter.odocl
52-
base__Globalize.odocl
53-
base__Hash.odocl
54-
base__Hash_intf.odocl
55-
base__Hash_set.odocl
56-
base__Hash_set_intf.odocl
57-
base__Hashable.odocl
58-
base__Hashable_intf.odocl
59-
base__Hasher.odocl
60-
base__Hashtbl.odocl
61-
base__Hashtbl_intf.odocl
62-
base__Hex_lexer.odocl
63-
base__Identifiable.odocl
64-
base__Identifiable_intf.odocl
65-
base__Import.odocl
66-
base__Import0.odocl
67-
base__Indexed_container.odocl
68-
base__Indexed_container_intf.odocl
69-
base__Info.odocl
70-
base__Info_intf.odocl
71-
base__Int.odocl
72-
base__Int0.odocl
73-
base__Int32.odocl
74-
base__Int63.odocl
75-
base__Int63_emul.odocl
76-
base__Int64.odocl
77-
base__Int_conversions.odocl
78-
base__Int_intf.odocl
79-
base__Int_math.odocl
80-
base__Intable.odocl
81-
base__Invariant.odocl
82-
base__Invariant_intf.odocl
83-
base__Lazy.odocl
84-
base__Linked_queue.odocl
85-
base__Linked_queue0.odocl
86-
base__List.odocl
87-
base__List0.odocl
88-
base__List1.odocl
89-
base__Map.odocl
90-
base__Map_intf.odocl
91-
base__Maybe_bound.odocl
92-
base__Monad.odocl
93-
base__Monad_intf.odocl
94-
base__Nativeint.odocl
95-
base__Nothing.odocl
96-
base__Obj_array.odocl
97-
base__Obj_local.odocl
98-
base__Option.odocl
99-
base__Option_array.odocl
100-
base__Or_error.odocl
101-
base__Ordered_collection_common.odocl
102-
base__Ordered_collection_common0.odocl
103-
base__Ordering.odocl
104-
base__Poly0.odocl
105-
base__Popcount.odocl
106-
base__Pow_overflow_bounds.odocl
107-
base__Ppx_compare_lib.odocl
108-
base__Ppx_enumerate_lib.odocl
109-
base__Ppx_hash_lib.odocl
110-
base__Pretty_printer.odocl
111-
base__Printf.odocl
112-
base__Queue.odocl
113-
base__Queue_intf.odocl
114-
base__Random.odocl
115-
base__Random_repr.odocl
116-
base__Ref.odocl
117-
base__Result.odocl
118-
base__Sequence.odocl
119-
base__Set.odocl
120-
base__Set_intf.odocl
121-
base__Sexp.odocl
122-
base__Sexp_with_comparable.odocl
123-
base__Sexpable.odocl
124-
base__Sign.odocl
125-
base__Sign0.odocl
126-
base__Sign_or_nan.odocl
127-
base__Source_code_position.odocl
128-
base__Source_code_position0.odocl
129-
base__Stack.odocl
130-
base__Stack_intf.odocl
131-
base__Staged.odocl
132-
base__String.odocl
133-
base__String0.odocl
134-
base__Stringable.odocl
135-
base__Sys.odocl
136-
base__Sys0.odocl
137-
base__T.odocl
138-
base__Type_equal.odocl
139-
base__Uchar.odocl
140-
base__Uchar0.odocl
141-
base__Uniform_array.odocl
142-
base__Unit.odocl
143-
base__Variant.odocl
144-
base__Variantslib.odocl
145-
base__With_return.odocl
146-
base__Word_size.odocl
147-
base_internalhash_types.odocl
148-
caml.odocl
149-
md5_lib.odocl
19+
$ find ../docs/odoc/tyxml/ -name '*.odocl' -exec basename '{}' ';' | sort
20+
html_f.odocl
21+
html_sigs.odocl
22+
html_types.odocl
15023
page-index.odocl
151-
shadow_stdlib.odocl
24+
svg_f.odocl
25+
svg_sigs.odocl
26+
svg_types.odocl
27+
tyxml.odocl
28+
tyxml_html.odocl
29+
tyxml_svg.odocl
30+
tyxml_xml.odocl
31+
xml_iter.odocl
32+
xml_print.odocl
33+
xml_sigs.odocl
34+
xml_stream.odocl
35+
xml_wrap.odocl

sherlodoc/test/cram/base_web.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$ ODOCLS=$(find ../docs/odoc/base/ -name '*.odocl' | grep -v "__" | sort)
1+
$ ODOCLS=$(find ../docs/odoc/tyxml/ -name '*.odocl' | grep -v "__" | sort)
22
$ cat $ODOCLS > megaodocl
33
$ du -sh megaodocl
44
13M megaodocl
@@ -37,4 +37,4 @@ $ du -sh html/sherlodoc.js
3737
sherlodoc.js
3838
indent to see results
3939
$ cp -r html /tmp
40-
$ firefox /tmp/html/base/index.html
40+
$ firefox /tmp/html/tyxml/index.html

0 commit comments

Comments
 (0)