summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2021-05-18 17:56:38 -0700
committerGitHub <noreply@github.com>2021-05-18 17:56:38 -0700
commit5bd42d1b31b3e6f3961e7ff808763384eca9a3ea (patch)
treeaf43f99d5727b079f00ec05a3dbe729c16833f77 /lib
parentce7516f25fe8748da8778acb110aab26a383c5f4 (diff)
downloadspack-5bd42d1b31b3e6f3961e7ff808763384eca9a3ea.tar.gz
spack-5bd42d1b31b3e6f3961e7ff808763384eca9a3ea.tar.bz2
spack-5bd42d1b31b3e6f3961e7ff808763384eca9a3ea.tar.xz
spack-5bd42d1b31b3e6f3961e7ff808763384eca9a3ea.zip
docs/packaging guide: Reference test stage directory (#23707)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/packaging_guide.rst18
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst
index 8eab1afa68..24666fc44a 100644
--- a/lib/spack/docs/packaging_guide.rst
+++ b/lib/spack/docs/packaging_guide.rst
@@ -4192,9 +4192,11 @@ outputs can be added for use in these tests.
Configuring the test stage directory
""""""""""""""""""""""""""""""""""""
-The default stand-alone test stage directory, ``~/.spack/test``, is
-defined in :ref:`etc/spack/defaults/config.yaml <config-yaml>`.
-You can change the location in the high-level ``config`` by adding
+Stand-alone tests rely on a stage directory for building, running,
+and tracking results.
+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``
file such that:
@@ -4203,6 +4205,16 @@ file such that:
config:
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
"""""""""""""""""""""""""