Add package mpi-test-suite (#39487)

This commit is contained in:
Julien Cortial 2023-08-24 03:18:58 +02:00 committed by GitHub
parent 43854fc2ec
commit d058c1d649
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View file

@ -36,3 +36,6 @@ def url_for_version(self, version):
else:
suffix = "gz"
return url.format(version, suffix)
def setup_dependent_package(self, module, dependent_spec):
setattr(module, "gengetopt", Executable(join_path(self.prefix.bin, "gengetopt")))

View file

@ -0,0 +1,42 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class MpiTestSuite(AutotoolsPackage):
"""The MPI-testsuite was initially developed for the use with PACX-MPI and has been extended
within the Open MPI project.
The main focus is on:
- High degree of code coverage through combinations of tests.
- Easy maintainability,
- Easy integration of new tests,
- Rich underlying functionality for flexible tests (convenience functions for datatypes, comms
and checking),
- Only a single binary (for single, since expensive MPI_Init/MPI_Finalize) to make it as quick
and easy as possible to run automatically
"""
homepage = "https://github.com/open-mpi/mpi-test-suite"
url = "https://github.com/open-mpi/mpi-test-suite/archive/refs/tags/v1.1.1.tar.gz"
maintainers("jcortial-safran")
version("1.1.1", sha256="4cb7bdbdafa0855dab96d996f863b5d364c935e678c057ada3c8869c3666e926")
depends_on("autoconf", type="build")
depends_on("automake@1.14:", type="build")
depends_on("libtool", type="build")
depends_on("m4", type="build")
depends_on("gengetopt", type="build")
depends_on("mpi")
def autoreconf(self, spec, prefix):
autoreconf("--install", "--verbose", "--force")
def configure_args(self):
args = ["CC=%s" % self.spec["mpi"].mpicc]
return args