7 fn=$(echo $$ $(date) | zpm hash -)
10 res=$(zpm-stat -f '%t' "$1")
11 okstreq "$res" "$2" "$1 is a $2"
15 res=$(zpm-stat -l -f '%t' "$1")
16 okstreq "$res" "$2" "$1 is a $2"
25 typetest $file directory
26 ltypetest $file directory
31 typetest $file regular
32 ltypetest $file regular
33 size=$(zpm stat -f '%s' $file)
34 okstreq "$size" 0 'file size is zero'
36 size=$(zpm stat -f '%s' $file)
37 okstreq "$size" 4 'file foo size is four'
41 require ln -s $file $file.symlink
42 typetest $file.symlink regular
43 ltypetest $file.symlink symlink
44 require rm $file.symlink
52 # block and char specials probably require root to create
53 typetest /dev/null character