Skip to content

Commit

Permalink
Add a test for #761
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremie Dimino authored and jeremiedimino committed May 10, 2018
1 parent 229007a commit ba78e05
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/blackbox-tests/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@
test-cases/github759
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected))))))

(alias
((name github761)
(deps ((package dune) (files_recursively_in test-cases/github761)))
(action
(chdir
test-cases/github761
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected))))))

(alias
((name include-loop)
(deps ((package dune) (files_recursively_in test-cases/include-loop)))
Expand Down Expand Up @@ -485,6 +493,7 @@
(alias github660)
(alias github717-odoc-index)
(alias github759)
(alias github761)
(alias include-loop)
(alias inline_tests)
(alias installable-dup-private-libs)
Expand Down Expand Up @@ -538,6 +547,7 @@
(alias github597)
(alias github660)
(alias github759)
(alias github761)
(alias include-loop)
(alias inline_tests)
(alias installable-dup-private-libs)
Expand Down
7 changes: 7 additions & 0 deletions test/blackbox-tests/test-cases/github761/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(alias
((name foo/bar)
(action (echo toto))))

(alias
((name bar)
(action (echo toto))))
23 changes: 23 additions & 0 deletions test/blackbox-tests/test-cases/github761/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
$ jbuilder build @bar
Internal error, please report upstream including the contents of _build/log.
Description:
("Alias0.make: Invalid alias" (name foo/bar) (dir _build/default))
Backtrace:
Raised at file "src/stdune/exn.ml", line 32, characters 5-10
Called from file "src/build_system.ml", line 228, characters 8-146
Called from file "src/gen_rules.ml", line 914, characters 16-49
Called from file "src/gen_rules.ml", line 964, characters 8-37
Called from file "src/stdune/list.ml", line 13, characters 10-13
Called from file "src/gen_rules.ml", line 955, characters 4-777
Called from file "src/gen_rules.ml", line 994, characters 19-30
Called from file "src/build_system.ml", line 889, characters 6-62
Called from file "src/build_system.ml", line 865, characters 6-59
Re-raised at file "src/build_system.ml", line 876, characters 6-17
Called from file "src/build_system.ml" (inlined), line 833, characters 32-63
Called from file "src/build_system.ml", line 843, characters 4-24
Called from file "src/build_interpret.ml", line 101, characters 24-40
Called from file "src/build_interpret.ml", line 60, characters 31-43
Called from file "src/build_interpret.ml", line 60, characters 31-43
Called from file "src/build_system.ml", line 1215, characters 10-108
Called from file "src/fiber/fiber.ml", line 359, characters 6-13
[1]

0 comments on commit ba78e05

Please sign in to comment.