next|prev|index
7. Available built-in variables
At the moment, they can contain only strings.
Other examples of variables that can be used in tests:
- flags: options for both native and byte-code compilers
- bcflags (resp. ncflags): options specific to the byte-code (resp. native) compiler
- modules: name of other modules in the test (ocamltest knows how to deal with .ml, .mli and .c files and will ultimately know how to deal with .mll, .mly and .cmm files, at least)
- files: other files to symlink/copy to build directory
- libraries: which libraries to use at link time
- ${COMPILER}_exit_status: expected exit status of ${COMPILER}, when non-zero (useful for tests that are expected to fail)
- script: external script to run to perform the test
For a complete list, see ocamltest/builtin_variables.mli.