summaryrefslogtreecommitdiff
path: root/ubuntu/ltp.yaml
blob: 3a0aa2024b3267290e65859c7be9b356ed25e7f5 (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
45
46
47
48
49
50
51
52
53
54
55
metadata:
    name: ltp
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "Run LTP test suite on Ubuntu"
    maintainer:
        - milosz.wasilewski@linaro.org
        - fathi.boudra@linaro.org
    os:
        - ubuntu
    scope:
        - functional
    devices:
        - panda
        - panda-es
        - arndale
        - vexpress-a9
        - vexpress-tc2
        - ifc6410

install:
    steps:
        - 'VERSION=20150119'
        - 'wget http://sourceforge.net/projects/ltp/files/LTP%20Source/ltp-$VERSION/ltp-full-$VERSION.tar.xz'
        - 'tar --strip-components=1 -Jxf ltp-full-$VERSION.tar.xz'
        - 'mkdir build'
        - './configure --prefix=$(readlink -f build)'
        - 'make all'
        - 'make SKIP_IDCHECK=1 install'
    deps:
        - bzip2
        - flex
        - bison
        - build-essential
        - wget
        - curl

params:
    TST_CMDFILES: syscalls,mm,math,timers,fcntl-locktests,ipc,fsx,fs,hugetlb,io,nptl,pty,containers,fs_bind,filecaps,admin_tools,connectors
    # SKIPFILE can be a filename from dir ../common/scripts/ltp/ or an open URL
    # SKIPFILE: "skipfile-lsk-juno"
    # "skipfile-lsk-juno" is a known file present in dir ../common/scripts/ltp/
    # or
    # SKIPFILE: "http://people.linaro.org/~naresh.kamboju/skipfile"
    # NOTE: busybox wget may not work with https link so pefer to use http
    SKIPFILE: ""

run:
    steps:
        - './common/scripts/ltpfixup.sh -T $TST_CMDFILES -P $(readlink -f build) -S $SKIPFILE'

parse:
    pattern: "^(?!.+ED)(?P<test_case_id>\\w+)\\s+(?P<result>\\w+)\\s+\\d$"
    fixupdict:
        FAIL: fail
        PASS: pass