summaryrefslogtreecommitdiffstats
path: root/run-test.sh
Commit message (Collapse)AuthorAgeFilesLines
* run-test: Update default kernel dir. to 'linux' instead of 'linux-2.6'Amit Shah2011-09-141-1/+1
| | | | | | | linux-2.6 doesn't make much sense anymore; upstream repo has changed to 'linux', so let's update the location. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Switch to using virtio-blk for the h/dAmit Shah2011-02-231-4/+6
| | | | | | | | | Use virtio-blk with the -drive and -device virtio-blk-pci arguments instead of the default ide device. Also use cache=unsafe for the drive as we don't care about consistency. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Don't append console= params to guest kernelAmit Shah2011-02-231-1/+2
| | | | | | | This doesn't work; bash isn't passing on parameters properly. Need to find out how to do it properly. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: comment about bash's "-s file" conditionalAmit Shah2010-09-131-0/+1
| | | | Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Default to -smp 2Amit Shah2010-08-041-1/+1
| | | | | | | qemu upstream has gained the ability to handle smp with kvm, so let's default to 2 vcpus. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Update default qemu pathsAmit Shah2010-05-291-3/+3
| | | | Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Sleep for a while after sending kill instructions for ↵Amit Shah2010-04-221-0/+5
| | | | | | | | | | | | | qemu/auto-virtserial We removed the sleep a couple of commits earlier but it's needed to ensure we really kill off any stuck qemu/auto-virtserial processes before we start another test. Without the sleep, a new qemu process could be spawned before the kill signal was sent to the older process. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Store pid of spawned qemu process to only kill that pid laterAmit Shah2010-04-221-2/+22
| | | | | | | | We used to kill all processes that had 'qemu' in their name. This was obviously not a good thing for other running qemu processes. Record the pid of the spawned process to only kill that one later. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Remove unnecessary wait before starting testsAmit Shah2010-04-201-3/+0
| | | | | | | We currently spent 5 mins sleeping after a previous test. This delay is not needed; we can directly jump onto the next one. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Split common code in a functionAmit Shah2010-04-201-38/+18
| | | | | | | All the tests for combinations of new and old qemu and kernels used similar code; split it off into a function. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Kill any earlier qemu or auto-virtserial instances before ↵Amit Shah2010-04-191-3/+12
| | | | | | | | | | | executing tests Lacking proper support for creating and destroying qemu and auto-virtseiral processes, this crude way of ensuring no previous qemu or auto-virtserial instances are running is employed. This should be removed if/when all this is properly supported. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run_test: pkill -9 qemu processes after test is doneAmit Shah2010-04-071-3/+3
| | | | | | | Some qemu processes get stuck due to test failures / etc., they don't just go away with a simple pkill. pkill -9 them. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Allow the guest to be specified by an environment variableAmit Shah2010-03-181-1/+2
| | | | | | | Not everyone will have the same guest as me to run, or in the same path. Let it be configurable. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: split big lines into multiple linesAmit Shah2010-02-151-2/+4
| | | | Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: Allow setting number of vcpus at invocation timeAmit Shah2010-01-271-1/+3
| | | | | | | Allow passing the number of vcpus we want be passed on to this script from another script. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: allow older qemu binaries to be specified at invocation timeAmit Shah2010-01-271-4/+4
| | | | | | | To test new kernel compatibility with older qemu, allow older qemu binaries to be specified at invocation time. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: allow usage of custom qemu and kernel binariesAmit Shah2010-01-271-2/+6
| | | | | | | | | | | | | | | | We so far had the binaries to be used for kernel images and qemu hardcoded in this script. Make it now configurable at invocation-time, so things like QEMU=/build/qemu-kvm/x86_64-softmmu/qemu-system-x86_64 \ KERNEL=/build/linux-2.6/arch/x86/boot/bzImage ./run-test.sh work. If these env vars are not provided, the older defaults are used. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: byte_limit option is goneAmit Shah2010-01-271-1/+1
| | | | | | | The byte_limit, or the host throttling feature, has been removed from the upstream virtio-serial code. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: virtio-serial is now an alias for virtio-serial-pciAmit Shah2010-01-191-1/+1
| | | | Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: cache_buffers option is goneAmit Shah2010-01-191-4/+4
| | | | Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: default behaviour now is to not cache buffersAmit Shah2010-01-191-2/+2
| | | | Signed-off-by: Amit Shah <amit.shah@redhat.com>
* run-test: various fixes for the script that runs the testsAmit Shah2009-12-221-12/+13
| | | | | | | | | - enable the monitor on a unix socket - get the guest's serial log in a file - enable all tests - other minor fixups Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: guest throttling no longer neededAmit Shah2009-12-221-1/+1
| | | | | | | With the design change in the kernel module to have IO vqs for each port, guest throttling is no longer needed. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: support for transferring a big file and comparing sha1sumsAmit Shah2009-10-241-1/+1
| | | | | | | There are a lot of values hardcoded; they should become configurable someplace. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: add support for running old qemu/kernelAmit Shah2009-10-241-1/+43
| | | | Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: add virtio-console testsAmit Shah2009-10-241-1/+3
| | | | | | | | This commit adds test for virtio-console functionality on new qemu and guest kernel. Functionality for older qemu and older kernel will come in the following commits. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: use an array to pick up paths instead of argvAmit Shah2009-10-241-1/+1
| | | | | | | This ties us to the script that we have to invoke qemu but it should be fine; all this has to be reworked later anyway. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* Automated test suite for new virtio-console functionalityAmit Shah2009-10-201-0/+30
This commit adds programs that run automated tests in the guest. One program (auto-virtserial.c) is to be run on the host and another (auto-virtserial-guest.c) is to be run in the guest. A README file is added that explains how to run them using the supplied script (run-test.sh). Signed-off-by: Amit Shah <amit.shah@redhat.com>