Skip to content

Commit

Permalink
Add name mangling test case
Browse files Browse the repository at this point in the history
This test cases showcases the bug when two executables are defined in
the same directory. Dune attempts to generate the alias module twice.

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
  • Loading branch information
rgrinberg committed Jul 8, 2019
1 parent 9e582bb commit 001c1f9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(executable
(name foo)
(modules foo))

(executable
(name bar)
(modules bar))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(lang dune 1.11)
(wrapped_exes true)
Empty file.
9 changes: 9 additions & 0 deletions test/blackbox-tests/test-cases/exe-name-mangle/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ The multi module case always requires an alias.
Entering directory 'multi-module'
baz alias default
not directly usable

Multiple executables defined in the same directory

$ dune build --root multi-exe-same-dir
Entering directory 'multi-exe-same-dir'
Error: Multiple rules generated for _build/default/dune__exe.ml-gen:
- <none>:1
- <none>:1
[1]

0 comments on commit 001c1f9

Please sign in to comment.