Debian Codegraph @

test/blackbox-tests/test-cases/promote/non-existent.t/run.t

raw
1 Tests for promoting with non existent reference
2 -----------------------------------------------
3 # Diffing should do as if it is an empty file
4
5 $ cat x-non-existent
6 cat: x-non-existent: No such file or directory
7 [1]
8
9 $ dune build @blah-non-existent --diff-command -
10 File "x-non-existent", line 1, characters 0-0:
11 Error: Files _build/default/x-non-existent and _build/default/x.gen differ.
12 [1]
13
14 $ dune promote
15 Promoting _build/default/x.gen to x-non-existent.
16
17 $ cat x-non-existent
18 toto