diff options
author | Amit Shah <amit.shah@redhat.com> | 2010-01-27 12:39:33 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2010-01-27 13:14:32 +0530 |
commit | 9869c27316e0650bfa142be5d547eb76c2001348 (patch) | |
tree | db5377f4c1cb1fa5310889779957e60b71d22591 | |
parent | 00684e325d0b58b20b040d67a9a72ab26466e591 (diff) | |
download | test-virtserial-9869c27316e0650bfa142be5d547eb76c2001348.tar.gz test-virtserial-9869c27316e0650bfa142be5d547eb76c2001348.tar.xz test-virtserial-9869c27316e0650bfa142be5d547eb76c2001348.zip |
run-test: allow usage of custom qemu and kernel binaries
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>
-rwxr-xr-x | run-test.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/run-test.sh b/run-test.sh index 6e0835b..bc78328 100755 --- a/run-test.sh +++ b/run-test.sh @@ -1,9 +1,13 @@ #!/bin/bash -QEMU=/home/amit/src/qemu-kvm/x86_64-softmmu/qemu-system-x86_64 +QEMU_DEF=/home/amit/src/qemu-kvm/x86_64-softmmu/qemu-system-x86_64 +KERNEL_DEF=/home/amit/tmp/linux-2.6/arch/x86/boot/bzImage + +QEMU=${QEMU:-$QEMU_DEF} +KERNEL=${KERNEL:-$KERNEL_DEF} GUEST=/guests/f11-auto.qcow2 -KERNEL="-kernel /home/amit/tmp/linux-2.6/arch/x86/boot/bzImage" +KERNEL="-kernel $KERNEL" KERNELARG="-append \"root=/dev/sda2 console=tty0 console=ttyS0\"" CHARDEVS="-chardev socket,path=/tmp/amit/test0,server,nowait,id=test0 \ |