From c2da06c175b7ce286c2acdf44d891bfdf8cd8def Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 13:53:30 +0200 Subject: initial commit for Enea Linux 4.0 Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau --- .../test-nohz-stability/files/test-nohz-stability | 37 ++++++++++++++++++++++ .../test-nohz-stability/test-nohz-stability.bb | 21 ++++++++++++ 2 files changed, 58 insertions(+) create mode 100755 recipes-test/test-nohz-stability/files/test-nohz-stability create mode 100644 recipes-test/test-nohz-stability/test-nohz-stability.bb (limited to 'recipes-test/test-nohz-stability') diff --git a/recipes-test/test-nohz-stability/files/test-nohz-stability b/recipes-test/test-nohz-stability/files/test-nohz-stability new file mode 100755 index 0000000..b65fd96 --- /dev/null +++ b/recipes-test/test-nohz-stability/files/test-nohz-stability @@ -0,0 +1,37 @@ +#!/bin/sh + +partitioning_done=false + +cleanup () { + $partitioning_done && partrt undo + exit $1 +} + +cd /opt/ltp || cleanup 1 + +# Perform partitioning, if not already done +if [ ! -d /sys/fs/cgroup/cpuset/rt ]; then + partrt create $(list2mask --nohz) || cleanup 1 + partitioning_done=true +fi + +echo +echo "*******" +echo "* NRT *" +echo "*******" +echo + +partrt run rt stress -i 1 || cleanup 1 & +CHILD_PID=$! +partrt run nrt systest-runner || cleanup 1 +kill $CHILD_PID || cleanup 1 + +echo +echo "******" +echo "* RT *" +echo "******" +echo + +partrt run rt systest-runner || cleanup 1 + +cleanup 0 diff --git a/recipes-test/test-nohz-stability/test-nohz-stability.bb b/recipes-test/test-nohz-stability/test-nohz-stability.bb new file mode 100644 index 0000000..5c2405a --- /dev/null +++ b/recipes-test/test-nohz-stability/test-nohz-stability.bb @@ -0,0 +1,21 @@ + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" +INHIBIT_DEFAULT_DEPS = "1" + +SRC_URI = "file://${PN} \ + " + +FILES_${PN} += "${bindir}/${PN}" + +RDEPENDS_${PN} = "ltp packagegroup-enea-rt-tools systest-runner" + +do_install () { + install -D ${WORKDIR}/${PN} ${D}${bindir}/${PN} +} + +# Only a script, no need for patch, configure, compile or build +do_patch[noexec] = "1" +do_configure[noexec] = "1" +do_compile[noexec] = "1" +do_build[noexec] = "1" -- cgit v1.2.3-54-g00ecf