summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2018-06-04 16:50:02 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2018-06-04 09:50:02 -0500
commitadd7f2b09ac01022976eaabdad117336affb7a52 (patch)
treeca03e6c37a2b0dd9b070a59d87bd6bafb5099c78 /lib
parent20a89ca326712058f3f22621eed725c0f510bee3 (diff)
downloadspack-add7f2b09ac01022976eaabdad117336affb7a52.tar.gz
spack-add7f2b09ac01022976eaabdad117336affb7a52.tar.bz2
spack-add7f2b09ac01022976eaabdad117336affb7a52.tar.xz
spack-add7f2b09ac01022976eaabdad117336affb7a52.zip
pybind11: test functionality (#8304)
* pybind11: test support Add a test functionality to pybind11. * CMake: test also on "make check" Some projects use non-CTest manual targets for tests.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/cmake.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/cmake.py b/lib/spack/spack/build_systems/cmake.py
index c60f649fa5..1592ae4be5 100644
--- a/lib/spack/spack/build_systems/cmake.py
+++ b/lib/spack/spack/build_systems/cmake.py
@@ -256,8 +256,10 @@ class CMakePackage(PackageBase):
with working_dir(self.build_directory):
if self.generator == 'Unix Makefiles':
self._if_make_target_execute('test')
+ self._if_make_target_execute('check')
elif self.generator == 'Ninja':
self._if_ninja_target_execute('test')
+ self._if_ninja_target_execute('check')
# Check that self.prefix is there after installation
run_after('install')(PackageBase.sanity_check_prefix)