Skip to content

Commit

Permalink
Add reproduction test-case for dune#11012.
Browse files Browse the repository at this point in the history
Signed-off-by: Rodolphe Lepigre <[email protected]>
  • Loading branch information
Rodolphe Lepigre committed Nov 4, 2024
1 parent b409963 commit 7f57d8c
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 0 deletions.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(lang dune 3.8)
(using coq 0.8)
(name coqlib)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(library
(name coqlib_plugin)
(public_name coqlib-plugin.plugin)
(libraries somelib))
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(coq.theory
(name coqlib)
(package coqlib)
(plugins coqlib-plugin.plugin))

;(rule
; (targets dummy.v)
; (deps (package coqlib-plugin))
; (action (with-stdout-to %{targets} (echo "(* dummy file *)"))))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Declare ML Module "coqlib-plugin.plugin".
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 3.8)
10 changes: 10 additions & 0 deletions test/blackbox-tests/test-cases/coq/plugin-deps.t/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
The following should succeed.

$ dune build coqlib/theories/plugin.vo
Warning: Cannot open directory ../../somelib/src
[cannot-open-dir,filesystem,default]
File "./coqlib/theories/plugin.v", line 1, characters 0-41:
Error:
Dynlink error: error loading shared library: Dynlink.Error (Dynlink.Cannot_open_dll "Failure(\"$TESTCASE_ROOT/_build/install/default/lib/somelib/somelib.cmxs: cannot open shared object file: No such file or directory\")")

[1]
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(lang dune 3.8)
(name somelib)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(library
(public_name somelib))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let version = "dev"

0 comments on commit 7f57d8c

Please sign in to comment.