Skip to content

Commit

Permalink
Reproduce ocaml#3624
Browse files Browse the repository at this point in the history
This bug demonstrates dune adding an incorrect `using` line in a create
dune-project file.

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Jul 27, 2020
1 parent e161637 commit 234c38e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/blackbox-tests/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,17 @@
test-cases/coq/extract.t
(progn (run dune-cram run run.t) (diff? run.t run.t.corrected)))))

(rule
(alias coq-github3624)
(deps
(package dune)
(source_tree test-cases/coq/github3624.t)
(alias test-deps))
(action
(chdir
test-cases/coq/github3624.t
(progn (run dune-cram run run.t) (diff? run.t run.t.corrected)))))

(rule
(alias coq-main)
(deps (package dune) (source_tree test-cases/coq/main.t) (alias test-deps))
Expand Down Expand Up @@ -3197,6 +3208,7 @@
(alias contents-depends-on-glob)
(alias copy-files-non-sub-dir-error)
(alias copy_files)
(alias coq-github3624)
(alias corrections)
(alias cross-compilation)
(alias custom-build-dir)
Expand Down Expand Up @@ -3504,6 +3516,7 @@
(alias contents-depends-on-glob)
(alias copy-files-non-sub-dir-error)
(alias copy_files)
(alias coq-github3624)
(alias corrections)
(alias custom-build-dir)
(alias custom-cross-compilation)
Expand Down
8 changes: 8 additions & 0 deletions test/blackbox-tests/test-cases/coq/github3624.t/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
In github #3624, dune created a dune-project with an incorrect using line.

$ cat >dune <<EOF
> (coq.theory
> (name foo))
> EOF
$ dune build 2>&1 | grep using
Info: Appending this line to dune-project: (using coq.theory 0.2)

0 comments on commit 234c38e

Please sign in to comment.