summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-12-23 19:34:04 +0100
committerGitHub <noreply@github.com>2021-12-23 10:34:04 -0800
commit4381cb5957f71e36ce5175413084c3c3fa56b7dc (patch)
tree4b81ea5d750f3d7fdb95c6f0cbdfb4971f9cc3af /share
parent74d64fd61a0c83b326449da13dfd9453a5b7d894 (diff)
downloadspack-4381cb5957f71e36ce5175413084c3c3fa56b7dc.tar.gz
spack-4381cb5957f71e36ce5175413084c3c3fa56b7dc.tar.bz2
spack-4381cb5957f71e36ce5175413084c3c3fa56b7dc.tar.xz
spack-4381cb5957f71e36ce5175413084c3c3fa56b7dc.zip
New subcommand: spack bootstrap status (#28004)
This command pokes the environment, Python interpreter and bootstrap store to check if dependencies needed by Spack are available. If any are missing, it shows a comprehensible message.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-unit-tests1
-rwxr-xr-xshare/spack/spack-completion.bash6
2 files changed, 6 insertions, 1 deletions
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests
index b71103ea31..a0c6e402c6 100755
--- a/share/spack/qa/run-unit-tests
+++ b/share/spack/qa/run-unit-tests
@@ -38,6 +38,7 @@ bin/spack help -a
# Profile and print top 20 lines for a simple call to spack spec
spack -p --lines 20 spec mpileaks%gcc ^dyninst@10.0.0 ^elfutils@0.170
+$coverage_run $(which spack) bootstrap status --dev --optional
#-----------------------------------------------------------
# Run unit tests with code coverage
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index acd8867bd9..753767a3de 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -434,10 +434,14 @@ _spack_bootstrap() {
then
SPACK_COMPREPLY="-h --help"
else
- SPACK_COMPREPLY="enable disable reset root list trust untrust"
+ SPACK_COMPREPLY="status enable disable reset root list trust untrust"
fi
}
+_spack_bootstrap_status() {
+ SPACK_COMPREPLY="-h --help --optional --dev"
+}
+
_spack_bootstrap_enable() {
SPACK_COMPREPLY="-h --help --scope"
}