From 04d06939bf4501d870bc85b4883c9a8909bfb847 Mon Sep 17 00:00:00 2001 From: Arthur She Date: Sun, 5 Oct 2014 09:47:25 -0700 Subject: kselftest: Add in kernel selftests Add cpu-hotplug, efivarfs, memory-hotplug, mqueue, net, ptrace, vm tests for both openembedded and ubuntu Change-Id: Ia0b77e6e287b66b07db295a6c9efcf56027cb969 --- openembedded/kselftest-cpu-hotplug.yaml | 37 ++++++++++++++++++++++++++++ openembedded/kselftest-efivarfs.yaml | 39 ++++++++++++++++++++++++++++++ openembedded/kselftest-memory-hotplug.yaml | 38 +++++++++++++++++++++++++++++ openembedded/kselftest-mqueue.yaml | 36 +++++++++++++++++++++++++++ openembedded/kselftest-net.yaml | 33 +++++++++++++++++++++++++ openembedded/kselftest-ptrace.yaml | 34 ++++++++++++++++++++++++++ openembedded/kselftest-vm.yaml | 38 +++++++++++++++++++++++++++++ 7 files changed, 255 insertions(+) create mode 100644 openembedded/kselftest-cpu-hotplug.yaml create mode 100644 openembedded/kselftest-efivarfs.yaml create mode 100644 openembedded/kselftest-memory-hotplug.yaml create mode 100644 openembedded/kselftest-mqueue.yaml create mode 100644 openembedded/kselftest-net.yaml create mode 100644 openembedded/kselftest-ptrace.yaml create mode 100644 openembedded/kselftest-vm.yaml (limited to 'openembedded') diff --git a/openembedded/kselftest-cpu-hotplug.yaml b/openembedded/kselftest-cpu-hotplug.yaml new file mode 100644 index 0000000..6891b4f --- /dev/null +++ b/openembedded/kselftest-cpu-hotplug.yaml @@ -0,0 +1,37 @@ +metadata: + name: kselftest-cpu-hotplug + format: "Lava-Test-Shell Test Definition 1.0" + description: + "These test code were came from kernel source KERNEL_SRC/tools/testing/selftests/ + For running this test, git is required in the rootfs" + maintainer: + - arthur.she@linaro.org + os: + - openembedded + devices: + - arndale + - beaglebone-black + - rtsm_fvp_base-aemv8a + scope: + - functional + +install: + git-repos: + - http://git.linaro.org/qa/kselftest.git + steps: + - 'cd kselftest' + - 'git checkout $BRANCH' + - 'make -C cpu-hotplug' +params: + BRANCH: master + +run: + steps: + - './common/scripts/kselftest-runner.sh cpu-hotplug ./kselftest/cpu-hotplug/on-off-test.sh' + +parse: + pattern: "^(?P[a-z_-]+):\\s\\[(?PPASS|FAIL|SKIP)\\]" + fixupdict: + FAIL: fail + PASS: pass + SKIP: skip diff --git a/openembedded/kselftest-efivarfs.yaml b/openembedded/kselftest-efivarfs.yaml new file mode 100644 index 0000000..ee8cf06 --- /dev/null +++ b/openembedded/kselftest-efivarfs.yaml @@ -0,0 +1,39 @@ +metadata: + name: kselftest-efivarfs + format: "Lava-Test-Shell Test Definition 1.0" + description: + "These test code were came from kernel source KERNEL_SRC/tools/testing/selftests/ + For running this test, git is required in the rootfs" + maintainer: + - arthur.she@linaro.org + os: + - openembedded + devices: + - arndale + - beaglebone-black + - rtsm_fvp_base-aemv8a + scope: + - functional + +install: + git-repos: + - http://git.linaro.org/qa/kselftest.git + steps: + - 'cd kselftest' + - 'git checkout $BRANCH' + - 'make -C efivarfs' + +params: + BRANCH: master + +run: + steps: + - './common/scripts/kselftest-runner.sh efivarfs ./kselftest/efivarfs/efivarfs.sh' + +parse: + pattern: "^(?P[a-z_-]+):\\s\\[(?PPASS|FAIL|SKIP)\\]" + fixupdict: + FAIL: fail + PASS: pass + SKIP: skip + diff --git a/openembedded/kselftest-memory-hotplug.yaml b/openembedded/kselftest-memory-hotplug.yaml new file mode 100644 index 0000000..c9ba063 --- /dev/null +++ b/openembedded/kselftest-memory-hotplug.yaml @@ -0,0 +1,38 @@ +metadata: + name: kselftest-memory-hotplug + format: "Lava-Test-Shell Test Definition 1.0" + description: + "These test code were came from kernel source KERNEL_SRC/tools/testing/selftests/ + For running this test, git is required in the rootfs" + maintainer: + - arthur.she@linaro.org + os: + - openembedded + devices: + - arndale + - beaglebone-black + - rtsm_fvp_base-aemv8a + scope: + - functional + +install: + git-repos: + - http://git.linaro.org/qa/kselftest.git + steps: + - 'cd kselftest' + - 'git checkout $BRANCH' + - 'make -C memory-hotplug' + +params: + BRANCH: master + +run: + steps: + - './common/scripts/kselftest-runner.sh memory-hotplug ./kselftest/memory-hotplug/on-off-test.sh' + +parse: + pattern: "^(?P[a-z_-]+):\\s\\[(?PPASS|FAIL|SKIP)\\]" + fixupdict: + FAIL: fail + PASS: pass + SKIP: skip diff --git a/openembedded/kselftest-mqueue.yaml b/openembedded/kselftest-mqueue.yaml new file mode 100644 index 0000000..e77c604 --- /dev/null +++ b/openembedded/kselftest-mqueue.yaml @@ -0,0 +1,36 @@ +metadata: + name: kselftest-mqueue + format: "Lava-Test-Shell Test Definition 1.0" + description: + "These test code were came from kernel source KERNEL_SRC/tools/testing/selftests/ + For running this test, git is required in the rootfs" + maintainer: + - arthur.she@linaro.org + os: + - openembedded + devices: + - arndale + - beaglebone-black + - rtsm_fvp_base-aemv8a + scope: + - functional + +install: + git-repos: + - http://git.linaro.org/qa/kselftest.git + steps: + - 'cd kselftest' + - 'git checkout $BRANCH' +params: + BRANCH: master + +run: + steps: + - './common/scripts/kselftest-mqueue.sh' + +parse: + pattern: "^(?P[A-Za-z0-9_>=/, ]+):[\\s]+(?PPASS|FAIL)" + fixupdict: + PASS: pass + FAIL: fail + diff --git a/openembedded/kselftest-net.yaml b/openembedded/kselftest-net.yaml new file mode 100644 index 0000000..fd5ccdc --- /dev/null +++ b/openembedded/kselftest-net.yaml @@ -0,0 +1,33 @@ +metadata: + name: kselftest-net + format: "Lava-Test-Shell Test Definition 1.0" + description: + "These test code were came from kernel source KERNEL_SRC/tools/testing/selftests/ + For running this test, git is required in the rootfs" + maintainer: + - arthur.she@linaro.org + os: + - openembedded + devices: + - arndale + - beaglebone-black + - rtsm_fvp_base-aemv8a + scope: + - functional + +install: + git-repos: + - http://git.linaro.org/qa/kselftest.git + steps: + - 'cd kselftest' + - 'git checkout $BRANCH' + - 'make -C net' +params: + BRANCH: master + +run: + steps: + - './common/scripts/kselftest-net.sh' + +parse: + pattern: "^(?P[a-z_]+):\\s(?Ppass|fail)" diff --git a/openembedded/kselftest-ptrace.yaml b/openembedded/kselftest-ptrace.yaml new file mode 100644 index 0000000..3c326bb --- /dev/null +++ b/openembedded/kselftest-ptrace.yaml @@ -0,0 +1,34 @@ +metadata: + name: kselftest-ptrace + format: "Lava-Test-Shell Test Definition 1.0" + description: + "These test code were came from kernel source KERNEL_SRC/tools/testing/selftests/ + For running this test, git is required in the rootfs" + maintainer: + - arthur.she@linaro.org + os: + - openembedded + devices: + - arndale + - beaglebone-black + - rtsm_fvp_base-aemv8a + scope: + - functional + +install: + git-repos: + - http://git.linaro.org/qa/kselftest.git + steps: + - 'cd kselftest' + - 'git checkout $BRANCH' + - 'sed -i "1s/^/CFLAGS = -DPAGE_SIZE=4096\n/" ptrace/Makefile' + - 'make -C ptrace' +params: + BRANCH: master + +run: + steps: + - './kselftest/ptrace/peeksiginfo && echo "peeksiginfo selftests: pass" || echo "peeksiginfo selftests: fail"' + +parse: + pattern: "^(?P[a-z_ ]+):\\s(?Ppass|fail)" diff --git a/openembedded/kselftest-vm.yaml b/openembedded/kselftest-vm.yaml new file mode 100644 index 0000000..d19255b --- /dev/null +++ b/openembedded/kselftest-vm.yaml @@ -0,0 +1,38 @@ +metadata: + name: kselftest-vm + format: "Lava-Test-Shell Test Definition 1.0" + description: + "These test code were came from kernel source KERNEL_SRC/tools/testing/selftests/ + For running this test, git is required in the rootfs" + maintainer: + - arthur.she@linaro.org + os: + - openembedded + devices: + - arndale + - beaglebone-black + - rtsm_fvp_base-aemv8a + scope: + - functional + +install: + git-repos: + - http://git.linaro.org/qa/kselftest.git + steps: + - 'cd kselftest' + - 'git checkout $BRANCH' + - 'make -C vm' +params: + BRANCH: master + +run: + steps: + - './common/scripts/kselftest-runner.sh vm ./kselftest/vm/run_vmtests' + +parse: + pattern: "^(?P[a-z_-]+):\\s\\[(?PPASS|FAIL|SKIP)\\]" + fixupdict: + FAIL: fail + PASS: pass + SKIP: skip + -- cgit v1.2.3