Esc

output_directory

procedureextensionsince 0.36.1Source
  • macOS: output_directory works on macOS
  • Linux: output_directory works on Linux
  • Windows: output_directory works on Windows
  • Wasm: output_directory works on Wasm

The directory the repository's tools write generated test and benchmark data to, which tests and benches read it from: JACKET_OUTPUT_DIR when that is set and not empty, else the target folder of the checkout the standard library is in. A relative JACKET_OUTPUT_DIR is below that checkout, not the working directory, as the repository's tools and jacket test read it.

Signature

output_directory :: () -> string

The string is in temporary storage. Use it to find data that a jacket test or jacket bench setup builds, instead of spelling target in the path, which a relocated output directory breaks.

Example
assert(output_directory().count > 0);

See also