meta-ivi-common: add recipe for aiostress (JTA:Functional.aiostress) 69/5869/2
authorStephane Desneux <stephane.desneux@iot.bzh>
Tue, 14 Jun 2016 09:20:32 +0000 (09:20 +0000)
committerGerrit Code Review <gerrit@172.30.200.200>
Sun, 19 Jun 2016 19:27:11 +0000 (19:27 +0000)
aio-stress binary is needed in JTA functional test 'aiostress'

upstream version found here: https://oss.oracle.com/~mason/aio-stress/
NB: the version referenced in JTA is 0.21 but the new recipe points to 0.22.

Change-Id: I382ca2ea843f2367010677c463df2a1b9d02aba7
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-ivi-common/recipes-test/aiostress/aiostress_0.22.bb [new file with mode: 0644]

diff --git a/meta-ivi-common/recipes-test/aiostress/aiostress_0.22.bb b/meta-ivi-common/recipes-test/aiostress/aiostress_0.22.bb
new file mode 100644 (file)
index 0000000..7803d74
--- /dev/null
@@ -0,0 +1,24 @@
+SUMMARY = "Async IO testing utility"
+DESCRIPTION = "aio-stress will open or create each file on the command line, and start a series of aio to it.\
+aio is done in a rotating loop.  first file1 gets 8 requests, then file2, then file3 etc.\
+As each file finishes writing, it is switched to reads io buffers are aligned in case you want to do raw io"
+HOMEPAGE = "https://oss.oracle.com/~mason/aio-stress/"
+LICENSE = "GPLv2"
+
+S="${WORKDIR}"
+
+LIC_FILES_CHKSUM = "file://${S}/aio-stress.c;md5=ccb5d196a3736bbd835d582a4e2329c3"
+
+SRC_URI = "https://oss.oracle.com/~mason/aio-stress/aio-stress.c"
+SRC_URI[md5sum] = "ccb5d196a3736bbd835d582a4e2329c3"
+SRC_URI[sha256sum] = "3f4cffcc946fb717fff9d8fe932c7c2ee606efff198408d9fbe16955151445f7"
+
+do_compile () {
+       ${CC} -Wall -Wshadow -o aio-stress -lpthread -laio aio-stress.c
+}
+
+do_install () {
+       install -d ${D}${bindir}
+       install -m 0755 aio-stress ${D}${bindir}
+}
+