From 1b6242fc583a6b871304fb995af6dc211b58f69b Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 13:48:23 +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 --- recipes-core/numad/numad-0.6/run-ptest | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 recipes-core/numad/numad-0.6/run-ptest (limited to 'recipes-core/numad/numad-0.6/run-ptest') diff --git a/recipes-core/numad/numad-0.6/run-ptest b/recipes-core/numad/numad-0.6/run-ptest new file mode 100755 index 0000000..5c49181 --- /dev/null +++ b/recipes-core/numad/numad-0.6/run-ptest @@ -0,0 +1,20 @@ +#!/bin/sh + +CPUSET_PATH="/tmp/numad-cpuset" + +/etc/init.d/numad.init status +STATUS=$? +/etc/init.d/numad.init stop +mkdir $CPUSET_PATH; mount -t cgroup -ocpuset cpuset $CPUSET_PATH +./test 2>&1& +TEST_PID=$! +sleep 2 +numad -d -S 0 -u 50 -i 5:5 -p $TEST_PID -D $CPUSET_PATH +wait +numad -i 0 +sleep 1 +umount $CPUSET_PATH ; rmdir $CPUSET_PATH +if [ "$STATUS" = "0" ]; then + /etc/init.d/numad.init start +fi + -- cgit v1.2.3-54-g00ecf