summaryrefslogtreecommitdiffstats
path: root/scripts/autobuilder-worker-prereq-tests
diff options
context:
space:
mode:
authorMichael Halstead <mhalstead@linuxfoundation.org>2018-11-08 12:58:40 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-14 11:14:39 +0000
commit36249d8a1c97b2c5dc67d86115d66008074894dc (patch)
tree2352fc9dfbc1c873806d9fbd48dc38ed8f51417f /scripts/autobuilder-worker-prereq-tests
parentaba0686c72ebf15ef0f08b7b33844a03891df9fa (diff)
downloadpoky-36249d8a1c97b2c5dc67d86115d66008074894dc.tar.gz
scripts/autobuilder-worker-prereq-tests: Shore up qemu testing
Check that yocto-autobuilder-helper has been cloned to the correct location. Check that vnc is running using the same script the autobuilder does. Set the DISPLAY enviroment variable to :1 the same way we do when building normally. Make the VM's serial console available so we can log in and power off allowing the tests to continue. (From OE-Core rev: 5fb26ff0b56eebb864fd8f74c015e414476eec43) Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/autobuilder-worker-prereq-tests')
-rwxr-xr-xscripts/autobuilder-worker-prereq-tests10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/autobuilder-worker-prereq-tests b/scripts/autobuilder-worker-prereq-tests
index bb46c69135..358dd2beee 100755
--- a/scripts/autobuilder-worker-prereq-tests
+++ b/scripts/autobuilder-worker-prereq-tests
@@ -15,6 +15,12 @@
15# test buildistory git repo works? 15# test buildistory git repo works?
16# 16#
17 17
18if [ ! -x $HOME/yocto-autobuilder-helper/scripts/checkvnc ]; then
19 echo "$HOME/yocto-autobuilder-helper should be created."
20 exit 1
21fi
22$HOME/yocto-autobuilder-helper/scripts/checkvnc
23
18. ./oe-init-build-env > /dev/null 24. ./oe-init-build-env > /dev/null
19if [ "$?" != "0" ]; then 25if [ "$?" != "0" ]; then
20 exit 1 26 exit 1
@@ -53,12 +59,12 @@ if [ ! -e bzImage-qemux86-64.bin ]; then
53fi 59fi
54popd 60popd
55bitbake qemu-helper-native 61bitbake qemu-helper-native
56runqemu qemux86-64 62DISPLAY=:1 runqemu serialstdio qemux86-64
57if [ "$?" != "0" ]; then 63if [ "$?" != "0" ]; then
58 echo "Unable to use runqemu" 64 echo "Unable to use runqemu"
59 exit 1 65 exit 1
60fi 66fi
61runqemu qemux86-64 kvm 67DISPLAY=:1 runqemu serialstdio qemux86-64 kvm
62if [ "$?" != "0" ]; then 68if [ "$?" != "0" ]; then
63 echo "Unable to use runqemu with kvm" 69 echo "Unable to use runqemu with kvm"
64 exit 1 70 exit 1