Ensure that tests are optional (#3922)

This commit is contained in:
Adam J. Stewart
2017-04-21 12:15:39 -05:00
committed by GitHub
parent 5250e8ee89
commit 46d0ca9d01
13 changed files with 24 additions and 14 deletions

View File

@@ -111,7 +111,8 @@ def install(self, spec, prefix):
"-L%s" % spec["hdf5"].prefix.lib, "-lhdf5")
_install_shlib("libblosc_plugin", ".libs", prefix.lib)
self.check_install(spec)
if self.run_tests:
self.check_install(spec)
def check_install(self, spec):
"Build and run a small program to test the installed HDF5 Blosc plugin"