X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=t%2Fstat.t;h=c2a7ed07e19a7e34acc59d476b09ebca54fc1ca4;hb=8d5b72e66760d0aebf364ed7b2cdf05d821bea6e;hp=ead3bc6efb748a8b245e5686446939bbf49ad2f3;hpb=a822809a00abd6388959e601b9b6b1572481e4bc;p=zpackage diff --git a/t/stat.t b/t/stat.t index ead3bc6..c2a7ed0 100755 --- a/t/stat.t +++ b/t/stat.t @@ -16,7 +16,7 @@ ltypetest() { okstreq "$res" "$2" "$1 is a $2" } -plan 16 +plan 18 file="/tmp/$fn" @@ -30,6 +30,12 @@ tryrun rmdir $file tryrun touch $file typetest $file regular ltypetest $file regular +size=$(zpm stat -f '%s' $file) +okstreq "$size" 0 'file size is zero' +echo foo > $file +size=$(zpm stat -f '%s' $file) +okstreq "$size" 4 'file foo size is four' + # symlink require ln -s $file $file.symlink