From: Theodore Ts'o Date: Tue, 7 Jun 2016 15:52:25 +0000 (-0400) Subject: tests: disable some tests for FreeBSD X-Git-Tag: v1.43.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55e803236332842510df549dfd8a7172c9f91905;p=thirdparty%2Fe2fsprogs.git 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 --- diff --git a/tests/m_hugefile/script b/tests/m_hugefile/script index 5619f64cf..2750d5385 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 6716f3c65..0319f0e0c 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 511733b6a..d939aea28 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 b4a6f6e32..1b8c823ec 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