15 lines
457 B
Perl
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
|