From 75d089e5b25f6ba28f64989a5409542025f5de74 Mon Sep 17 00:00:00 2001 From: duerpei Date: Wed, 20 Jul 2022 14:45:43 +0800 Subject: meta-agl-test: add 'aio-stress' to agl-test Add the test set of aio-stress to agl-test Bug-AGL: SPEC-4345 Signed-off-by: duerpei Change-Id: Ic5bee24e24ef1b89a6212d72c7a0a08725e1fe36 --- .../packagegroup/packagegroup-agl-extend-test.bb | 1 + .../agl-test-framework/agl-test-framework.bb | 2 ++ .../recipes-tests/aio-stress/aio-stress_0.22.bb | 33 ++++++++++++++++++++++ .../recipes-tests/aio-stress/files/Makefile | 13 +++++++++ 4 files changed, 49 insertions(+) create mode 100644 meta-agl-test/recipes-tests/aio-stress/aio-stress_0.22.bb create mode 100644 meta-agl-test/recipes-tests/aio-stress/files/Makefile (limited to 'meta-agl-test') diff --git a/meta-agl-test/recipes-platform/packagegroup/packagegroup-agl-extend-test.bb b/meta-agl-test/recipes-platform/packagegroup/packagegroup-agl-extend-test.bb index e12fb163..1f6df3b0 100644 --- a/meta-agl-test/recipes-platform/packagegroup/packagegroup-agl-extend-test.bb +++ b/meta-agl-test/recipes-platform/packagegroup/packagegroup-agl-extend-test.bb @@ -11,4 +11,5 @@ ALLOW_EMPTY:${PN} = "1" RDEPENDS:${PN} += " \ agl-test-framework \ + aio-stress \ " diff --git a/meta-agl-test/recipes-tests/agl-test-framework/agl-test-framework.bb b/meta-agl-test/recipes-tests/agl-test-framework/agl-test-framework.bb index a2e73fdf..e253e2a5 100644 --- a/meta-agl-test/recipes-tests/agl-test-framework/agl-test-framework.bb +++ b/meta-agl-test/recipes-tests/agl-test-framework/agl-test-framework.bb @@ -25,6 +25,8 @@ do_install:append() { install -d ${D}/usr/AGL/agl-test/template/ install -m 0644 ${WORKDIR}/git/template/* ${D}/usr/AGL/agl-test/template/ + install -d ${D}/usr/AGL/agl-test/tests/aio-stress/ + install -m 0644 ${WORKDIR}/git/tests/aio-stress/* ${D}/usr/AGL/agl-test/tests/aio-stress/ install -d ${D}/usr/AGL/agl-test/tests/bzip2/ install -m 0644 ${WORKDIR}/git/tests/bzip2/* ${D}/usr/AGL/agl-test/tests/bzip2/ install -d ${D}/usr/AGL/agl-test/tests/expat/ diff --git a/meta-agl-test/recipes-tests/aio-stress/aio-stress_0.22.bb b/meta-agl-test/recipes-tests/aio-stress/aio-stress_0.22.bb new file mode 100644 index 00000000..48241071 --- /dev/null +++ b/meta-agl-test/recipes-tests/aio-stress/aio-stress_0.22.bb @@ -0,0 +1,33 @@ +SUMMARY = "Aio Stress Test" +HOMEPAGE = "https://oss.oracle.com/~mason/aio-stress/" +LICENSE = "GPL-2.0-only" +SRC_URI[sha256sum] = "3f4cffcc946fb717fff9d8fe932c7c2ee606efff198408d9fbe16955151445f7" +LIC_FILES_CHKSUM = "file://aio-stress.c;md5=ccb5d196a3736bbd835d582a4e2329c3" + +PN = 'aio-stress' + +DEPENDS = "libaio" + +TARGET_CC_ARCH += "${LDFLAGS}" + +SRC_URI = "https://oss.oracle.com/~mason/aio-stress/aio-stress.c \ + file://Makefile " + +S = "${WORKDIR}" + +FILES:${PN} += " \ + /usr/AGL/agl-test/tests/aio-stress/resource \ +" + +do_compile() { + oe_runmake +} + +do_install:append() { + install -d ${D}/usr/AGL/agl-test/tests/aio-stress/resource/ + install -m 0755 ${WORKDIR}/aio-stress ${D}/usr/AGL/agl-test/tests/aio-stress/resource/ +} + +RDEPENDS:${PN} += " \ + agl-test-framework \ +" diff --git a/meta-agl-test/recipes-tests/aio-stress/files/Makefile b/meta-agl-test/recipes-tests/aio-stress/files/Makefile new file mode 100644 index 00000000..c2b2ffe8 --- /dev/null +++ b/meta-agl-test/recipes-tests/aio-stress/files/Makefile @@ -0,0 +1,13 @@ +CFLAGS = -Wall +TARGET = aio-stress + + +all: $(TARGET) + + +$(TARGET): aio-stress.c + $(CC) $(CFLAGS) $^ -o $@ -lpthread -laio + + +clean: + $(RM) $(TARGET) -- cgit 1.2.3-korg