blob: daa952607b9142f0c03c0af638186482bb5526a1 (
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
79
80
81
|
metadata:
name: 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
- u-boot-tools
steps:
- 'cat /proc/version'
- 'ls -l /lib/modules/`uname -r`/build/ | true'
- 'cd /usr/src/'
- 'wget --no-check-certificate https://fedorahosted.org/releases/e/l/elfutils/0.159/elfutils-0.159.tar.bz2'
- 'echo PASS: wget_elfutils'
- 'tar -xvf elfutils-0.159.tar.bz2'
- 'wget --no-check-certificate https://sourceware.org/systemtap/ftp/releases/systemtap-2.5.tar.gz'
- 'echo PASS: wget_systemtap'
- 'tar -xvf systemtap-2.5.tar.gz'
- 'cd systemtap-2.5'
- '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-0.159'
- 'echo PASS: systemtap_configure'
- 'make all'
- 'echo PASS: systemtap_make'
- 'make install'
- 'echo PASS: systemtap_make_install'
run:
steps:
- 'cd /usr/src/systemtap-2.5'
- 'make installcheck'
- 'echo PASS: systemtap_make_installcheck'
- 'cat testsuite/systemtap.sum'
- "tar -zcvf systemtap_results.tar.gz testsuite/systemtap.sum testsuite/systemtap.log"
- 'echo PASS: archive_systemtap_results'
- "lava-test-run-attach /usr/src/systemtap-2.5/systemtap-results.tar.gz application/x-gtar"
- 'echo PASS: attachment_systemtap_results_tar_ball'
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 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
|