sysdeploy/tests/drive.sh

20 lines
288 B
Bash
Raw Normal View History

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