diff options
author | Roland Hieber <r.hieber@pengutronix.de> | 2017-05-19 14:31:09 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-05-26 08:35:46 +0200 |
commit | ac286626fbe83c6c826d77bb6d0bd9f0d942233b (patch) | |
tree | e1cf3b1a4d226a45a0bdcf1129073637bbf1b4f5 | |
parent | cdf876bc6a019e06cb765f20d787a8b68b849d65 (diff) | |
download | ptxdist-ac286626fbe83c6c826d77bb6d0bd9f0d942233b.tar.gz ptxdist-ac286626fbe83c6c826d77bb6d0bd9f0d942233b.tar.xz |
stress: add new package: workload generator for POSIX systems
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/stress.in | 9 | ||||
-rw-r--r-- | rules/stress.make | 64 |
2 files changed, 73 insertions, 0 deletions
diff --git a/rules/stress.in b/rules/stress.in new file mode 100644 index 000000000..d8b221396 --- /dev/null +++ b/rules/stress.in @@ -0,0 +1,9 @@ +## SECTION=test_suites + +config STRESS + tristate + prompt "stress" + help + stress is a deliberately simple workload generator for POSIX + systems. It imposes a configurable amount of CPU, memory, I/O, and + disk stress on the system. diff --git a/rules/stress.make b/rules/stress.make new file mode 100644 index 000000000..13c82ab29 --- /dev/null +++ b/rules/stress.make @@ -0,0 +1,64 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Roland Hieber <r.hieber@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_STRESS) += stress + +# +# Paths and names +# +STRESS_VERSION := 1.0.4 +STRESS_MD5 := 890a4236dd1656792f3ef9a190cf99ef +STRESS := stress-$(STRESS_VERSION) +STRESS_SUFFIX := tar.gz +STRESS_URL := https://people.seas.harvard.edu/~apw/stress/$(STRESS).$(STRESS_SUFFIX) +STRESS_SOURCE := $(SRCDIR)/$(STRESS).$(STRESS_SUFFIX) +STRESS_DIR := $(BUILDDIR)/$(STRESS) +STRESS_LICENSE := GPL-2.0+ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# prevent errors when building the documentation, which is not installed anyways +STRESS_CONF_ENV := \ + $(CROSS_ENV) \ + MAKEINFO=: + +# +# autoconf +# +STRESS_CONF_TOOL := autoconf +STRESS_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-dependency-tracking + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/stress.targetinstall: + @$(call targetinfo) + + @$(call install_init, stress) + @$(call install_fixup, stress,PRIORITY,optional) + @$(call install_fixup, stress,SECTION,base) + @$(call install_fixup, stress,AUTHOR,"Roland Hieber <r.hieber@pengutronix.de>") + @$(call install_fixup, stress,DESCRIPTION,missing) + + @$(call install_copy, stress, 0, 0, 0755, -, /usr/bin/stress) + + @$(call install_finish, stress) + + @$(call touch) + +# vim: syntax=make |