Skip to content

Commit

Permalink
Add a test that staging area isn't used for normal [diff]
Browse files Browse the repository at this point in the history
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
  • Loading branch information
aalekseyev committed Aug 2, 2019
1 parent 19a3f21 commit efa9868
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/blackbox-tests/test-cases/promote/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
(name blah)
(action (diff x x.gen)))

(rule (with-stdout-to x.gen.copy (cat x.gen)))

(rule (with-stdout-to y.gen (echo "titi")))

(alias
Expand Down
14 changes: 14 additions & 0 deletions test/blackbox-tests/test-cases/promote/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ General tests
$ cat x
toto

The correction file stays on the filesystem even after promotion and
can be depended on by other actions.

$ cat _build/default/x.gen
toto

$ printf titi > x
$ dune build --display short @blah x.gen.copy
File "x", line 1, characters 0-0:
Error: Files _build/default/x and _build/default/x.gen differ.
[1]
$ cat _build/default/x.gen.copy
toto

Otherwise this test fails on OSX
$ dune clean --display short

Expand Down

0 comments on commit efa9868

Please sign in to comment.