This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,5 @@
(rule (with-stdout-to x.gen (echo "toto")))
(rule
(alias blah-non-existent)
(action (diff x-non-existent x.gen)))

View file

@ -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