summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/stress-ng/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/stress-ng/package.py')
-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'))