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,30 @@
`dune promotion run` is equivalent to `dune promote`.
$ cat > dune-project << EOF
> (lang dune 2.0)
> EOF
$ cat > dune << EOF
> (rule
> (alias runtest)
> (action
> (diff a.expected a.actual)))
>
> (rule
> (write-file a.actual Actual))
> EOF
$ cat > a.expected << EOF
> Expected
> EOF
$ dune runtest
File "a.expected", line 1, characters 0-0:
Error: Files _build/default/a.expected and _build/default/a.actual differ.
[1]
$ cat a.expected
Expected
$ dune promotion apply
Promoting _build/default/a.actual to a.expected.
$ cat a.expected
Actual