From 2a7348129a42f21095fcd62e47a035f78d254130 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 12 Dec 2013 17:36:38 +0100 Subject: initial commit of Enea Linux 3.1 Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau --- .../ddt-runner/files/scripts/bsc9132qds/preempt_rt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 recipes-test/ddt-runner/files/scripts/bsc9132qds/preempt_rt (limited to 'recipes-test/ddt-runner/files/scripts/bsc9132qds/preempt_rt') diff --git a/recipes-test/ddt-runner/files/scripts/bsc9132qds/preempt_rt b/recipes-test/ddt-runner/files/scripts/bsc9132qds/preempt_rt new file mode 100755 index 0000000..111cfa2 --- /dev/null +++ b/recipes-test/ddt-runner/files/scripts/bsc9132qds/preempt_rt @@ -0,0 +1,33 @@ +#!/bin/sh +# +#This script is to test PREEMPT RT on target +# + +uname -a | grep "PREEMPT RT" +if [ $? -ne 0 ]; then + echo "FAIL: The kernel include real-time patch" + echo 1 +fi + echo "PASS: The kernel include real-time patch" + +ps | grep '\(\[irq/\)' +if [ $? -ne 0 ]; then + echo "FAIL: The IRQ handlers are treated by a patched kernel in kernel thread context." + exit 1 +fi + echo "PASS: The IRQ handlers are treated by a patched kernel in kernel thread context." + +cyclictest -t5 -p 80 -i 10000 -l 100 +if [ $? -ne 0 ]; then + echo "FAIL: Test case: POSIX interval timer, Interval 10000 micro seconds,. 100 loops." + exit 1 +fi + echo "PASS: Test case: POSIX interval timer, Interval 10000 micro seconds,. 100 loops." + +cyclictest -t5 -p 80 -n -i 10000 -l 100 +if [ $? -ne 0 ]; then + echo "FAIL: Test case: clock_nanosleep(TIME_ABSTIME), Interval 10000 micro seconds,. 100 loops." + exit 1 +fi + echo "PASS: Test case: clock_nanosleep(TIME_ABSTIME), Interval 10000 micro seconds,. 100 loops." + -- cgit v1.2.3-54-g00ecf