TEST-30-ISCSI: add test case for "root=iscsi:...." and untabify

master
Harald Hoyer 2012-02-16 11:37:21 +01:00
parent 2a3faa2df9
commit 3905f6695e
1 changed files with 120 additions and 105 deletions

View File

@ -41,6 +41,21 @@ run_client() {
return 1
fi

$testdir/run-qemu \
-hda $TESTDIR/client.img \
-m 256M -nographic \
-net nic,macaddr=52:54:00:12:34:00,model=e1000 \
-net socket,connect=127.0.0.1:12330 \
-kernel /boot/vmlinuz-$KVERSION \
-append "root=iscsi:192.168.50.1::::iqn.2009-06.dracut:target0 ip=192.168.50.101::192.168.50.1:255.255.255.0:iscsi-1:eth0:off rw quiet rd.retry=5 rd.debug rd.info console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \
-initrd $TESTDIR/initramfs.testing
grep -m 1 -q iscsi-OK $TESTDIR/client.img || return 1

if ! dd if=/dev/zero of=$TESTDIR/client.img bs=1M count=1; then
echo "Unable to make client sda image" 1>&2
return 1
fi

$testdir/run-qemu \
-hda $TESTDIR/client.img \
-m 256M -nographic \