Add support for grml2hd
[grml-unittests.git] / grml2hd / grml2hd-common
1 CMDLINE="$CMDLINE_COMMON noprompt netscript=$URL_PREFIX:$COMMON_PORT/$NAME/deploy.sh status=$URL_PREFIX:$STATUS_PORT/ common=$URL_PREFIX:$COMMON_PORT/common.sh"
2 IMAGE=$(tempfile)
3 KVM_PARAMS="-hda $IMAGE"
4 TIMEOUT_TIME=300
5 TEST_NAME=grml2hd-$NAME
6 BAILOUT_CMD='rm -f $IMAGE ; kill -9 $TEST_PID $PARENT 2>/dev/null'
7
8 # create sample image file
9 dd if=/dev/zero of=$IMAGE bs=1024 count=2120000 2>/dev/null
10
11 # run the test (will create a bootable device
12 run_test
13 timeout
14 wait $KVM_PID
15
16 # start second kvm
17 kvm -vnc :0 -hda $IMAGE  &
18 TEST_PID=$!
19
20
21 wait $SERVER_PID
22 kill -9 $TEST_PID
23 rm -f $IMAGE