From 55e803236332842510df549dfd8a7172c9f91905 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 7 Jun 2016 11:52:25 -0400 Subject: [PATCH] tests: disable some tests for FreeBSD 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 --- tests/m_hugefile/script | 6 +++++- tests/r_64bit_big_expand/script | 5 +++++ tests/r_bigalloc_big_expand/script | 6 ++++++ tests/r_ext4_big_expand/script | 5 +++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/tests/m_hugefile/script b/tests/m_hugefile/script index 5619f64..2750d53 100644 --- a/tests/m_hugefile/script +++ b/tests/m_hugefile/script @@ -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] diff --git a/tests/r_64bit_big_expand/script b/tests/r_64bit_big_expand/script index 6716f3c..0319f0e 100644 --- a/tests/r_64bit_big_expand/script +++ b/tests/r_64bit_big_expand/script @@ -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 diff --git a/tests/r_bigalloc_big_expand/script b/tests/r_bigalloc_big_expand/script index 511733b..d939aea 100644 --- a/tests/r_bigalloc_big_expand/script +++ b/tests/r_bigalloc_big_expand/script @@ -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 diff --git a/tests/r_ext4_big_expand/script b/tests/r_ext4_big_expand/script index b4a6f6e..1b8c823 100644 --- a/tests/r_ext4_big_expand/script +++ b/tests/r_ext4_big_expand/script @@ -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 -- 1.8.3.1