diff --git a/var/spack/repos/builtin/packages/gengetopt/package.py b/var/spack/repos/builtin/packages/gengetopt/package.py index ceff92c528..255f330846 100644 --- a/var/spack/repos/builtin/packages/gengetopt/package.py +++ b/var/spack/repos/builtin/packages/gengetopt/package.py @@ -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"))) diff --git a/var/spack/repos/builtin/packages/mpi-test-suite/package.py b/var/spack/repos/builtin/packages/mpi-test-suite/package.py new file mode 100644 index 0000000000..239650655a --- /dev/null +++ b/var/spack/repos/builtin/packages/mpi-test-suite/package.py @@ -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