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.
This commit is contained in:

committed by
Adam J. Stewart

parent
20a89ca326
commit
add7f2b09a
@@ -256,8 +256,10 @@ def check(self):
|
||||
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)
|
||||
|
Reference in New Issue
Block a user