summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJulien Cortial <101571984+jcortial-safran@users.noreply.github.com>2023-08-24 03:18:58 +0200
committerGitHub <noreply@github.com>2023-08-24 03:18:58 +0200
commitd058c1d649ff09351d02ee9c48d8c023c898fe04 (patch)
treeace2daea843c958f7d1066cd46bc578cbeecee8a /var
parent43854fc2ec9826331c82e65ebf59fed986341805 (diff)
downloadspack-d058c1d649ff09351d02ee9c48d8c023c898fe04.tar.gz
spack-d058c1d649ff09351d02ee9c48d8c023c898fe04.tar.bz2
spack-d058c1d649ff09351d02ee9c48d8c023c898fe04.tar.xz
spack-d058c1d649ff09351d02ee9c48d8c023c898fe04.zip
Add package mpi-test-suite (#39487)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gengetopt/package.py3
-rw-r--r--var/spack/repos/builtin/packages/mpi-test-suite/package.py42
2 files changed, 45 insertions, 0 deletions
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 @@ class Gengetopt(AutotoolsPackage):
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