From patchwork Fri May 22 22:39:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Dilger X-Patchwork-Id: 475825 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 6169C14029C for ; Sat, 23 May 2015 08:40:42 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946288AbbEVWjZ (ORCPT ); Fri, 22 May 2015 18:39:25 -0400 Received: from smtp-out-02.shaw.ca ([64.59.136.138]:39233 "EHLO smtp-out-02.shaw.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946002AbbEVWjW (ORCPT ); Fri, 22 May 2015 18:39:22 -0400 Received: from sookie-gig.adilger.int ([96.51.76.157]) by shaw.ca with SMTP id vvb5YtSh17BFNvvb7YN00z; Fri, 22 May 2015 16:39:21 -0600 X-Authority-Analysis: v=2.1 cv=D/qNUKlj c=1 sm=1 tr=0 a=sQcIUxX0G8DGr1HsvJ29bQ==:117 a=sQcIUxX0G8DGr1HsvJ29bQ==:17 a=JGRBYNP-88cr89_YBosA:9 a=DZ-dDrOsKisr4iQi:21 From: Andreas Dilger To: tytso@mit.edu Cc: linux-ext4@vger.kernel.org, Andreas Dilger Subject: [PATCH] tests: skip large filesystem tests on MacOS Date: Fri, 22 May 2015 16:39:18 -0600 Message-Id: <1432334358-6035-1-git-send-email-adilger@dilger.ca> X-Mailer: git-send-email 1.7.3.4 X-CMAE-Envelope: MS4wfDaIA9cGPye4awMUKpQvGFSgrwdh6x41Jlx0HAPnMioXzM2jswf1wglBnsJiHHcq88u6Ko8+S89Mox4HHDhL6avTWv30sH7RMnUOqfZZAkPuVXkj09rsc7s00K5XKH1uS7UAAauKjyJ/KeFpH7p+v0XeKddR+F1RWKhEejE40KxbfsvWd1Ryv3i59bepJ7FsYgTmhH3s9/pOqtqNOf54vVG8DYYVC9JMcGlmOa9KshvW Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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 --- tests/d_dumpe2fs_group_only/script | 6 ++++++ tests/m_bigjournal/script | 1 + tests/m_hugefile/script | 6 ++++++ tests/t_iexpand_full/script | 6 ++++++ tests/t_iexpand_mcsum/script | 5 +++++ tests/t_uninit_bg_rm/script | 6 ++++++ 6 files changed, 30 insertions(+), 0 deletions(-) diff --git a/tests/d_dumpe2fs_group_only/script b/tests/d_dumpe2fs_group_only/script index 127502f..50481f0 100644 --- a/tests/d_dumpe2fs_group_only/script +++ b/tests/d_dumpe2fs_group_only/script @@ -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 diff --git a/tests/m_bigjournal/script b/tests/m_bigjournal/script index 576d99e..96ea082 100644 --- a/tests/m_bigjournal/script +++ b/tests/m_bigjournal/script @@ -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 diff --git a/tests/m_hugefile/script b/tests/m_hugefile/script index 72af8b8..5619f64 100644 --- a/tests/m_hugefile/script +++ b/tests/m_hugefile/script @@ -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 diff --git a/tests/t_iexpand_full/script b/tests/t_iexpand_full/script index 779c66d..f8565a7 100644 --- a/tests/t_iexpand_full/script +++ b/tests/t_iexpand_full/script @@ -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 diff --git a/tests/t_iexpand_mcsum/script b/tests/t_iexpand_mcsum/script index 3057dba..4b584d3 100644 --- a/tests/t_iexpand_mcsum/script +++ b/tests/t_iexpand_mcsum/script @@ -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 diff --git a/tests/t_uninit_bg_rm/script b/tests/t_uninit_bg_rm/script index cd397c5..308ef25 100644 --- a/tests/t_uninit_bg_rm/script +++ b/tests/t_uninit_bg_rm/script @@ -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