summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndrew W Elble <aweits@rit.edu>2021-04-06 03:07:56 -0400
committerGitHub <noreply@github.com>2021-04-06 09:07:56 +0200
commite5c77232761d895d946ce595e1625639dc56df21 (patch)
tree3fd4f329e3c3ec8ca3722f50f302276e1cae8882 /var
parenteb6f4c740b2532c24de39e3e0b8136bf777728a6 (diff)
downloadspack-e5c77232761d895d946ce595e1625639dc56df21.tar.gz
spack-e5c77232761d895d946ce595e1625639dc56df21.tar.bz2
spack-e5c77232761d895d946ce595e1625639dc56df21.tar.xz
spack-e5c77232761d895d946ce595e1625639dc56df21.zip
stress-ng: new package (#22777)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/stress-ng/package.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/stress-ng/package.py b/var/spack/repos/builtin/packages/stress-ng/package.py
new file mode 100644
index 0000000000..006b722ad8
--- /dev/null
+++ b/var/spack/repos/builtin/packages/stress-ng/package.py
@@ -0,0 +1,46 @@
+# Copyright 2013-2021 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)
+
+
+class StressNg(MakefilePackage):
+ """stress-ng will stress test a computer system in various
+ selectable ways. It was designed to exercise various physical
+ subsystems of a computer as well as the various operating system
+ kernel interfaces."""
+
+ homepage = "https://kernel.ubuntu.com/~cking/stress-ng/"
+ url = "https://kernel.ubuntu.com/~cking/tarballs/stress-ng/stress-ng-0.12.06.tar.xz"
+
+ version('0.12.06', sha256='75eb340266b1bbae944d8f9281af978bd5bc2c8085df97a098d5500d6f177296')
+
+ depends_on('libaio')
+ depends_on('libbsd')
+ depends_on('judy')
+ depends_on('libatomic-ops')
+ depends_on('zlib')
+ depends_on('keyutils')
+ depends_on('libgcrypt')
+ depends_on('libcap')
+
+ conflicts('platform=darwin', msg='stress-ng is linux-only')
+
+ def install(self, spec, prefix):
+ mkdir(prefix.bin)
+ mkdirp(prefix.man.man1)
+ mkdirp(join_path(prefix.share,
+ 'stress-ng',
+ 'example-jobs'))
+ mkdirp(join_path(prefix.share,
+ 'bash-completion',
+ 'completions'))
+ install('stress-ng', prefix.bin)
+ install('stress-ng.1', prefix.man.man1)
+ install_tree('example-jobs',
+ join_path(prefix.share,
+ 'stress-ng'))
+ install('bash-completion/stress-ng',
+ join_path(prefix.share,
+ 'bash-completion',
+ 'completions'))