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 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 recipes-test/test-nohz-stability/files/test-nohz-stability (limited to 'recipes-test/test-nohz-stability/files/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 -- cgit v1.2.3-54-g00ecf