summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/dl-linux-tarball.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/dl-linux-tarball.bash b/tests/dl-linux-tarball.bash
index 9fd8534..5c08b04 100755
--- a/tests/dl-linux-tarball.bash
+++ b/tests/dl-linux-tarball.bash
@@ -8,7 +8,12 @@ TGZ=/tmp/linux-3.0.tar.gz
SIZE_WANT=96675825
SIZE_ACTUAL=0
if [[ -e $TGZ ]]; then
- SIZE_ACTUAL=$(stat -c %s $TGZ)
+ if [[ $OSTYPE == linux* ]] ; then
+ SIZE_ACTUAL=$(stat -c %s $TGZ)
+ else
+ # Mac OS X
+ SIZE_ACTUAL=$(stat -f %z $TGZ)
+ fi
fi
if [[ $SIZE_ACTUAL -ne $SIZE_WANT ]]; then