summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQian Jianhua <qianjh@fujitsu.com>2022-06-14 02:26:54 +0800
committerGitHub <noreply@github.com>2022-06-13 11:26:54 -0700
commit874b713edf5caf8565b2f7d624520677a0ca6832 (patch)
treed9157a17037128d5d8bdd8173eac2ce1eea64950
parent3c0a98c5ab791758365cfd3b034127a64faa03bc (diff)
downloadspack-874b713edf5caf8565b2f7d624520677a0ca6832.tar.gz
spack-874b713edf5caf8565b2f7d624520677a0ca6832.tar.bz2
spack-874b713edf5caf8565b2f7d624520677a0ca6832.tar.xz
spack-874b713edf5caf8565b2f7d624520677a0ca6832.zip
netpbm: run custom test command (#31072)
* netpbm: run custom test command * fix styles * change method name
-rw-r--r--var/spack/repos/builtin/packages/netpbm/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/netpbm/package.py b/var/spack/repos/builtin/packages/netpbm/package.py
index 62da24b29a..f9710b8534 100644
--- a/var/spack/repos/builtin/packages/netpbm/package.py
+++ b/var/spack/repos/builtin/packages/netpbm/package.py
@@ -170,6 +170,15 @@ class Netpbm(MakefilePackage):
def build(self, spec, prefix):
make()
+ if self.run_tests:
+ # Don't run the default command 'make check' for test
+ self.build_time_test_callbacks = []
+
+ @run_after('build')
+ @on_package_attributes(run_tests=True)
+ def make_check_tree(self):
+ # Run custom test command 'make check-tree'
+ make('check-tree')
def install(self, spec, prefix):
bdir = join_path(self.build_directory, 'build')