diff options
author | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2024-05-22 01:04:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-22 10:04:27 +0200 |
commit | 71f542a95126468af306fc9eb658a59ad92aef39 (patch) | |
tree | 9ba5a45c7ab501d1f113ed21836ee1e7675063f3 | |
parent | 322bd487880af0ee54577a3ea41b7867ed722be0 (diff) | |
download | spack-71f542a95126468af306fc9eb658a59ad92aef39.tar.gz spack-71f542a95126468af306fc9eb658a59ad92aef39.tar.bz2 spack-71f542a95126468af306fc9eb658a59ad92aef39.tar.xz spack-71f542a95126468af306fc9eb658a59ad92aef39.zip |
kcov: convert to new stand-alone test process (tested with latest version) (#44309)
-rw-r--r-- | var/spack/repos/builtin/packages/kcov/package.py | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/kcov/package.py b/var/spack/repos/builtin/packages/kcov/package.py index f0cfb30ec9..b01ba7e25e 100644 --- a/var/spack/repos/builtin/packages/kcov/package.py +++ b/var/spack/repos/builtin/packages/kcov/package.py @@ -12,11 +12,17 @@ class Kcov(CMakePackage): compilation options""" homepage = "https://simonkagstrom.github.io/kcov/index.html" - url = "https://github.com/SimonKagstrom/kcov/archive/38.tar.gz" + url = "https://github.com/SimonKagstrom/kcov/archive/refs/tags/v42.tar.gz" license("GPL-2.0-or-later") - version("38", sha256="b37af60d81a9b1e3b140f9473bdcb7975af12040feb24cc666f9bb2bb0be68b4") + version("42", sha256="2c47d75397af248bc387f60cdd79180763e1f88f3dd71c94bb52478f8e74a1f8") + version( + "38", + sha256="b37af60d81a9b1e3b140f9473bdcb7975af12040feb24cc666f9bb2bb0be68b4", + url="https://github.com/SimonKagstrom/kcov/archive/38.tar.gz", + deprecated=True, + ) depends_on("cmake@2.8.4:", type="build") depends_on("zlib-api") @@ -29,9 +35,13 @@ class Kcov(CMakePackage): # https://github.com/Homebrew/homebrew-core/blob/master/Formula/kcov.rb return ["-DSPECIFY_RPATH=ON"] - @run_after("install") - @on_package_attributes(run_tests=True) - def test_install(self): - # The help message exits with an exit code of 1 + def test_kcov_help(self): + """run installed kcov help""" kcov = Executable(self.prefix.bin.kcov) + # The help message exits with an exit code of 1 kcov("-h", ignore_errors=1) + + @run_after("install") + @on_package_attributes(run_tests=True) + def check_install(self): + self.test_kcov_help() |