mirror of
https://github.com/torarnv/sparsebundlefs.git
synced 2026-03-03 18:28:07 +01:00
27 lines
584 B
Scilab
27 lines
584 B
Scilab
#!/usr/bin/env testrunner.sh
|
|
|
|
source "$(dirname "$0")/testhelpers.sh"
|
|
|
|
function setup() {
|
|
mount_sparsebundle
|
|
}
|
|
|
|
function test_dmg_has_expected_size() {
|
|
size=$(ls -dn $dmg_file | awk '{print $5; exit}')
|
|
test $size -eq 1099511627776
|
|
}
|
|
|
|
function test_dmg_has_correct_owner() {
|
|
owner=$(ls -l $dmg_file | awk '{print $3; exit}')
|
|
test $owner = $(whoami)
|
|
}
|
|
|
|
function test_dmg_has_correct_permissions() {
|
|
permissions=$(ls -l $dmg_file | awk '{print $1; exit}')
|
|
test $permissions = "-r--------"
|
|
}
|
|
|
|
function teardown() {
|
|
umount $mount_dir && rm -Rf $mount_dir
|
|
}
|