mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/utop/github3188.t
2025-11-11 02:07:51 +01:00

15 lines
457 B
Perl

This test makes sure that the utop subcommand does not load optional libraries.
$ mkdir testutop
$ cat <<EOF > testutop/dune
> (library
> (name testutop)
> (optional)
> (libraries does_not_exist))
> EOF
$ echo 'let run () = print_endline "this will never run"' > testutop/testutop.ml
$ echo "(lang dune 2.0)" > dune-project
$ echo 'let () = print_endline "No Error"' > init_test.ml
$ dune utop testutop -- init_test.ml
No Error