diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/oommf/package.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/oommf/package.py b/var/spack/repos/builtin/packages/oommf/package.py index 4913d51428..84711d37dd 100644 --- a/var/spack/repos/builtin/packages/oommf/package.py +++ b/var/spack/repos/builtin/packages/oommf/package.py @@ -39,6 +39,13 @@ class Oommf(Package): # default URL for versions url = "https://github.com/fangohr/oommf/archive/refs/tags/20a1_20180930_ext.tar.gz" + #: post-install phase methods used to check the installation + install_time_test_callbacks = [ + "check_install_version", + "check_install_platform", + "check_install_stdprob3", + ] + maintainers("fangohr") version( @@ -220,15 +227,12 @@ class Oommf(Package): print("output received from oommf is %s" % output) - @run_after("install") def check_install_version(self): self._check_install_oommf_command(["+version"]) - @run_after("install") def check_install_platform(self): self._check_install_oommf_command(["+platform"]) - @run_after("install") def check_install_stdprob3(self): oommf_examples = join_path(self.spec.prefix.usr.bin, "oommf/app/oxs/examples") task = join_path(oommf_examples, "stdprob3.mif") |