-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ulysse Gérard <[email protected]>
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |