docs/packaging guide: Reference test stage directory (#23707)
This commit is contained in:
parent
ce7516f25f
commit
5bd42d1b31
@ -4192,9 +4192,11 @@ outputs can be added for use in these tests.
|
|||||||
Configuring the test stage directory
|
Configuring the test stage directory
|
||||||
""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
The default stand-alone test stage directory, ``~/.spack/test``, is
|
Stand-alone tests rely on a stage directory for building, running,
|
||||||
defined in :ref:`etc/spack/defaults/config.yaml <config-yaml>`.
|
and tracking results.
|
||||||
You can change the location in the high-level ``config`` by adding
|
The default directory, ``~/.spack/test``, is defined in
|
||||||
|
:ref:`etc/spack/defaults/config.yaml <config-yaml>`.
|
||||||
|
You can configure the location in the high-level ``config`` by adding
|
||||||
or changing the ``test_stage`` path in the appropriate ``config.yaml``
|
or changing the ``test_stage`` path in the appropriate ``config.yaml``
|
||||||
file such that:
|
file such that:
|
||||||
|
|
||||||
@ -4203,6 +4205,16 @@ file such that:
|
|||||||
config:
|
config:
|
||||||
test_stage: /path/to/stage
|
test_stage: /path/to/stage
|
||||||
|
|
||||||
|
The package can access this path **during test processing** using
|
||||||
|
`self.test_suite.stage`.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
The test stage path is established for the entire suite. That
|
||||||
|
means it is the root directory for all specs being installed
|
||||||
|
with the same `spack test run` command. Each spec gets its
|
||||||
|
own stage subdirectory.
|
||||||
|
|
||||||
"""""""""""""""""""""""""
|
"""""""""""""""""""""""""
|
||||||
Enabling test compilation
|
Enabling test compilation
|
||||||
"""""""""""""""""""""""""
|
"""""""""""""""""""""""""
|
||||||
|
Loading…
Reference in New Issue
Block a user