26.3 Project Attributes for gnattest
Most of the command-line options can also be passed to the tool by adding
special attributes to the project file. Those attributes should be put in
package gnattest. Here is the list of attributes:
- Tests_Root
is used to select the same output mode as with the –tests-root option.
This attribute cannot be used together with Subdir or Tests_Dir.
- Subdir
is used to select the same output mode as with the –subdir option.
This attribute cannot be used together with Tests_Root or Tests_Dir.
- Tests_Dir
is used to select the same output mode as with the –tests-dir option.
This attribute cannot be used together with Subdir or Tests_Root.
- Harness_Dir
is used to specify the directory in which to place harness packages and project
file for the test driver, otherwise specified by –harness-dir.
- Additional_Tests
is used to specify the project file, otherwise given by
–additional-tests switch.
- Skeletons_Default
is used to specify the default behaviour of test skeletons, otherwise
specified by –skeleton-default option. The value of this attribute
should be either "pass" or "fail".
Each of those attributes can be overridden from the command line if needed.
Other gnattest switches can also be passed via the project
file as an attribute list called GNATtest_Switches.