@@ -4,21 +4,19 @@ Simple test
44The `dune build` should generate the opam file
55
66 $ cat > dune-project << EOF
7- > (lang dune 3.18 )
7+ > (lang dune 1.10 )
88 > (version 1.0 . 0)
99 > (name cohttp)
1010 > (source (github mirage/ ocaml-cohttp))
1111 > (license ISC)
1212 > (authors " Anil Madhavapeddy" " Rudi Grinberg" )
13- > (maintenance_intent " (latest)" )
1413 >
1514 > (generate_opam_files true)
1615 >
1716 > (package
1817 > (name cohttp)
1918 > (synopsis " An OCaml library for HTTP clients and servers" )
2019 > (description " A longer description" )
21- > (allow_empty)
2220 > (depends
2321 > (alcotest : with-test)
2422 > (foo (and : dev (> 1.5 ) (< 2.0 )))
@@ -34,7 +32,6 @@ The `dune build` should generate the opam file
3432 > A really long multi line description that spans across lines to
3533 > make sure that the rendering of long strings stays compatible.
3634 > " )
37- > (allow_empty)
3835 > (depends
3936 > (cohttp (>= 1.0 . 2))
4037 > (conduit-async (>= 1.0 . 3))
@@ -48,7 +45,6 @@ The `dune build` should generate the opam file
4845 > A really long description that is supposed to start with a
4946 > newline since it doesn't escape the line break.
5047 > " )
51- > (allow_empty)
5248 > (depends
5349 > (cohttp (>= 1.0 . 2))
5450 > (conduit-lwt (>= 1.0 . 3))
@@ -61,113 +57,80 @@ The `dune build` should generate the opam file
6157 $ cat cohttp. opam
6258 # This file is generated by dune, edit dune-project instead
6359 opam-version: " 2.0"
60+ build: [
61+ [" dune" " subst" ] {pinned}
62+ [" dune" " build" " -p" name " -j" jobs]
63+ [" dune" " runtest" " -p" name " -j" jobs] {with-test}
64+ [" dune" " build" " -p" name " @ doc" ] {with-doc}
65+ ]
66+ authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
67+ bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
68+ homepage: " https://github.com/mirage/ocaml-cohttp"
69+ license: " ISC"
6470 version: " 1.0.0"
71+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
6572 synopsis: " An OCaml library for HTTP clients and servers"
6673 description: " A longer description"
67- authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
68- license: " ISC"
69- homepage: " https://github.com/mirage/ocaml-cohttp"
70- bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
7174 depends: [
72- " dune" {>= " 3.18" }
7375 " alcotest" {with-test}
7476 " foo" {dev & > " 1.5" & < " 2.0" }
7577 " uri" {>= " 1.9.0" }
7678 " uri" {< " 2.0.0" }
7779 " fieldslib" {> " v0.12" }
7880 " fieldslib" {< " v0.13" }
79- " odoc" {with-doc}
8081 ]
81- build: [
82- [" dune" " subst" ] {dev}
83- [
84- " dune"
85- " build"
86- " -p"
87- name
88- " -j"
89- jobs
90- " @ install"
91- " @ runtest" {with-test}
92- " @ doc" {with-doc}
93- ]
94- ]
95- dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
96- x-maintenance-intent: [" (latest)" ]
9782
9883 $ cat cohttp-async. opam
9984 # This file is generated by dune, edit dune-project instead
10085 opam-version: " 2.0"
86+ build: [
87+ [" dune" " subst" ] {pinned}
88+ [" dune" " build" " -p" name " -j" jobs]
89+ [" dune" " runtest" " -p" name " -j" jobs] {with-test}
90+ [" dune" " build" " -p" name " @ doc" ] {with-doc}
91+ ]
92+ authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
93+ bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
94+ homepage: " https://github.com/mirage/ocaml-cohttp"
95+ license: " ISC"
10196 version: " 1.0.0"
97+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
10298 synopsis: " HTTP client and server for the Async library"
10399 description: " " "
104100 A really long multi line description that spans across lines to
105101 make sure that the rendering of long strings stays compatible.
106102 " " "
107- authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
108- license: " ISC"
109- homepage: " https://github.com/mirage/ocaml-cohttp"
110- bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
111103 depends: [
112- " dune" {>= " 3.18" }
113104 " cohttp" {>= " 1.0.2" }
114105 " conduit-async" {>= " 1.0.3" }
115106 " async" {>= " v0.10.0" }
116107 " async" {< " v0.12" }
117- " odoc" {with-doc}
118- ]
119- build: [
120- [" dune" " subst" ] {dev}
121- [
122- " dune"
123- " build"
124- " -p"
125- name
126- " -j"
127- jobs
128- " @ install"
129- " @ runtest" {with-test}
130- " @ doc" {with-doc}
131- ]
132108 ]
133- dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
134- x-maintenance-intent: [" (latest)" ]
135109
136110 $ cat cohttp-lwt. opam
137111 # This file is generated by dune, edit dune-project instead
138112 opam-version: " 2.0"
113+ build: [
114+ [" dune" " subst" ] {pinned}
115+ [" dune" " build" " -p" name " -j" jobs]
116+ [" dune" " runtest" " -p" name " -j" jobs] {with-test}
117+ [" dune" " build" " -p" name " @ doc" ] {with-doc}
118+ ]
119+ authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
120+ bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
121+ homepage: " https://github.com/mirage/ocaml-cohttp"
122+ license: " ISC"
139123 version: " 1.0.0"
124+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
140125 synopsis: " HTTP client and server for the Lwt library"
141126 description: " " "
142127
143128 A really long description that is supposed to start with a
144129 newline since it doesn't escape the line break.
145130 " " "
146- authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
147- license: " ISC"
148- homepage: " https://github.com/mirage/ocaml-cohttp"
149- bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
150131 depends: [
151- " dune" {>= " 3.18" }
152132 " cohttp" {>= " 1.0.2" }
153133 " conduit-lwt" {>= " 1.0.3" }
154134 " lwt" {>= " 5.0.0" }
155135 " lwt" {< " 6.0.0" }
156- " odoc" {with-doc}
157136 ]
158- build: [
159- [" dune" " subst" ] {dev}
160- [
161- " dune"
162- " build"
163- " -p"
164- name
165- " -j"
166- jobs
167- " @ install"
168- " @ runtest" {with-test}
169- " @ doc" {with-doc}
170- ]
171- ]
172- dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
173- x-maintenance-intent: [" (latest)" ]
0 commit comments