mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <r.hieber@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <r.hieber@pengutronix.de>
Subject: [ptxdist] [PATCH] stress: add new package: workload generator for POSIX systems
Date: Fri, 19 May 2017 14:31:09 +0200	[thread overview]
Message-ID: <20170519123109.21049-1-r.hieber@pengutronix.de> (raw)
In-Reply-To: <20170518123857.cpm4vvbwyzfye3ke@pengutronix.de>

---
 Changes since v3:
 - use MAKEINFO=: in prepare stage instead of patching Makefiles
 - bring back section header for prepare stage

Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
---
 rules/stress.in   |  9 ++++++++
 rules/stress.make | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)
 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..d8b2213
--- /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 0000000..3e57204
--- /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
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+STRESS_CONF_TOOL	:= autoconf
+STRESS_CONF_OPT		:= \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-dependency-tracking
+
+# prevent errors when building the documentation, which is not installed anyways
+STRESS_CONF_ENV	:= \
+	$(CROSS_ENV) \
+	MAKEINFO=:
+
+# ----------------------------------------------------------------------------
+# 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
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2017-05-19 12:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-15  8:47 Roland Hieber
2017-05-15 14:32 ` Michael Olbrich
2017-05-18  9:52   ` [ptxdist] [PATCH v2] " Roland Hieber
2017-05-18 10:07     ` Uwe Kleine-König
2017-05-18 10:47       ` [ptxdist] [PATCH v3] " Roland Hieber
2017-05-18 12:38         ` Michael Olbrich
2017-05-19 12:29           ` Roland Hieber
2017-05-19 12:31           ` Roland Hieber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170519123109.21049-1-r.hieber@pengutronix.de \
    --to=r.hieber@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox