This commit is contained in:
pdancak 2024-10-08 17:03:53 +02:00
commit ffc0425ad4
5 changed files with 169 additions and 0 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

View file

@ -0,0 +1,66 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/mkbootdisk/Regression/bz761590-mkbootdisk-iso-fails-with-Volume-ID-string-too
# Description: Test for bz761590 (mkbootdisk --iso fails with Volume ID string too)
# Author: Petr Sklenar <psklenar@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2012 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.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export TEST=/CoreOS/mkbootdisk/Regression/bz761590-mkbootdisk-iso-fails-with-Volume-ID-string-too
export TESTVERSION=1.1
BUILT_FILES=
FILES=$(METADATA) runtest.sh Makefile PURPOSE
.PHONY: all install download clean
run: $(FILES) build
./runtest.sh
build: $(BUILT_FILES)
test -x runtest.sh || chmod a+x runtest.sh
clean:
rm -f *~ $(BUILT_FILES)
include /usr/share/rhts/lib/rhts-make.include
$(METADATA): Makefile
@echo "Owner: Petr Sklenar <psklenar@redhat.com>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "Description: Test for bz761590 (mkbootdisk --iso fails with Volume ID string too)" >> $(METADATA)
@echo "Type: Regression" >> $(METADATA)
@echo "TestTime: 15m" >> $(METADATA)
@echo "RunFor: mkbootdisk" >> $(METADATA)
@echo "Requires: mkbootdisk" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
@echo "Bug: 761590" >> $(METADATA)
@echo "Architectures: i386 x86_64" >> $(METADATA)
@echo "Releases: -RHEL5 -RedHatEnterpriseLinuxClient5 -RedHatEnterpriseLinuxServer5" >> $(METADATA)
rhts-lint $(METADATA)

View file

@ -0,0 +1,5 @@
PURPOSE of /CoreOS/mkbootdisk/Regression/bz761590-mkbootdisk-iso-fails-with-Volume-ID-string-too
Description: Test for bz761590 (mkbootdisk --iso fails with Volume ID string too)
Author: Petr Sklenar <psklenar@redhat.com>
Bug summary: mkbootdisk --iso fails with Volume ID string too long
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=761590

View file

@ -0,0 +1,37 @@
summary: Test for bz761590 (mkbootdisk --iso fails with Volume ID string too)
description: |+
Bug summary: mkbootdisk --iso fails with Volume ID string too long
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=761590
contact: Petr Dancak <pdancak@redhat.com>
component:
- mkbootdisk
test: ./runtest.sh
framework: beakerlib
recommend:
- mkbootdisk
duration: 15m
enabled: true
tag:
- NoRHEL5
- TIPfail_infra
- TIPpass
- Tier1
tier: '1'
link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=761590
adjust:
- enabled: false
when: arch != x86_64
continue: false
- enabled: false
when: distro == rhel-5
continue: false
- enabled: false
when: distro > rhel-7
continue: false
extra-nitrate: TC#0136562
extra-summary: /CoreOS/mkbootdisk/Regression/bz761590-mkbootdisk-iso-fails-with-Volume-ID-string-too
extra-task: /CoreOS/mkbootdisk/Regression/bz761590-mkbootdisk-iso-fails-with-Volume-ID-string-too
id: 1b33dd27-5610-4d1e-81b8-226a6eaadd36

View file

@ -0,0 +1,60 @@
#!/bin/bash
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/mkbootdisk/Regression/bz761590-mkbootdisk-iso-fails-with-Volume-ID-string-too
# Description: Test for bz761590 (mkbootdisk --iso fails with Volume ID string too)
# Author: Petr Sklenar <psklenar@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2012 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 Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="mkbootdisk"
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE
mytempdir=`mktemp -d`
mytempfile=`mktemp`
rlPhaseEnd
rlPhaseStartTest "test the bug"
rlRun "mkbootdisk --iso --device $mytempfile `uname -r`"
rlRun "file $mytempfile | grep -i boot"
rlPhaseEnd
rlPhaseStartTest "sanity test"
rlRun "mount -o loop $mytempfile $mytempdir"
lines=`find $mytempdir | wc -l`
if [ "$lines" -ge "6" ];then
rlPass "there is $lines lines"
else
rlFail "there is $lines lines"
fi
rlPhaseEnd
rlPhaseStartCleanup
umount $mytempdir
rm -rf $mytempdir $mytempfile
rlPhaseEnd
rlJournalPrintText
rlJournalEnd