summaryrefslogtreecommitdiff
path: root/common/scripts/kvm
AgeCommit message (Collapse)Author
2018-06-21android: common: remove deprecated tests and scriptsMilosz Wasilewski
Change-Id: If0699e2843e019480a61e62aeae94918989c040a Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
2016-02-25test-kvm: fixesRiku Voipio
1. We need curl -L for the new S3 redirect 2. Parsing dmesg may not work as systemd might flood the buffer. Test that kvm dev exists, which is udev will only create if kvm is properly started 3. Update to latest UEFI Change-Id: Ie36b391a41dcd9deca1effa90aa94d2a1198e73e Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2016-02-24kvm-lava: shut down via poststartRiku Voipio
The old ExecStop=shutdown method caused systemd wait for forever to shut down. ExecStartPost seems to work. Change-Id: I3ba593a47c64de75f08c2b0e8527f424c09dcc83 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-09-10kvm: adjust pathsRiku Voipio
With CI changes we have a bunch of new paths Change-Id: Ie54ecd49376cae363c57a2de047c87e3254180c4 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-06-12kvm: fix unreviewed commitRiku Voipio
Somehow a patch slipped directly to test-definitions without gerrit. To make matters worse this patch was broken. This patch should bring proper systemd support for kvm testcases. Change-Id: If7d01f0f5c39b6e4f8b56c5c0bbcbd028a55ae45 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-06-12kvm-lava: migrate to systemdRiku Voipio
Provide support for systemd testing. Choose to use bridged networking when rootfs is not nfs, rather than based on arch. Change-Id: Ic9bfb51230d940d79845f6c2f95735e7e630654e Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-04-10test-kvm.sh: increase deadlineRiku Voipio
It seems 1h of deadline is too short for junos Change-Id: I0c2b3a2739d95aa94d778d5473ff175a3647bd66 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-03-26kvm: use UEFI for testsRiku Voipio
Switch Aarch64 boot to UEFI. - Adapt to url/path changes due to GPT image builds. - Install kernel to the EFI system partition - Use same kernel for guest and host for armv7 - On juno run tests on A53 since UEFI bug only manifesting on A57 - Use xz instead of gz Change-Id: Idd8534a4b6815d7c4e80d353c7b29bb633f268b1 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-03-23kvm bugfixesRiku Voipio
- use hwloc-nox since cpu order on big.LITTLE systems might differ. - fix accumulation of prefixes armv7l-aarch64-kvm-boot-1 [v2] - only upload arm64 logs if they exist Change-Id: Ic9cdd39262ffedc8c9a4674cc5ccc3b4e2d8627a Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-03-12kvm: arm32 on arm64 testsRiku Voipio
Refactor tests to allow testing multiple guests in one run. In this first version, we add armv7 tests on aarch64 host. Also some long-standing issues have been fixed. v2: prefix ping commands so we don't kvm-guest-net-1 twice v3: move binaries to testdata.l.o - download hackbench binaries instead of building. - avoids the question "howto compile armv7 binary on arm64" - lets us drop build-essential from install list - fix host host test-rt-tests.sh invocation - refactor downloads to download both armv7 and aarch64 images - rename logs from *.txt to *.log - avoids error with test-rt-parse.sh - make test-rt-parse.sh show what .txt file it is going to parse - add timeout kill reaper - add armv7 image run to aarch64 build Change-Id: I4f9759328c459b06de3be3062f0fb26d3b98d102 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-02-04KVM: fix IP address after LAB moveMilosz Wasilewski
Change-Id: I72a49efdf8579ad126503d14a8a9fedbf165cc8a Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
2015-01-19sleep before mountRiku Voipio
Calling mount immediately after qemu-nbd seems racy, sometimes mount will fail. 2 sec should be enough. This has caused some spurious failures in kvm results. Change-Id: I6991825bd3f23546a571558578f90284ec57c38f Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-01-12test-kvm.sh: update hwpack urlRiku Voipio
Since the label is now docker-utopic instead of docker, update accordingly. This is something we need to remember to do everytime baseline distro is updated. Change-Id: I6f9529942b877fb8567e9402af86f733d6bd1e50 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-11-13test-rt-tests.sh and test-rt-parse.shBotao Sun
Add Shebang and license declaration. Signed-off by: Botao Sun <botao.sun@linaro.org> Change-Id: I0ecb0b0290a4dad131b564632279d87f89c2754d
2014-10-30test-kvm.sh: POSIX Compliant Update & Other Minor Issues Fix.Botao Sun
Add license declaration; Re-arrange indentations in code; Update the script to POSIX Compliant. Original patch of POSIX compliant comes from: Lucas Dutra Nunes <ldnunes@ossystems.com.br> Signed-off by: Botao Sun <botao.sun@linaro.org> Change-Id: I8215c53be89016f3c256d3b0922960743be4c0f7
2014-10-30test-host.sh: POSIX Compliant Update.Botao Sun
Add license declaration. Update the script to POSIX Compliant. Original patch comes from: Lucas Dutra Nunes <ldnunes@ossystems.com.br> Signed-off by: Botao Sun <botao.sun@linaro.org> Change-Id: I92abc61fca359b1ad579775e84ecff6b87b76fd3
2014-10-20KVM test fixesRiku Voipio
1) CI url changed since the docker migration 2) Use taskset to ensure kvm doesn't migrate A53 -> A57. -> this is ugly and assumes host cpu's don't get renumbered in future. Revisit once kvm supports migration. Change-Id: I454eb1aeba754ce16278fa22d79ae2f8f7042712 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-10-09Load matching kernel for juno guestRiku Voipio
Currently the testcase loads mustang kernel for guest, which should work - but right now we want to test matching kernels. In future we should test released kernels (ubuntu trusty, redhat armv8 preview..), but that is for later times. Change-Id: I4ea4bdcdce2e2cf660405f699c5ab6bb9ca6cb36 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-10-08Fix mustang nbd module loadRiku Voipio
previous patch opened road for juno but broke mustang. Fix uncompressing nbd module Change-Id: I6b66b1032c59bcfebb899bd9c8872e244901dcd2 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-10-07test-kvm.sh generic kernel downloadRiku Voipio
Download guest kernel and nbd module according to flavour. This allows having separate kernel for juno and mustang. Change-Id: Iaeeac6d5ac1749da5d153190252a9d8eab9a8855 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-09-24ping from user networkingRiku Voipio
allow ping from user networking for aarch64 target. Change-Id: Idfbd949835455d289b249a2592930c335c7d0754 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-09-08test-kvm: print qemu versionRiku Voipio
Print used gcc version so nobody gets confused what qemu is used for tests. Change-Id: Ib9834f68a542b8a7426c1d9fa2608f526cc5989d Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-08-25kvm: disable bridge on aarch64Riku Voipio
Don't set up bridge on aarch64 - even if kernel has tun. ARMv8 tests are run on nfsroot so bringing bridge up will kill the job. Change-Id: Ia25fcf2d8955b1f8f73b45edba2899628e4fef44
2014-08-04test-kvm: ensure latest mustang imageRiku Voipio
Currenlty the the scripts will only pull latest version of built image, if all linux-kvm variants (mustang, vexpress, arndale) work. However, if one of the three fails, old kernel and module will be pulled. Fix this by explicitly checking the latest time mustang has built succesfully. Change-Id: Ibb695f8324618b85ae400561a83a3e435bde1d26 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-07-02kvm: add armv8 supportRiku Voipio
Wide range of changes needed to allow kvm tests to run on both ARMv7 and ARMv8 targets. Currently includes some ugly hacks to faciliate booting mustang from nfs (can't use tun). Change-Id: I92ab87b6439b464db14fdef0cbac41efd64ef9a8 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-06-11move to virtio blockRiku Voipio
Switch to virtio block, since sd is emulated interface. While at it, improve installing and compiling hackbench. Avoid compiling in steps since we have scripts in place. Make sure we have gcc and others installed for compiling. Change-Id: I942e6bbafb09b7739156fb8d15f41c6334f16c8c Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-04-09kvm: add sanity check for kvm testHongbo Zhang
If success of former step is precondition of later step, when the former step fails, the later step should be skiped, e.g. if the kvm initialization fails, or the kvm.qcow2.gz isn't downloaded correctly, all the following tests should be skipped, otherwise more failures are generated meanlessly, thus bug reporter and analyzer aren't clear easily about which test fails. Change-Id: Iaaa5c6842f8c6864b309cc6e7716a966986b03ef Signed-off-by: Hongbo Zhang <hongbo.zhang@linaro.org>
2014-02-18KVM: added parsing hackbench measurementsMilosz Wasilewski
rt-tests hackbench was replaced with the version from Ingo Molnar http://people.redhat.com/mingo/cfs-scheduler/tools/hackbench.c hackbench is now called from both host and guest the same way: hackbench 100 process 500 The results are parsed using min_max_avg_parse.py. Result regexp was updated to match the output format of the script. Change-Id: I5d437565d42f45c9411dc8b62540be7b53e0c630 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
2014-01-13common/scripts/kvm/test-kvm.sh: ping gatewayAnders Roxell
Change-Id: I57bb7b2f56d684c79e0c24706dca77254f919c35 Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2014-01-13common/scripts/kvm/test-kvm.sh: fix curl bypass sslAnders Roxell
pass option -k to curl to bypass SSL verification Change-Id: I30d36b62b5d2bdf3cf8a6cfb3ec46f6ef5c89b95 Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2013-12-20kvm/test-kvm.sh: fallback to use wgetAnders Roxell
Need curl on some OE images due to busybox wget don't support https links. Change-Id: Iea0da72b97516e1806c2680866f3ff4479131bb6 Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2013-12-11kvm test fixesRiku Voipio
Kvm tests needed a few fixes to work again: 1. fix case where test is called with $1 2. adapt to new paths 3. make sure console output is not lost Change-Id: I659c64fafeefdbecd7ff7ec664634531c4ee8186 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2013-11-22added lmbench to kvm-benchmark.yaml test for OEAnders Roxell
simplified kvm-lava.conf, and construct tests in test-guest.sh to be called from both kvm.yaml and kvm-benchmark.yaml Using common/scripts/lmbench.sh to run inside the guest parse_lmbench.sh: had to add --text to the grep command because kvm-log.txt becomes in data and not text format. Modifications by Riku: keep kvm-lava.conf around Change-Id: Icfb5ae1ebe46400f018cd591aa4ba97aed56a044 Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2013-10-15kvm: add simple networking test - ping -c 10 192.168.1.10Kim Phillips
- clean up qemu command line - add virtio-net enablement flags to qemu command line - add host bridge for guest networking - simple ping -c 10 Change-Id: I7de29c349e10649045acba5b21aad221574d479a Signed-off-by: Kim Phillips <kim.phillips@linaro.org>
2013-09-25added kvm for OEAnders Roxell
Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2013-09-25kvm test for UbuntuAnders Roxell
based on ci/kvm-ci.git Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>