t2sde/tests/992-install-lvm-raid-text-minimal.cmd
René Rebe 2f40be059c * initial lvm-raid unit test
git-svn-id: https://svn.exactcode.de/t2/trunk@73738 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
2025-02-06 10:12:26 +00:00

22 lines
471 B
Batchfile

#!/bin/sh
source ${0%/*}/qemu.in
[ "$isoboot" ] || exit 43
# only thru kvm for performance reasons
[ "${qemuargs/--enable-kvm/}" = "$qemuargs" ] && exit 42
cd $SYSROOT
hda=/tmp/$$.hda hdb=/tmp/$$.hdb
hda=/srv/hda hdb=/srv/hdb
qemu-img create $hda -f qcow2 120G
qemu-img create $hdb -f qcow2 120G
expect -f ${0%.cmd}.exp $QEMUSYS $qemuargs -smp 8 -m $((highmem * 8)) ${extstorage}$ISO $isoboot \
${intstorage}$hda ${intstorage2}$hdb
ret=$?
#rm -f $hda $hdb
exit $?