mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/select-in-test.t

29 lines
644 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
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!