From: Michael Grzeschik <[email protected]> Its a simple workload generator for POSIX systems. It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system.
Signed-off-by: Michael Grzeschik <[email protected]> --- rules/stress.in | 8 +++++ rules/stress.make | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+), 0 deletions(-) create mode 100644 rules/stress.in create mode 100644 rules/stress.make diff --git a/rules/stress.in b/rules/stress.in new file mode 100644 index 0000000..b015d4b --- /dev/null +++ b/rules/stress.in @@ -0,0 +1,8 @@ +## SECTION=test_suites +config STRESS + tristate + prompt "stress " + help + stress is a simple workload generator for POSIX systems. + It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system. + It is written in C, and is free software licensed under the GPLv2. diff --git a/rules/stress.make b/rules/stress.make new file mode 100644 index 0000000..bb01420 --- /dev/null +++ b/rules/stress.make @@ -0,0 +1,83 @@ +# -*-makefile-*- +# +# Copyright (C) 2002-2007 by Pengutronix e.K., Hildesheim, Germany +# 2009 by Marc Kleine-Budde <[email protected]> +# +# 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.1 +STRESS := stress-$(STRESS_VERSION) +STRESS_SUFFIX := tar.gz +STRESS_URL := http://weather.ou.edu/~apw/projects/stress/$(STRESS).$(STRESS_SUFFIX) +STRESS_SOURCE := $(SRCDIR)/$(STRESS).$(STRESS_SUFFIX) +STRESS_DIR := $(BUILDDIR)/$(STRESS) +STRESS_LICENSE := stress + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(STRESS_SOURCE): + @$(call targetinfo) + @$(call get, STRESS) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +STRESS_PATH := PATH=$(CROSS_PATH) +STRESS_ENV := $(CROSS_ENV) + +# +# autoconf +# +STRESS_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) + + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/stress.targetinstall: + @$(call targetinfo) + +ifndef PTXCONF_STRESS_STATIC + @$(call install_init, stress) + @$(call install_fixup, stress,PACKAGE,stress) + @$(call install_fixup, stress,PRIORITY,optional) + @$(call install_fixup, stress,VERSION,$(STRESS_VERSION)) + @$(call install_fixup, stress,SECTION,base) + @$(call install_fixup, stress,AUTHOR,"Michael Grzeschik <[email protected]>") + @$(call install_fixup, stress,DEPENDS,) + @$(call install_fixup, stress,DESCRIPTION,missing) + + @$(call install_copy, stress, 0, 0, 0755, -, \ + /usr/bin/stress) + + @$(call install_finish, stress) +endif + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +stress_clean: + rm -rf $(STATEDIR)/stress.* + rm -rf $(PKGDIR)/stress_* + rm -rf $(STRESS_DIR) + +# vim: syntax=make -- 1.7.0 -- ptxdist mailing list [email protected]
