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