This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,42 @@
|
|||
Demonstrate the files and directories listed in a cram test:
|
||||
|
||||
$ cat >test.t <<EOF
|
||||
> $ find . | sort
|
||||
> EOF
|
||||
|
||||
$ dune runtest test.t
|
||||
File "test.t", line 1, characters 0-0:
|
||||
Error: Files _build/default/test.t and _build/default/test.t.corrected
|
||||
differ.
|
||||
[1]
|
||||
|
||||
$ dune promote
|
||||
Promoting _build/default/test.t.corrected to test.t.
|
||||
|
||||
$ cat test.t
|
||||
$ find . | sort
|
||||
.
|
||||
|
||||
$ ls _build/default | sort
|
||||
test.t
|
||||
|
||||
Now repeat the test for a test defined using a directory:
|
||||
|
||||
$ mkdir foo.t
|
||||
$ cat >foo.t/run.t <<EOF
|
||||
> $ find . | sort
|
||||
> EOF
|
||||
|
||||
$ dune runtest foo.t
|
||||
File "foo.t/run.t", line 1, characters 0-0:
|
||||
Error: Files _build/default/foo.t/run.t and
|
||||
_build/default/foo.t/run.t.corrected differ.
|
||||
[1]
|
||||
$ dune promote
|
||||
Promoting _build/default/foo.t/run.t.corrected to foo.t/run.t.
|
||||
$ cat foo.t/run.t
|
||||
$ find . | sort
|
||||
.
|
||||
$ ( cd _build/default/foo.t && find . | sort )
|
||||
.
|
||||
./run.t
|
||||
Loading…
Add table
Add a link
Reference in a new issue