Skip to content

Commit

Permalink
Add test illustrating #6575 (#6576)
Browse files Browse the repository at this point in the history
Signed-off-by: Ulysse Gérard <[email protected]>
  • Loading branch information
voodoos authored Feb 28, 2023
1 parent bf5697d commit 93e8a95
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/blackbox-tests/test-cases/github6575.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Given a working directory cram test:
$ mkdir sometest.t
$ cat >sometest.t/run.t <<EOF
> $ echo "foobar"
> foobar
> EOF

$ dune build @sometest

We turn it into a single-file test:
$ mv sometest.t sometest.t.bak
$ mv sometest.t.bak/run.t sometest.t
$ rm -r sometest.t.bak

FIXME: Dune should detect the change:
$ dune build @sometest
Error: _build/default/sometest.t: Is a directory
-> required by _build/default/sometest.t
-> required by alias sometest
[1]

After a clean it works as expected:
$ dune clean
$ dune build @sometest

0 comments on commit 93e8a95

Please sign in to comment.