@@ -25,28 +25,31 @@ project.
25
25
Two Ways of Organizing Suites
26
26
-----------------------------
27
27
28
- All test suites reside in the `suites ` directory under one of the user's configuration directories.
29
- There are two ways of organizing these suites, depending on the user's needs and the complexity of
30
- the suite:
28
+ All test suites reside in the `` suites `` directory under one of the user's configuration
29
+ directories. There are two ways of organizing these suites, depending on the user's needs and the
30
+ complexity of the suite:
31
31
32
- 1. A simple suite may consist of a single suite config, `<suite_name>.yaml `, placed directly in the
33
- `suites ` directory.
32
+ 1. A simple suite may consist of a single suite config, ``<suite_name>.yaml ``, placed directly in
33
+ the ``suites `` directory. This method is useful for tests that do not require source code or other
34
+ files.
34
35
35
36
2. Suites consisting of multiple files, including additional configs and test source, should be
36
- placed under a subdirectory of `suites `, `suites/<suite_name>/ `.
37
+ placed under a subdirectory of `` suites `` , `` suites/<suite_name>/ ` `.
37
38
38
39
In the latter case, arbitrary files may be placed in the subdirectory, but it **must ** contain a
39
- suite config named `suite.yaml `. In both cases, the suite config follows the format described in
40
- the previous section. Note the difference in file name between the two organization methods: in the
40
+ suite config named `` suite.yaml ` `. In both cases, the suite config follows the format described in
41
+ the Test Format section. Note the difference in file name between the two organization methods: in the
41
42
first, the name of the file is the name of the suite; in the second, the file name is the generic
42
- `suite.yaml `, and Pavilion derives the suite name from its containing directory.
43
+ `` suite.yaml ` `, and Pavilion derives the suite name from its containing directory.
43
44
44
45
.. admonition :: Deprecation Warning
45
46
:class: warning
46
47
47
- Pavilion 2.4 uses the `tests ` and `test_src ` subdirectories to store suite configs and test
48
- source code respectively. As of the latest release, these directories are deprecated in favor
49
- of the single `suites ` directory, and support for them will eventually be removed.
48
+ Pavilion previously used the ``tests `` and ``test_src `` subdirectories to store suite configs
49
+ and test source code. These directories are now deprecated in favor of the single
50
+ ``suites `` directory, and support for them is planned for eventual removal. While the older
51
+ organization structure continues to be supported, users should plan on reorganizing existing
52
+ tests using the new structure.
50
53
51
54
.. _tests.suites.auxiliary_configs :
52
55
@@ -58,15 +61,15 @@ respective subdirectories under the user's config directory and must be named wi
58
61
their associated host, operating system, or mode.
59
62
60
63
When using the second, suite directory method of organization, auxiliary configs must be placed
61
- in the suite directory alongside the suite config and must be named `hosts.yaml `, `os.yaml `, or
62
- `modes.yaml ` according to their config type. **Note that these file names are plural **. These
63
- configs override configs placed in the `hosts `, `os `, and `modes ` subdirectories under the
64
+ in the suite directory alongside the suite config and must be named `` hosts.yaml `` , `` os.yaml ` `, or
65
+ `` modes.yaml ` ` according to their config type. **Note that these file names are plural **. These
66
+ configs override configs placed in the `` hosts `` , `` os `` , and `` modes ` ` subdirectories under the
64
67
configuration directories.
65
68
66
69
The suite directory method of organization allows for more flexibility in these auxiliary configs.
67
70
Specifically, multiple hosts, OSs, or modes may be specified in a config file. A single host, OS,
68
71
or mode can be selected on test invocation by passing the name of the host, OS, or mode to the
69
- appropriate flag (either `-H `, `-o `, or `-m `). The following is an example of a host file
72
+ appropriate flag (either `` -H `` , `` -o `` , or `` -m ` `). The following is an example of a host file
70
73
containing multiple host entries (OS and mode formats are analogous):
71
74
72
75
.. code-block :: yaml
@@ -81,6 +84,6 @@ containing multiple host entries (OS and mode formats are analogous):
81
84
variables :
82
85
foo : bar
83
86
84
- Note that this format differs from the format used by configs located in the `hosts `, `os `, and
85
- `modes ` directories; in this case, individual configs within each config file derive their names
87
+ Note that this format differs from the format used by configs located in the `` hosts `` , `` os ` `, and
88
+ `` modes ` ` directories; in this case, individual configs within each config file derive their names
86
89
from top-level keys rather than from the name of the config file.
0 commit comments