diff options
author | Michael Halstead <mhalstead@linuxfoundation.org> | 2018-11-08 12:58:40 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-14 11:14:39 +0000 |
commit | 36249d8a1c97b2c5dc67d86115d66008074894dc (patch) | |
tree | 2352fc9dfbc1c873806d9fbd48dc38ed8f51417f /scripts/autobuilder-worker-prereq-tests | |
parent | aba0686c72ebf15ef0f08b7b33844a03891df9fa (diff) | |
download | poky-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-x | scripts/autobuilder-worker-prereq-tests | 10 |
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 | ||
18 | if [ ! -x $HOME/yocto-autobuilder-helper/scripts/checkvnc ]; then | ||
19 | echo "$HOME/yocto-autobuilder-helper should be created." | ||
20 | exit 1 | ||
21 | fi | ||
22 | $HOME/yocto-autobuilder-helper/scripts/checkvnc | ||
23 | |||
18 | . ./oe-init-build-env > /dev/null | 24 | . ./oe-init-build-env > /dev/null |
19 | if [ "$?" != "0" ]; then | 25 | if [ "$?" != "0" ]; then |
20 | exit 1 | 26 | exit 1 |
@@ -53,12 +59,12 @@ if [ ! -e bzImage-qemux86-64.bin ]; then | |||
53 | fi | 59 | fi |
54 | popd | 60 | popd |
55 | bitbake qemu-helper-native | 61 | bitbake qemu-helper-native |
56 | runqemu qemux86-64 | 62 | DISPLAY=:1 runqemu serialstdio qemux86-64 |
57 | if [ "$?" != "0" ]; then | 63 | if [ "$?" != "0" ]; then |
58 | echo "Unable to use runqemu" | 64 | echo "Unable to use runqemu" |
59 | exit 1 | 65 | exit 1 |
60 | fi | 66 | fi |
61 | runqemu qemux86-64 kvm | 67 | DISPLAY=:1 runqemu serialstdio qemux86-64 kvm |
62 | if [ "$?" != "0" ]; then | 68 | if [ "$?" != "0" ]; then |
63 | echo "Unable to use runqemu with kvm" | 69 | echo "Unable to use runqemu with kvm" |
64 | exit 1 | 70 | exit 1 |