From 5e142209165bf5118c10ace1affa1917a782caeb Mon Sep 17 00:00:00 2001 From: Arthur She Date: Thu, 11 Jun 2015 16:38:08 -0700 Subject: 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 --- openembedded/kselftest.yaml | 28 ++++++++++++++++++++++++++++ ubuntu/kselftest.yaml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 openembedded/kselftest.yaml create mode 100644 ubuntu/kselftest.yaml 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\\S+)\\s[[](?P(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\\S+)\\s[[](?P(FAIL|PASS|SKIP))[]]" + fixupdict: + FAIL: fail + PASS: pass + SKIP: skip -- cgit v1.2.3