]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
tests: skip large filesystem tests on MacOS
authorAndreas Dilger <adilger@dilger.ca>
Sat, 20 Jun 2015 01:31:26 +0000 (21:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 20 Jun 2015 01:31:26 +0000 (21:31 -0400)
Skip tests that create large filesystem on MacOS, since HFS doesn't
have sparse file support and this causes testing to be uninterruptible
for minutes while mke2fs is writing to some large non-zero offset and
filling up the test filesystem.  Since most testing is done on Linux
this shouldn't cause a significant gap in testing coverage.

Tests skipped are d_dumpe2fs_group_only, m_bigjournal, m_hugefile,
t_iexpand_full, t_iexpand_mcsum, and t_uninit_bg_rm.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/d_dumpe2fs_group_only/script
tests/m_bigjournal/script
tests/m_hugefile/script
tests/t_iexpand_full/script
tests/t_iexpand_mcsum/script
tests/t_uninit_bg_rm/script

index 127502f50fa9f02fd0026409b8c90b4405fa2d42..50481f02705421a5554e2fa5d2a88dd95681c450 100644 (file)
@@ -1,3 +1,9 @@
+if [ $(uname -s) = "Darwin" ]; then
+       # creates a 4GB filesystem
+       echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)"
+       return 0
+fi
+
 if test -x $DEBUGFS_EXE; then
 
 FSCK_OPT=-fy
index 576d99ecb23f09f20341b20e9a1e5feee9702cc8..96ea082ebe036b60b840f77706d9aff11b9aa452 100644 (file)
@@ -4,6 +4,7 @@ DUMPE2FS_IGNORE_80COL=1
 export DUMPE2FS_IGNORE_80COL
 MKE2FS_OPTS="-t ext4 -G 512 -N 1280 -J size=5000 -q -E lazy_journal_init,lazy_itable_init,nodiscard"
 if [ $(uname -s) = "Darwin" ]; then
+       # creates a 44GB filesystem
        echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)"
        return 0
 fi
index 72af8b8ac5898337e2686b908b08b59a89695d48..5619f64cf6cf222a81f5a64728a3045527d9c773 100644 (file)
@@ -3,6 +3,12 @@ OUT=$test_name.log
 EXP=$test_dir/expect
 CONF=$TMPFILE.conf
 
+if [ $(uname -s) = "Darwin" ]; then
+       # creates a 4TB filesystem
+       echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)"
+       return 0
+fi
+
 #gzip -d < $EXP.gz > $EXP
 
 cat > $CONF << ENDL
index 779c66d760773f6befbf09362182710a567bc55a..f8565a74029006579c279a827271c50c84554244 100644 (file)
@@ -1,5 +1,11 @@
 if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
 
+if [ $(uname -s) = "Darwin" ]; then
+       # creates a 3GB filesystem
+       echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)"
+       return 0
+fi
+
 FSCK_OPT=-fn
 OUT=$test_name.log
 EXP=$test_dir/expect
index 3057dbaa5cbebb4af3d5c6aa9e424e99852aa044..4b584d37744495ebaf27ed4ce72c7f813b0146f3 100644 (file)
@@ -1,4 +1,9 @@
 if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
+if [ $(uname -s) = "Darwin" ]; then
+       # creates a 3GB filesystem
+       echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)"
+       return 0
+fi
 
 FSCK_OPT=-fn
 OUT=$test_name.log
index cd397c5b3c911c679d9fb43e40138a25d3937db1..308ef25594bec8bcfe3647e98ce00e5082981cb3 100644 (file)
@@ -3,6 +3,12 @@ OUT=$test_name.log
 FSCK_OPT=-yf
 EXP=$test_dir/expect
 
+if [ $(uname -s) = "Darwin" ]; then
+       # creates a 10GB filesystem
+       echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)"
+       return 0
+fi
+
 cp /dev/null $TMPFILE
 rm -f $OUT.new