File: xeno-regression-test.in

package info (click to toggle)
xenomai 2.6.0-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 53,108 kB
  • sloc: ansic: 113,388; sh: 11,241; makefile: 2,103; xml: 1,356; asm: 722; php: 316; perl: 155
file content (63 lines) | stat: -rw-r--r-- 1,602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#! @testdir@/xeno-test-run

usage()
{
    cat <<EOF
xeno-regression-test [ -l "load command" ] [ -- ] [ latency test options ]

Run Xenomai regression testsuite on your platform, by first starting a
fewtests, then running the latency test in parallel to the switchtest test
under the load generated by "load-command".

By default, the load command is "dohell 900", which will generate load during
15 minutes. To generate a more realistic load see dohell help.

Any other option passed on the command line is passed to the latency test.

Example:
xeno-regression-test -l "dohell -s 192.168.0.5 -m /mnt -l /ltp" -t 2

Will generate load including network load using the server at IP address
192.168.0.5, some I/O under the moint point /mnt, and the LTP testsuite
installed under the /ltp directory, and use the latency test by measuring the
timer irq latency.
EOF
}

if [ "$1" = "-h" -o "$1" = "--help" ]; then
    usage
    exit 0
fi

if [ "$1" = "--" ]; then
   shift
fi

set -ex

echo 0 > /proc/xenomai/latency || :

# in-tree tests
@testdir@/arith
@testdir@/clocktest -T 30
@testdir@/cond-torture-native
@testdir@/cond-torture-posix
@testdir@/mutex-torture-native
@testdir@/mutex-torture-posix

# the tests in this tree
@testdir@/regression/posix/leaks
@testdir@/regression/posix/shm
@testdir@/regression/native/heap
@testdir@/regression/native/leaks
@testdir@/regression/native/mayday
@testdir@/regression/native/tsc
@testdir@/regression/native+posix/mq_select

start_load

check_alive @testdir@/switchtest
check_alive @testdir@/switchtest -s 1000
check_alive @testdir@/latency ${1+"$@"}

wait_load