Whamcloud - gitweb
tests: disable some tests for FreeBSD
authorTheodore Ts'o <tytso@mit.edu>
Tue, 7 Jun 2016 15:52:25 +0000 (11:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 7 Jun 2016 15:52:25 +0000 (11:52 -0400)
Unfortunately, FreeBSD doesn't support sparse files in their tmpfs,
and they generlaly don't mount a tmpfs on /tmp anyway.  As a result
certain tests will either OOM kill a FreeBSD (if tmpfs is in use) or
will take forever (if it is not in use).

So let's turn off some tests for FreeBSD (m_hugefile is disabled on
MacOS already, for similar reasons).  We need to find a better
solution in the long term, but for now, these tests are guaranteed to
be a disaster on FreeBSD, so suppress them for now.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/m_hugefile/script
tests/r_64bit_big_expand/script
tests/r_bigalloc_big_expand/script
tests/r_ext4_big_expand/script

index 5619f64..2750d53 100644 (file)
@@ -9,7 +9,11 @@ if [ $(uname -s) = "Darwin" ]; then
        return 0
 fi
 
-#gzip -d < $EXP.gz > $EXP
+if [ $(uname -s) = "FreeBSD" ]; then
+       # creates a 4TB filesystem
+       echo "$test_name: $DESCRIPTION: skipped for FreeBSD (no sparse files)"
+       return 0
+fi
 
 cat > $CONF << ENDL
 [fs_types]
index 6716f3c..0319f0e 100644 (file)
@@ -7,6 +7,11 @@ SIZE_2=2T
 LOG=$test_name.log
 E2FSCK=../e2fsck/e2fsck
 
+if [ $(uname -s) = "FreeBSD" ]; then
+       # creates a 2TB filesystem
+       echo "$test_name: $DESCRIPTION: skipped for FreeBSD"
+       return 0
+fi
 
 . $cmd_dir/scripts/resize_test
 
index 511733b..d939aea 100644 (file)
@@ -8,6 +8,12 @@ LOG=$test_name.log
 E2FSCK=../e2fsck/e2fsck
 RESIZE2FS_OPTS=-f
 
+if [ $(uname -s) = "FreeBSD" ]; then
+       # creates a 2TB filesystem
+       echo "$test_name: $DESCRIPTION: skipped for FreeBSD"
+       return 0
+fi
+
 . $cmd_dir/scripts/resize_test
 
 resize_test
index b4a6f6e..1b8c823 100644 (file)
@@ -7,6 +7,11 @@ SIZE_2=2T
 LOG=$test_name.log
 E2FSCK=../e2fsck/e2fsck
 
+if [ $(uname -s) = "FreeBSD" ]; then
+       # creates a 2TB filesystem
+       echo "$test_name: $DESCRIPTION: skipped for FreeBSD"
+       return 0
+fi
 
 . $cmd_dir/scripts/resize_test