]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 5619f64cf6cf222a81f5a64728a3045527d9c773..2750d53851fb7cdc2d717afa8b5f5be015c9edb3 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 6716f3c65d48f0c5a731eda24bd8fa032cee64fe..0319f0e0cfe0d8c681cb8391f3a12a4f90e326b0 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 511733b6ab9516cff8f82baa6a2a8c69318294de..d939aea28e4a4d93ef46b47b9603fe32e9a73a5f 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 b4a6f6e32164b8d8f60d05818b607e0703808cbd..1b8c823ec631cf38d43478e9dfe3fc1cdb8b500c 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