summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-07-30 20:25:14 -0700
committerGitHub <noreply@github.com>2016-07-30 20:25:14 -0700
commit500218df8026de1ad413664e04e4ab4c75faa8ea (patch)
tree678cfa60ae6df3d886c9c1ba5490dcfd46279fec /share
parent173a16b38accf3db9f9b56741fc0b9e9ae27cf6f (diff)
parentf4422dc165b37b8dbad0af31dd0a3d24671a1e49 (diff)
downloadspack-500218df8026de1ad413664e04e4ab4c75faa8ea.tar.gz
spack-500218df8026de1ad413664e04e4ab4c75faa8ea.tar.bz2
spack-500218df8026de1ad413664e04e4ab4c75faa8ea.tar.xz
spack-500218df8026de1ad413664e04e4ab4c75faa8ea.zip
Merge pull request #1384 from epfl-scitas/qa/drop_flake8_python26
qa : no flake8 on python 2.6, coveralls only on python 2.7
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-unit-tests20
1 files changed, 20 insertions, 0 deletions
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests
new file mode 100755
index 0000000000..33fb1bfae2
--- /dev/null
+++ b/share/spack/qa/run-unit-tests
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+#
+# This script runs Spack unit tests.
+#
+# It should be executed from the top-level directory of the repo,
+# e.g.:
+#
+# share/spack/qa/run-unit-tests
+#
+# To run it, you'll need to have the Python coverage installed locally.
+#
+
+# Regular spack setup and tests
+. ./share/spack/setup-env.sh
+spack compilers
+spack config get compilers
+spack install -v libdwarf
+
+# Run unit tests with code coverage
+coverage run bin/spack test