This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,48 @@
|
|||
Cram tests inside (include_subdirs unqualified)
|
||||
|
||||
$ cat >dune-project <<EOF
|
||||
> (lang dune 3.11)
|
||||
> EOF
|
||||
|
||||
We have a file cram test inside a subdirectory and a directory cram test. When
|
||||
the (include_subdirs unqualified) is not present, both tests fail as expected.
|
||||
|
||||
$ mkdir sub/
|
||||
$ cat >sub/foo.t <<EOF
|
||||
> $ echo foo
|
||||
> EOF
|
||||
|
||||
$ mkdir bar.t
|
||||
$ cat > bar.t/run.t <<EOF
|
||||
> $ echo bar
|
||||
> EOF
|
||||
|
||||
$ dune runtest
|
||||
File "bar.t/run.t", line 1, characters 0-0:
|
||||
Error: Files _build/default/bar.t/run.t and
|
||||
_build/default/bar.t/run.t.corrected differ.
|
||||
File "sub/foo.t", line 1, characters 0-0:
|
||||
Error: Files _build/default/sub/foo.t and _build/default/sub/foo.t.corrected
|
||||
differ.
|
||||
[1]
|
||||
|
||||
Previously, adding (include_subdirs unqualified) highlights two issues:
|
||||
|
||||
1. The file cram test in the subdirectory is no longer being run.
|
||||
2. Multiple rules are being generated for the directory test.
|
||||
|
||||
These have now been fixed, and both cram tests work correctly with
|
||||
(include_subdirs unqualified) in tandem.
|
||||
|
||||
$ cat >dune <<EOF
|
||||
> (include_subdirs unqualified)
|
||||
> EOF
|
||||
|
||||
$ dune runtest
|
||||
File "bar.t/run.t", line 1, characters 0-0:
|
||||
Error: Files _build/default/bar.t/run.t and
|
||||
_build/default/bar.t/run.t.corrected differ.
|
||||
File "sub/foo.t", line 1, characters 0-0:
|
||||
Error: Files _build/default/sub/foo.t and _build/default/sub/foo.t.corrected
|
||||
differ.
|
||||
[1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue