summaryrefslogtreecommitdiff
path: root/ubuntu/native-uprobes-systemtap-test.yaml
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2014-07-24 18:12:52 +0530
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-08-07 08:20:36 +0000
commitd3503d5700c811260599ef70adfa2f9cfa120ddb (patch)
tree118ffff536c6c28d4d06fbb3c566aae4ab2d0e6a /ubuntu/native-uprobes-systemtap-test.yaml
parent9b478c5631dc22f3bd42f1d9d6b3f98b06b49464 (diff)
ubuntu: adding uprobe systemtap testsuite
Uprobes/kprobes enabled in linux linaro kernel. Systemtap test suite will be used for testing uprobes/kprobes. install-uprobe-kernel-on-arndale.yaml will be used for building and installing linux linaro kernel on arndale with uprobes configs enabled. native-uprobes-systemtap-test.yaml will be used for build, install and installcheck systemtap testsuite on target. This is long running test could run upto 25 hours. This complete testing need 10 GB space on test image. Change-Id: I499609f0537dc2243d5ab7e16dc2cc9c12ed738a Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Diffstat (limited to 'ubuntu/native-uprobes-systemtap-test.yaml')
-rw-r--r--ubuntu/native-uprobes-systemtap-test.yaml75
1 files changed, 75 insertions, 0 deletions
diff --git a/ubuntu/native-uprobes-systemtap-test.yaml b/ubuntu/native-uprobes-systemtap-test.yaml
new file mode 100644
index 0000000..bcaaa57
--- /dev/null
+++ b/ubuntu/native-uprobes-systemtap-test.yaml
@@ -0,0 +1,75 @@
+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
+
+ steps:
+ - 'cat /proc/version'
+ - 'ls -l /lib/modules/`uname -r`/build/'
+ - 'cd /usr/src/'
+ - 'wget --no-check-certificate https://fedorahosted.org/releases/e/l/elfutils/0.159/elfutils-0.159.tar.bz2'
+ - 'tar -xvf elfutils-0.159.tar.bz2'
+ - 'wget --no-check-certificate https://sourceware.org/systemtap/ftp/releases/systemtap-2.5.tar.gz'
+ - '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'
+ - 'make all'
+ - 'make install'
+run:
+ steps:
+ - 'lava-test-case systemtap-make-install --result pass'
+ - 'cd /usr/src/systemtap-2.5'
+ - '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