File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,17 @@ Specifying a timeout causes ORTAC_QCHECK_STM_TIMEOUT to be set before running th
171
171
(libraries ortac-runtime my_lib)
172
172
(package my_package ))
173
173
174
- $ ortac dune wrapper my_lib .mli --package =my_package --output =named_wrapper .ml
174
+ The following test not only generates the Dune rules for the wrapper plugin ,
175
+ but also prevents cyclic dependencies or general Dune errors .
176
+ $ cat > dune-project <<EOF
177
+ > (lang dune 3.8 )
178
+ > (package (name my_package))
179
+ > EOF
180
+
181
+ $ echo '' > my_lib .mli
182
+
183
+ $ ortac dune wrapper my_lib .mli --package =my_package --output =named_wrapper .ml >> dune
184
+ $ cat dune
175
185
; This file is generated by ortac dune wrapper
176
186
; It contains the rules for generating a wrapper for my_lib .mli
177
187
@@ -207,3 +217,5 @@ Specifying a timeout causes ORTAC_QCHECK_STM_TIMEOUT to be set before running th
207
217
(modules named_wrapper)
208
218
(libraries ortac-runtime my_lib)
209
219
(package my_package ))
220
+
221
+ $ dune runtest
You can’t perform that action at this time.
0 commit comments