Use self.run_tests for make check
This commit is contained in:
		| @@ -118,5 +118,6 @@ def install(self, spec, prefix): | |||||||
|         bootstrap(*options) |         bootstrap(*options) | ||||||
|  |  | ||||||
|         make() |         make() | ||||||
|         # make('test')  # some tests fail, takes forever |         if self.run_tests: | ||||||
|  |             make('test')  # some tests fail, takes forever | ||||||
|         make('install') |         make('install') | ||||||
|   | |||||||
| @@ -38,5 +38,6 @@ def install(self, spec, prefix): | |||||||
|         configure('--prefix={0}'.format(prefix)) |         configure('--prefix={0}'.format(prefix)) | ||||||
|  |  | ||||||
|         make() |         make() | ||||||
|  |         if self.run_tests: | ||||||
|             make('check') |             make('check') | ||||||
|         make('install') |         make('install') | ||||||
|   | |||||||
| @@ -44,5 +44,6 @@ def install(self, spec, prefix): | |||||||
|             cmake('..', '-DBUILD_SHARED_LIBS=ON', *std_cmake_args) |             cmake('..', '-DBUILD_SHARED_LIBS=ON', *std_cmake_args) | ||||||
|  |  | ||||||
|             make() |             make() | ||||||
|             # make('test')  # Python needed to run tests |             if self.run_tests: | ||||||
|  |                 make('test')  # Python needed to run tests | ||||||
|             make('install') |             make('install') | ||||||
|   | |||||||
| @@ -52,5 +52,6 @@ def install(self, spec, prefix): | |||||||
|         configure('--prefix={0}'.format(prefix)) |         configure('--prefix={0}'.format(prefix)) | ||||||
|  |  | ||||||
|         make() |         make() | ||||||
|         # make('check')  # cannot build test suite with Intel compilers |         if self.run_tests: | ||||||
|  |             make('check')  # cannot build test suite with Intel compilers | ||||||
|         make('install') |         make('install') | ||||||
|   | |||||||
| @@ -55,5 +55,6 @@ def install(self, spec, prefix): | |||||||
|         configure('--prefix={0}'.format(prefix), *python_args) |         configure('--prefix={0}'.format(prefix), *python_args) | ||||||
|  |  | ||||||
|         make() |         make() | ||||||
|  |         if self.run_tests: | ||||||
|             make('check') |             make('check') | ||||||
|         make('install') |         make('install') | ||||||
|   | |||||||
| @@ -40,5 +40,6 @@ class Lz4(Package): | |||||||
|  |  | ||||||
|     def install(self, spec, prefix): |     def install(self, spec, prefix): | ||||||
|         make() |         make() | ||||||
|         # make('test')  # requires valgrind to be installed |         if self.run_tests: | ||||||
|  |             make('test')  # requires valgrind to be installed | ||||||
|         make('install', 'PREFIX={0}'.format(prefix)) |         make('install', 'PREFIX={0}'.format(prefix)) | ||||||
|   | |||||||
| @@ -44,5 +44,6 @@ def install(self, spec, prefix): | |||||||
|         configure('--prefix={0}'.format(prefix)) |         configure('--prefix={0}'.format(prefix)) | ||||||
|  |  | ||||||
|         make() |         make() | ||||||
|         make('check') |         if self.run_tests: | ||||||
|  |             make('check')  # one of the tests fails for me | ||||||
|         make('install') |         make('install') | ||||||
|   | |||||||
| @@ -45,6 +45,7 @@ def install(self, spec, prefix): | |||||||
|         ] |         ] | ||||||
|         configure(*configure_args) |         configure(*configure_args) | ||||||
|         make() |         make() | ||||||
|  |         if self.run_tests: | ||||||
|             make('check') |             make('check') | ||||||
|             make('test')  # more exhaustive test |             make('test')  # more exhaustive test | ||||||
|         make('install') |         make('install') | ||||||
|   | |||||||
| @@ -41,5 +41,6 @@ def install(self, spec, prefix): | |||||||
|         configure('--prefix={0}'.format(prefix)) |         configure('--prefix={0}'.format(prefix)) | ||||||
|  |  | ||||||
|         make() |         make() | ||||||
|  |         if self.run_tests: | ||||||
|             make('check') |             make('check') | ||||||
|         make('install') |         make('install') | ||||||
|   | |||||||
| @@ -40,5 +40,6 @@ def install(self, spec, prefix): | |||||||
|         configure('--prefix={0}'.format(prefix)) |         configure('--prefix={0}'.format(prefix)) | ||||||
|  |  | ||||||
|         make() |         make() | ||||||
|  |         if self.run_tests: | ||||||
|             make('check') |             make('check') | ||||||
|         make('install') |         make('install') | ||||||
|   | |||||||
| @@ -38,5 +38,6 @@ def install(self, spec, prefix): | |||||||
|         configure('--prefix={0}'.format(prefix)) |         configure('--prefix={0}'.format(prefix)) | ||||||
|  |  | ||||||
|         make() |         make() | ||||||
|  |         if self.run_tests: | ||||||
|             make('test') |             make('test') | ||||||
|         make('install') |         make('install') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Adam J. Stewart
					Adam J. Stewart