This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
(rule (with-stdout-to x.gen (echo "toto")))
|
||||
|
||||
(rule
|
||||
(alias blah-non-existent)
|
||||
(action (diff x-non-existent x.gen)))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 2.8)
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
Tests for promoting with non existent reference
|
||||
-----------------------------------------------
|
||||
# Diffing should do as if it is an empty file
|
||||
|
||||
$ cat x-non-existent
|
||||
cat: x-non-existent: No such file or directory
|
||||
[1]
|
||||
|
||||
$ dune build @blah-non-existent
|
||||
File "x-non-existent", line 1, characters 0-0:
|
||||
Error: Files _build/default/x-non-existent and _build/default/x.gen differ.
|
||||
[1]
|
||||
|
||||
$ dune promote
|
||||
Promoting _build/default/x.gen to x-non-existent.
|
||||
|
||||
$ cat x-non-existent
|
||||
toto
|
||||
Loading…
Add table
Add a link
Reference in a new issue