22 lines
422 B
Bash
Executable File
22 lines
422 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 2> /dev/null
|
|
setup_drive "$img"
|
|
sed -i "s|T_E_M_P|$img|g;" tests/data/parted.dat
|
|
output=$(parted -ms "$img" -- print)
|
|
rm -f "$img"
|
|
assertEquals "$(cat tests/data/parted.dat)" "$output"
|
|
}
|
|
|
|
function oneTimeSetUp()
|
|
{
|
|
. drive.inc
|
|
}
|
|
|
|
# Load shUnit2.
|
|
. /usr/bin/shunit2
|