adding new test
This commit is contained in:
parent
3f9166d10f
commit
6ecdcd6d0b
2 changed files with 92 additions and 0 deletions
|
|
@ -0,0 +1,34 @@
|
|||
summary: Test for bz677789 (fsck vfat hangs during checking of VFAT)
|
||||
description: |+
|
||||
Bug summary: fsck.vfat hangs during checking of VFAT if there are chains of orphaned clusters
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=677789
|
||||
Not fixed on RHEL5
|
||||
|
||||
component:
|
||||
- dosfstools
|
||||
test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
recommend:
|
||||
- dosfstools
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- TIPfail_infra
|
||||
- TIPfail_samba
|
||||
- TIPfail_systemd
|
||||
- TIPpass_Apps
|
||||
- Tier3
|
||||
- rhel-6.2
|
||||
tier: '3'
|
||||
link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=677789
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1031690
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=674095
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=745430
|
||||
adjust:
|
||||
- enabled: false
|
||||
when: distro < rhel-6
|
||||
continue: false
|
||||
extra-nitrate: TC#0100426
|
||||
extra-summary: /CoreOS/dosfstools/Regression/bz677789-fsck-vfat-hangs-during-checking-of-VFAT
|
||||
extra-task: /CoreOS/dosfstools/Regression/bz677789-fsck-vfat-hangs-during-checking-of-VFAT
|
||||
58
Regression/bz677789-fsck-vfat-hangs-during-checking-of-VFAT/runtest.sh
Executable file
58
Regression/bz677789-fsck-vfat-hangs-during-checking-of-VFAT/runtest.sh
Executable file
|
|
@ -0,0 +1,58 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/dosfstools/Regression/bz677789-fsck-vfat-hangs-during-checking-of-VFAT
|
||||
# Description: Test for bz677789 (fsck vfat hangs during checking of VFAT)
|
||||
# Author: Branislav Nater <bnater@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2011 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This copyrighted material is made available to anyone wishing
|
||||
# to use, modify, copy, or redistribute it subject to the terms
|
||||
# and conditions of the GNU General Public License version 2.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include rhts environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="dosfstools"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "dd if=/dev/zero of=dosfs bs=512 count=0 seek=16k" 0 "Creating test file"
|
||||
rlRun "mkdosfs -v -R 8 -s 8 dosfs" 0 "Creating dos fs"
|
||||
rlRun "mkdir mountdir" 0 "Creating mount point"
|
||||
rlRun "mount -o loop dosfs mountdir" 0 "Mounting dos fs"
|
||||
rlRun "echo \"Hello world!\" > mountdir/hello.txt" 0 "Creating file on dos fs"
|
||||
rlRun "umount mountdir" 0 "Unmounting fs"
|
||||
rlRun "sync" 0 "flushing filesystem buffers"
|
||||
rlRun "dd if=/dev/zero of=dosfs bs=1 count=64 seek=12288 conv=notrunc" 0 "Corrupting fs"
|
||||
rlRun "dosfsck -a dosfs" 1 "Running fsck on corrupted fs"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
rlJournalPrintText
|
||||
Loading…
Add table
Add a link
Reference in a new issue