Some cleanups to fingerprint tests
[qemu-test.git] / tests / simple-ping.sh
1 #!/bin/sh
2
3 in_host() {
4 nic=`choose e1000 virtio`
5 echo "Using networking card: $nic"
6 qemu -nographic -enable-kvm -net user -net nic,model=$nic
7 }
8
9 in_guest() {
10 udhcpc -i eth0 -f -n -q
11 wget -O /dev/null http://www.qemu.org
12 }
13
14 if test $QEMU_TEST; then
15 in_host
16 else
17 in_guest
18 fi