summaryrefslogtreecommitdiff
path: root/ubuntu/native-uprobes-systemtap-test.yaml
blob: eec9027c9257c6b060c84459bd57a547b2cef9ba (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
metadata:
    name: native-uprobes-systemtap-test
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "Run uprobes systemtap tests. Pre-requirement is install-uprobe-kernel-on-arndale.yaml"
    maintainer:
        - naresh.kamboju@linaro.org
    os:
        - ubuntu
    scope:
        - functional
    devices:
        - arndale
    timeout: 90000

install:
    deps:
        - build-essential
        - m4
        - dejagnu
        - bzip2
        - wget
        - gettext
        - openssh-server
        - expect
        - xz-utils
        - git
        - automake

    steps:
        - 'cat /proc/version'
        - 'ls -l /lib/modules/`uname -r`/build/'
        - 'cd /usr/src/'
        - 'git clone git://git.fedorahosted.org/git/elfutils.git'
        - 'git clone git://sourceware.org/git/systemtap.git'
        - 'cd elfutils'
        - 'autoreconf -vfi'
        - 'cd ../systemtap'
        - 'cp /usr/share/dejagnu/* . -a'
        - 'echo "skip tests which are known to hang"'
        - 'mv testsuite/systemtap.base/poll_map.exp testsuite/systemtap.base/poll_map.exp.back'
        - 'mv testsuite/systemtap.base/pr14546.exp testsuite/systemtap.base/pr14546.exp.back'
        - 'mv testsuite/systemtap.base/pr10854.exp testsuite/systemtap.base/pr10854.exp.back'
        - 'mv testsuite/systemtap.base/implicitptr.exp testsuite/systemtap.base/implicitptr.exp.back'
        - 'mv testsuite/systemtap.base/probefunc.exp testsuite/systemtap.base/probefunc.exp.back'
        - 'mv testsuite/systemtap.base/sdt_global_var.exp testsuite/systemtap.base/sdt_global_var.exp.back'
        - 'mv testsuite/systemtap.base/target_set_thread.exp testsuite/systemtap.base/target_set_thread.exp.back'
        - 'mv testsuite/systemtap.unprivileged/unprivileged_myproc.exp testsuite/systemtap.unprivileged/unprivileged_myproc.exp.back'
        - './configure --prefix=/usr/local/ --with-elfutils=../elfutils'
        - 'make all'
        - 'make install'
        - 'make clean'
run:
    steps:
        - 'lava-test-case systemtap-make-install --result pass'
        - 'cd /usr/src/systemtap'
        - 'make installcheck'
        - 'lava-test-case systemtap-make-installcheck --result pass'
        - 'cat testsuite/systemtap.sum'
        - 'lava-test-case-attach systemtap.sum testsuite/systemtap.sum text/plain'
        - 'lava-test-case-attach systemtap.log testsuite/systemtap.log text/plain'
        - 'lava-test-case attach-systemtap-results --result pass'
parse:
    pattern: "(?P<result>PASS|FAIL|KFAIL|XFAIL|UNTESTED|UNSUPPORTED): (?P<test_case_id>[ ().0-9A-Za-z-_/]*)"
    fixupdict:
        PASS: pass
        FAIL: fail
        KFAIL: fail
        XFAIL: pass
        UNTESTED: skip
        UNSUPPORTED: skip

# install-uprobe-kernel-on-arndale.yaml to be run before test
# 10 GB test partition needed for install-uprobe-kernel and native-uprobes-systemtap-test
# This is a long running test, expected to run for 25 hours.
# Systemtap build, install and installcheck is the purpose of this test.
# make installcheck runs systemtap testsuite.
# Example json file:
# http://people.linaro.org/~naresh.kamboju/uprobe-systemtap-test-on-lava.json