This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue