]> code.ossystems Code Review - openembedded-core.git/commit
test: add automation framework and sanitytest
authorJiajun Xu <jiajun.xu@intel.com>
Wed, 7 Jul 2010 18:06:58 +0000 (02:06 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 15 Jul 2010 11:48:25 +0000 (12:48 +0100)
commitfd1d661b391dfad1edaac937a17c1165f635031a
tree3bce526d67faf52385482f38c31679db05f6dbd5
parentbd19169a60d5aaadc278439578d06c8027cfecf3
test: add automation framework and sanitytest

Automation test is disabled by default. User need set TESTCLASS
to qemu in conf/local.conf and run bitbake command "bitbake
poky-image-xxx" or "bitbake poky-image-xxx -c qemuimagetest" to
trigger it. Currently only the sanity test with two testcases are
added.

To run the test, user need prepare a testing environment:
1) "expect" should be installed on system
2) NOPASSWD should be set for user to run bitbake

Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
build/conf/local.conf.sample
meta/classes/image.bbclass
meta/classes/imagetest-dummy.bbclass [new file with mode: 0644]
meta/classes/imagetest-qemu.bbclass [new file with mode: 0644]
meta/conf/layer.conf
scripts/qemuimage-testlib [new file with mode: 0644]
scripts/qemuimage-tests/sanity/boot [new file with mode: 0755]
scripts/qemuimage-tests/sanity/ssh [new file with mode: 0755]