summaryrefslogtreecommitdiff
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
parent8e6b7ba81544eb3e68f30f52123fe38b5f49c5a5 (diff)
downloadtest-definitions-pipe-5e142209165bf5118c10ace1affa1917a782caeb.tar.gz
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
-rw-r--r--openembedded/kselftest.yaml28
-rw-r--r--ubuntu/kselftest.yaml36
2 files changed, 64 insertions, 0 deletions
diff --git a/openembedded/kselftest.yaml b/openembedded/kselftest.yaml
new file mode 100644
index 0000000..dfaada6
--- /dev/null
+++ b/openembedded/kselftest.yaml
@@ -0,0 +1,28 @@
+metadata:
+ name: kselftest
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Kernel Self Test"
+ maintainer:
+ - arthur.she@linaro.org
+ os:
+ - openembedded
+ devices:
+ - all
+
+params:
+ TESTPROG: kselftest_armhf.tar.gz
+
+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
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