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,45 @@
Demonstrate that cram tests that add new commands are correctly executed:
$ cat >dune-project <<EOF
> (lang dune 3.17)
> EOF
$ cat >test.t <<EOF
> $ echo "$ echo foo"
> EOF
$ runTest() {
> dune runtest test.t
> dune promote
> cat test.t
> }
$ runTest
File "test.t", line 1, characters 0-0:
Error: Files _build/default/test.t and _build/default/test.t.corrected
differ.
Promoting _build/default/test.t.corrected to test.t.
$ echo "$ echo foo"
$ echo foo
$ runTest
File "test.t", line 1, characters 0-0:
Error: Files _build/default/test.t and _build/default/test.t.corrected
differ.
Promoting _build/default/test.t.corrected to test.t.
$ echo "$ echo foo"
$ echo foo
$ echo foo
foo
$ runTest
File "test.t", line 1, characters 0-0:
Error: Files _build/default/test.t and _build/default/test.t.corrected
differ.
Promoting _build/default/test.t.corrected to test.t.
$ echo "$ echo foo"
$ echo foo
$ echo foo
foo
$ echo foo
foo