12. Nested tests
Certain tests need to be compiled once but executed several times, each time with different command-line options.
Although no concrete example has been migrated so far, ocamltest supports the following construct (inspired by org-mode's syntax) to compile a program once and then run it three times successively with arguments a, b and c:
(* TEST
* compile-bytecode-with-bytecode-compiler
** execute
arguments = "a"
** execute
arguments = "b"
** execute
arguments = "c"
*)
(It may be necessary to specify more variables if, e.g., the reference output changes from one execution to another.)