summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-06-16 11:59:31 +0800
committerGitHub <noreply@github.com>2020-06-16 05:59:31 +0200
commit70be1038fdc70c36ee0b92e8580d0768eb9e177e (patch)
tree545571f65fdfeb881745b2ec536fbd8409966742
parent32558525f6324b75f30cdc415ef0b996b47bed76 (diff)
downloadspack-70be1038fdc70c36ee0b92e8580d0768eb9e177e.tar.gz
spack-70be1038fdc70c36ee0b92e8580d0768eb9e177e.tar.bz2
spack-70be1038fdc70c36ee0b92e8580d0768eb9e177e.tar.xz
spack-70be1038fdc70c36ee0b92e8580d0768eb9e177e.zip
memtester: added new package at v4.3.0 (#17097)
-rw-r--r--var/spack/repos/builtin/packages/memtester/package.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/memtester/package.py b/var/spack/repos/builtin/packages/memtester/package.py
new file mode 100644
index 0000000000..7821d1b15d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/memtester/package.py
@@ -0,0 +1,24 @@
+# Copyright 2013-2020 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 import *
+
+
+class Memtester(MakefilePackage):
+ """A userspace utility for testing the memory subsystem for faults."""
+
+ homepage = "http://pyropus.ca/software/memtester/"
+ url = "http://pyropus.ca/software/memtester/old-versions/memtester-4.3.0.tar.gz"
+
+ version('4.3.0', sha256='f9dfe2fd737c38fad6535bbab327da9a21f7ce4ea6f18c7b3339adef6bf5fd88')
+ version('4.2.2', sha256='a494569d58d642c796332a1b7f3b4b86845b52da66c15c96fbeecd74e48dae8e')
+ version('4.2.1', sha256='3433e1c757e56457610f5a97bf1a2d612c609290eba5183dd273e070134a21d2')
+ version('4.2.0', sha256='cb9d5437a0c429d18500bddef93084bb2fead0d5ccfedfd00ee28ff118e52695')
+ version('4.1.3', sha256='ac56f0b6d6d6e58bcf2a3fa7f2c9b29894f5177871f21115a1906c535106acf6')
+
+ def edit(self, spec, prefix):
+ makefile = FileFilter("Makefile")
+ makefile.filter("INSTALLPATH\t= /usr/local",
+ "INSTALLPATH\t= {0}".format(self.prefix))