aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2019-03-12 11:18:39 +0100
committerChase Qi <chase.qi@linaro.org>2019-03-14 10:42:32 +0800
commitdcd149f5bb1387cd02c937ee72e4224d9adbed45 (patch)
tree634d232e1522f282f66abbef38f8fd2bb4cd63a0
parenta50a292fc0829b04b210b9d6b6a00a0e9d9b6db8 (diff)
chroot: add kselftest_chroot
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rw-r--r--automated/linux/chroot/kselftest_chroot.yaml46
1 files changed, 46 insertions, 0 deletions
diff --git a/automated/linux/chroot/kselftest_chroot.yaml b/automated/linux/chroot/kselftest_chroot.yaml
new file mode 100644
index 0000000..f6874f0
--- /dev/null
+++ b/automated/linux/chroot/kselftest_chroot.yaml
@@ -0,0 +1,46 @@
+metadata:
+ name: kselftest-chroot
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Run a chroot"
+ maintainer:
+ - anders.roxell@linaro.org
+ - chase.qi@linaro.org
+ os:
+ - OE
+ scope:
+ - functional
+ devices:
+ - qemu-arm64
+params:
+ #Parameters that is here for the chroot
+ NEW_ROOTFS: https://snapshots.linaro.org/openembedded/lkft/lkft/rocko/am57xx-evm/lkft/linux-next/441/rpb-console-image-lkft-am57xx-evm-20190115034131-441.rootfs.tar.xz
+ TEST_SUITE: kselftest
+
+run:
+ steps:
+ - df -h
+ - pwd
+ - TESTDEF_URL=$(pwd)
+ - cd ./automated/linux/chroot
+ - ./download_and_mount.sh ${NEW_ROOTFS}
+ - . ./pre_setup_run.sh ${TEST_SUITE} ${TESTDEF_URL}
+ - |
+ # overwrite default params.
+ cat << EOF >> /new_root/run.sh
+ KSELFTEST_PATH=$KSELFTEST_PATH
+ SKIPFILE=$SKIPFILE
+ BOARD=$BOARD
+ BRANCH=$BRANCH
+ ENVIRONMENT=$ENVIRONMENT
+ SKIP_INSTALL=$SKIP_INSTALL
+ EOF
+ - . ./post_setup_run.sh ${TEST_SUITE}
+ - cat /new_root/run.sh
+ - chroot /new_root /bin/bash /run.sh
+
+parse:
+ pattern: "^selftests:\\s(?P<test_case_id>\\S+)\\s[[](?P<result>(FAIL|PASS|SKIP))[]]"
+ fixupdict:
+ FAIL: fail
+ PASS: pass
+ SKIP: skip