This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,15 @@
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