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 Improved API for toplevel printers · Issue #7770 · ocaml/ocaml · GitHub

2 Likes