4. Test Resources

4.1. TempDirectoryResource

An instance of this resource creates a temporary directory during setup, and deletes it during cleanup. The full path to the directory is available to tests via a context property.

dir_path_property (text field)

The name of the context property which is set to the path to the temporary directory.

4.2. CompilerTable

A CompilerTable resource creates a set of compiler objects according to context variables. These compiler objects are then made available to test instances through the compilers context variable that maps language names to compiler objects.

The context variable CompilerTable.languages should be a whitespace-separated list of programming language names. Then, for each language <lang>, the following variables are looked up and used for the creation of compiler objects:

CompilerTable.<lang>_kind (text field)

The kind of compiler (e.g., "GCC" or "EDG").

CompilerTable.<lang>_path (text field)

The path to the compiler.

CompilerTable.<lang>_options (text field)

A whitespace-separated list of command-line options to provide to the compiler.