sysdeploy/tests/drive.sh
Peter Surda d34ff41d97
fix: use sparse loopback file instead of qcow2
- no nbd module in kata so can't use qemu-nbd
2021-02-26 22:33:33 +01:00

20 lines
298 B
Bash
Executable File

#!/bin/bash
function test_partitioning()
{
local img
img=$(mktemp -u)
dd if=/dev/zero of="$img" bs=1M seek=16384 count=0
sudo setup_drive "$img"
sudo parted -ms "$img" -- print
rm -f "$img"
}
function oneTimeSetUp()
{
. drive.inc
}
# Load shUnit2.
. /usr/bin/shunit2