summaryrefslogtreecommitdiff
path: root/ubuntu
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2015-06-11 16:38:08 -0700
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2015-06-15 09:32:46 +0000
commit5e142209165bf5118c10ace1affa1917a782caeb (patch)
treea4635cc6223af2eebb33536cd86c78bc7ca6afc1 /ubuntu
parent8e6b7ba81544eb3e68f30f52123fe38b5f49c5a5 (diff)
ubuntu/openembedded: kselftest.yaml
The kernel contains a set of 'self tests' under the tools/testing/selftests/. These are intended to be small unit tests to exercise individual code paths in the kernel. kselftest.yaml will run all of the tests by using pre-compiled test program. Change-Id: I21882911b23c8577c6ef7d4e53a7bc5de1c2086c
Diffstat (limited to 'ubuntu')
-rw-r--r--ubuntu/kselftest.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/ubuntu/kselftest.yaml b/ubuntu/kselftest.yaml
new file mode 100644
index 0000000..ee35ce9
--- /dev/null
+++ b/ubuntu/kselftest.yaml
@@ -0,0 +1,36 @@
+metadata:
+ name: kselftest
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Kernel Self Test"
+ maintainer:
+ - tyler.baker@linaro.org
+ - arthur.she@linaro.org
+ os:
+ - ubuntu
+ devices:
+ - all
+
+params:
+ TESTPROG: kselftest_armhf.tar.gz
+
+install:
+ deps:
+ - libpopt-dev
+ - libcap-dev
+ - binutils-dev
+ - perl
+
+run:
+ steps:
+ - 'cd /tmp'
+ - 'wget http://testdata.validation.linaro.org/tests/kselftest/$TESTPROG -O kselftest.tar.gz'
+ - 'tar -xaf kselftest.tar.gz'
+ - 'cd kselftest'
+ - './run_kselftest.sh'
+
+parse:
+ pattern: "^selftests:\\s(?P<test_case_id>\\S+)\\s[[](?P<result>(FAIL|PASS|SKIP))[]]"
+ fixupdict:
+ FAIL: fail
+ PASS: pass
+ SKIP: skip