This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
|||
We test the (select) field of the (libraries) field of the test stanza.
|
||||
|
||||
$ cat > dune-project <<EOF
|
||||
> (lang dune 3.11)
|
||||
> EOF
|
||||
|
||||
$ cat > dune <<EOF
|
||||
> (test
|
||||
> (name test)
|
||||
> (modules test)
|
||||
> (libraries
|
||||
> (select test.ml from
|
||||
> (unix -> test.unix.ml)
|
||||
> (!unix -> test.nounix.ml))))
|
||||
> EOF
|
||||
|
||||
$ cat > test.unix.ml <<EOF
|
||||
> let () = print_endline "Test: Unix was found!"
|
||||
> EOF
|
||||
$ cat > test.nounix.ml <<EOF
|
||||
> let () = print_endline "Test: Unix was not found!"
|
||||
> EOF
|
||||
|
||||
The select field does not pick up the module sources for the test stanza
|
||||
correctly. This is a bug.
|
||||
|
||||
$ dune runtest
|
||||
Test: Unix was found!
|
||||
Loading…
Add table
Add a link
Reference in a new issue