summaryrefslogtreecommitdiff
path: root/ubuntu/pi-stress-test.yaml
blob: dad3ae04804358aa418d4ffdeb794c548cf9cd5e (plain)
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
metadata:
    format: Lava-Test Test Definition 1.0
    name: pi-stress-test
    description: "PI-Stress-test for POSIX Priority Inheritance mutexes. It's a stress test that
                  checks Priority Inheritence Mutexes and their ability to avoid Priority Inversion
                  from occuring by running groups of threads that cause Priority Inversions."
    maintainer:
        - chase.qi@linaro.org
    os:
        - ubuntu
    scope:
        - functional
        - preempt-rt
    devices:
        - panda
        - panda-es
        - arndale
        - vexpress-a9
        - vexpress-tc2
        - beaglebone-black
        - d01
        - rtsm_fvp_base-aemv8a
        - juno
    environment:
        - lava-test-shell

install:
    deps:
        - rt-tests
params:
    # Length of the test run in seconds
    DURATION: 300
    # The number of inversion groups to run. By default pi_stress will detect the number of
    # processors and determine the number of inversion groups automatically.
    GROUP: 'default'
    # Set MLOCKALL to ture to lock current and future memory
    MLOCKALL: 'true'
    # Set RR to true if you need use SCHED_RR for test threads. The
    # default is to run the inversion threads as SCHED_FIFO
    RR: 'false'

run:
    steps:
       - ./ubuntu/scripts/pi-stress-test.py $DURATION $GROUP $MLOCKALL $RR