Skip to content

Commit

Permalink
Merge pull request #531 from rgrinberg/ocamldep-multi-stanza
Browse files Browse the repository at this point in the history
Multi stanza in 1 jbuild build failure
  • Loading branch information
rgrinberg committed Feb 20, 2018
2 parents eefe434 + b27486b commit 41693ae
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/blackbox-tests/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,13 @@
(progn
(run ${exe:cram.exe} -ocamlv ${ocaml_version} -skip-versions 4.02.3 run.t)
(diff? run.t run.t.corrected)))))))

(alias
((name runtest)
(deps ((files_recursively_in test-cases/ocamldep-multi-stanzas)))
(action
(chdir test-cases/ocamldep-multi-stanzas
(setenv JBUILDER ${bin:jbuilder}
(progn
(run ${exe:cram.exe} run.t)
(diff? run.t run.t.corrected)))))))
9 changes: 9 additions & 0 deletions test/blackbox-tests/test-cases/ocamldep-multi-stanzas/jbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(jbuild_version 1)

(library
((name lib)
(modules (:standard \ test))))

(executable
((name test)
(libraries (lib))))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let run () = print_endline "foo bar"
5 changes: 5 additions & 0 deletions test/blackbox-tests/test-cases/ocamldep-multi-stanzas/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$ $JBUILDER exec ./test.exe -j1 --debug-dep --display short --root .
Multiple rules generated for _build/default/lib.o:
- <internal location>
- <internal location>
[1]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Lib.run ();;

0 comments on commit 41693ae

Please sign in to comment.