Skip to content

Commit

Permalink
prmon: better testing, fix checksums (spack#28672)
Browse files Browse the repository at this point in the history
* prmon: make sure integration tests do not run in parallel

Some integration tests fail if not run on an otherwise idle machine.

* prmon: run unittests based on googletest

* prmon: fix checksums
  • Loading branch information
vvolkl authored Jan 29, 2022
1 parent aece700 commit 813a0d9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions var/spack/repos/builtin/packages/prmon/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Prmon(CMakePackage):

version("main", branch="main")
version('3.0.1', sha256='c4eea2849e52e501d42f8e3f837e3f250691f7e7912b7503d6ca0a0e417ea474')
version('3.0.0', sha256='bf6b27caa61d1fd9d1948b2a0595fa820ffbc58c1a423a7608f267392683f60f')
version('2.2.1', sha256='d3ff37d5b3d246bd263cb538ad409d026a69742a029eea2f9fe1decebb3e7e78')
version('3.0.0', sha256='fd6f4e3a95e055d265fbbaba08d680826cb4770eb8830cc987898d6504ac7474')
version('2.2.1', sha256='7c95538a0ddcfc71b5c581979a5bb298873fdf16966fd6951aaa2b2639b08319')
version('2.2.0', sha256='7b3b887c679279f0e666e8c8c58ca1a22a328b8b94ecff09e61795a6a83e8ce5')
version('2.1.1', sha256='302d7a3fc5a403143d794e16dca1949e3d13e46cf9857dfaad4e374f4a468df2')
version('1.1.1', sha256='a6e6486bbc4d6cddf73affe07d9ff7948a424c9a02b3cdd5bbe5c6cafa06af2e')
Expand All @@ -31,3 +31,16 @@ class Prmon(CMakePackage):
depends_on('cmake@3.3:', type="build")
depends_on('py-matplotlib', type="run", when="+plot")
depends_on('spdlog', when='@3.0.0:')

def cmake_args(self):
args = [
# googletest is fetched and built on the fly
self.define("BUILD_GTESTS", self.run_tests),
]
return args

def check(self):
# some tests expect to run on an otherwise idle machine
# so we need to make sure that they are not running in parallel
with working_dir(self.build_directory):
ctest(parallel=False)

0 comments on commit 813a0d9

Please sign in to comment.