Testing `#use` directives

Dear all,

in our CI, we try to test that our debug / toplevel script files do work correctly. For example these are used to install printers, define utility functions, etc… However, we hadn’t found a reliable way to check for #use "foo";; erroring. Is there a way to do that?

[Note that in the long term we would like to move to more automated support for installing printers, such as supported by utop, also note that in trunk the toplevel seems to be more strict]

Thanks!

I don’t think so. There are a few issues about this in the OCaml bug tracker:


The issue tracking this here https://github.com/ocaml/ocaml/issues/7770

2 Likes