diff options
Diffstat (limited to 'recipes-test/ddt-runner/files/scripts/bsc9131rdb/preempt_rt')
| -rwxr-xr-x | recipes-test/ddt-runner/files/scripts/bsc9131rdb/preempt_rt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-test/ddt-runner/files/scripts/bsc9131rdb/preempt_rt b/recipes-test/ddt-runner/files/scripts/bsc9131rdb/preempt_rt new file mode 100755 index 0000000..111cfa2 --- /dev/null +++ b/recipes-test/ddt-runner/files/scripts/bsc9131rdb/preempt_rt | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | #This script is to test PREEMPT RT on target | ||
| 4 | # | ||
| 5 | |||
| 6 | uname -a | grep "PREEMPT RT" | ||
| 7 | if [ $? -ne 0 ]; then | ||
| 8 | echo "FAIL: The kernel include real-time patch" | ||
| 9 | echo 1 | ||
| 10 | fi | ||
| 11 | echo "PASS: The kernel include real-time patch" | ||
| 12 | |||
| 13 | ps | grep '\(\[irq/\)' | ||
| 14 | if [ $? -ne 0 ]; then | ||
| 15 | echo "FAIL: The IRQ handlers are treated by a patched kernel in kernel thread context." | ||
| 16 | exit 1 | ||
| 17 | fi | ||
| 18 | echo "PASS: The IRQ handlers are treated by a patched kernel in kernel thread context." | ||
| 19 | |||
| 20 | cyclictest -t5 -p 80 -i 10000 -l 100 | ||
| 21 | if [ $? -ne 0 ]; then | ||
| 22 | echo "FAIL: Test case: POSIX interval timer, Interval 10000 micro seconds,. 100 loops." | ||
| 23 | exit 1 | ||
| 24 | fi | ||
| 25 | echo "PASS: Test case: POSIX interval timer, Interval 10000 micro seconds,. 100 loops." | ||
| 26 | |||
| 27 | cyclictest -t5 -p 80 -n -i 10000 -l 100 | ||
| 28 | if [ $? -ne 0 ]; then | ||
| 29 | echo "FAIL: Test case: clock_nanosleep(TIME_ABSTIME), Interval 10000 micro seconds,. 100 loops." | ||
| 30 | exit 1 | ||
| 31 | fi | ||
| 32 | echo "PASS: Test case: clock_nanosleep(TIME_ABSTIME), Interval 10000 micro seconds,. 100 loops." | ||
| 33 | |||
