summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-unit-tests3
-rwxr-xr-xshare/spack/spack-completion.bash5
2 files changed, 7 insertions, 1 deletions
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests
index 7e300280ff..fe2ec6f54a 100755
--- a/share/spack/qa/run-unit-tests
+++ b/share/spack/qa/run-unit-tests
@@ -20,6 +20,9 @@ cd "$SPACK_ROOT"
# Print compiler information
spack config get compilers
+# Profile and print top 20 lines for a simple call to spack spec
+${coverage_run} bin/spack -p --lines 20 spec mpileaks
+
# Run unit tests with code coverage
${coverage_run} bin/spack test "$@"
${coverage_combine}
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 819dcc06ab..b8d104aca8 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -53,6 +53,9 @@ function _bash_completion_spack {
# For example, `spack -d install []` will call _spack_install
# and `spack compiler add []` will call _spack_compiler_add
local subfunction=$(IFS='_'; echo "_${COMP_WORDS_NO_FLAGS[*]}")
+ # Translate dashes to underscores, as dashes are not permitted in
+ # compatibility mode. See https://github.com/LLNL/spack/pull/4079
+ subfunction=${subfunction//-/_}
# However, the word containing the current cursor position needs to be
# added regardless of whether or not it is a flag. This allows us to
@@ -288,7 +291,7 @@ function _spack_debug {
fi
}
-function _spack_create-db-tarball {
+function _spack_debug_create_db_tarball {
compgen -W "-h --help" -- "$cur"
}