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>
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]
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
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
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