#6 Added fmf metadata for executing tests with tmt
Opened 4 years ago by odubaj. Modified 3 years ago
tests/ odubaj/cpio master  into  master

file removed
-4
@@ -1,4 +0,0 @@ 

- Cpio Tests

- ===========

- 

- repository for cpio tests

This shouldn't be dropped.

@@ -0,0 +1,63 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/cpio/Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio

+ #   Description: Test for BZ#1135423 (Segmentation fault (core dumped) when cpio)

+ #   Author: Tereza Cerna <tcerna@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2014 Red Hat, Inc.

+ #

+ #   This program is free software: you can redistribute it and/or

+ #   modify it under the terms of the GNU General Public License as

+ #   published by the Free Software Foundation, either version 2 of

+ #   the License, or (at your option) any later version.

+ #

+ #   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, see http://www.gnu.org/licenses/.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ export TEST=/CoreOS/cpio/Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio

+ export TESTVERSION=1.0

+ 

+ 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:           Tereza Cerna <tcerna@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for BZ#1135423 (Segmentation fault (core dumped) when cpio)" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          cpio" >> $(METADATA)

+ 	@echo "Requires:        cpio" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2+" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Bug:             1135423 1138148" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,5 @@ 

+ PURPOSE of /CoreOS/cpio/Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio

+ Description: Test for BZ#1135423 (Segmentation fault (core dumped) when cpio)

+ Author: Tereza Cerna <tcerna@redhat.com>

+ Bug summary: Segmentation fault (core dumped) when cpio compress /sys directory

+ Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1135423

@@ -0,0 +1,16 @@ 

+ component:

+ - cpio

+ contact: Vaclav Danek <vdanek@redhat.com>

+ description: |

+     Bug summary: Segmentation fault (core dumped) when cpio compress /sys directory

+     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1135423

+ duration: 5m

+ enabled: true

+ require:

+ - cpio

+ summary: Test for BZ#1135423 (Segmentation fault (core dumped) when cpio)

+ tag:

+ - TIPpass

+ - Tier2

+ task: /CoreOS/cpio/Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio

+ tcms: TC#0403393

@@ -0,0 +1,49 @@ 

+ #!/bin/bash

+ # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/cpio/Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio

+ #   Description: Test for BZ#1135423 (Segmentation fault (core dumped) when cpio)

+ #   Author: Tereza Cerna <tcerna@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2014 Red Hat, Inc.

+ #

+ #   This program is free software: you can redistribute it and/or

+ #   modify it under the terms of the GNU General Public License as

+ #   published by the Free Software Foundation, either version 2 of

+ #   the License, or (at your option) any later version.

+ #

+ #   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, see http://www.gnu.org/licenses/.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ # Include Beaker environment

+ . /usr/share/beakerlib/beakerlib.sh || exit 1

+ 

+ PACKAGE="cpio"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "find /sys |cpio -ocvB > a.cpio" 0,2

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,14 @@ 

+ Owner:           Tereza Cerna <tcerna@redhat.com>

+ Name:            /CoreOS/cpio/Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio

+ TestVersion:     1.0

+ Path:            /mnt/tests/CoreOS/cpio/Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio

+ Description:     Test for BZ#1135423 (Segmentation fault (core dumped) when cpio)

+ Type:            Regression

+ TestTime:        5m

+ RunFor:          cpio

+ Requires:        cpio

+ Priority:        Normal

+ License:         GPLv2+

+ Confidential:    no

+ Destructive:     no

+ Bug:             1135423 1145039

@@ -0,0 +1,64 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/cpio/Regression/bz1155814-cpio-creates-zero-size-hardlinks-when-original

+ #   Description: Test for BZ#1155814 (cpio creates zero-size hardlinks when original)

+ #   Author: Petr Sklenar <psklenar@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2016 Red Hat, Inc.

+ #

+ #   This program is free software: you can redistribute it and/or

+ #   modify it under the terms of the GNU General Public License as

+ #   published by the Free Software Foundation, either version 2 of

+ #   the License, or (at your option) any later version.

+ #

+ #   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, see http://www.gnu.org/licenses/.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ export TEST=/CoreOS/cpio/Regression/bz1155814-cpio-creates-zero-size-hardlinks-when-original

+ export TESTVERSION=1.0

+ 

+ BUILT_FILES=

+ 

+ FILES=$(METADATA) runtest.sh Makefile PURPOSE rhbz1155814-repro.tar.gz

+ 

+ .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 BZ#1155814 (cpio creates zero-size hardlinks when original)" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          cpio" >> $(METADATA)

+ 	@echo "Requires:        cpio tar gcc" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2+" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Bug:             1155814" >> $(METADATA)

+ 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,5 @@ 

+ PURPOSE of /CoreOS/cpio/Regression/bz1155814-cpio-creates-zero-size-hardlinks-when-original

+ Description: Test for BZ#1155814 (cpio creates zero-size hardlinks when original)

+ Author: Petr Sklenar <psklenar@redhat.com>

+ Bug summary: cpio creates zero-size hardlinks when original file's inode is too large

+ Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1155814

@@ -0,0 +1,23 @@ 

+ component:

+ - cpio

+ contact: Vaclav Danek <vdanek@redhat.com>

+ description: |

+     Bug summary: cpio creates zero-size hardlinks when original file's inode is too large

+     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1155814

+ duration: 5m

+ enabled: true

+ relevancy: |

+     distro = rhel-4, rhel-5: False

+ require:

+ - cpio

+ - tar

+ - gcc

+ - make

+ summary: Test for BZ#1155814 (cpio creates zero-size hardlinks when original)

+ tag:

+ - NoRHEL4

+ - NoRHEL5

+ - TIPpass

+ - Tier2

+ task: /CoreOS/cpio/Regression/bz1155814-cpio-creates-zero-size-hardlinks-when-original

+ tcms: TC#0535420

@@ -0,0 +1,54 @@ 

+ #!/bin/bash

+ # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/cpio/Regression/bz1155814-cpio-creates-zero-size-hardlinks-when-original

+ #   Description: Test for BZ#1155814 (cpio creates zero-size hardlinks when original)

+ #   Author: Petr Sklenar <psklenar@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2016 Red Hat, Inc.

+ #

+ #   This program is free software: you can redistribute it and/or

+ #   modify it under the terms of the GNU General Public License as

+ #   published by the Free Software Foundation, either version 2 of

+ #   the License, or (at your option) any later version.

+ #

+ #   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, see http://www.gnu.org/licenses/.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ # Include Beaker environment

+ . /usr/share/beakerlib/beakerlib.sh || exit 1

+ 

+ PACKAGE="cpio"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "cp rhbz1155814-repro.tar.gz $TmpDir"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "tar -xvf rhbz1155814-repro.tar.gz"

+         rlRun "cd rhbz1155814-repro"

+         rlRun "make &> log"

+         rlRun "grep '^OK$' log"

+         rlLog "`echo log;cat log`"

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,64 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/cpio/Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix

+ #   Description: Test for BZ#1318084 (cpio 2.11 fails to extract archive (upstream fix)

+ #   Author: Vaclav Danek <vdanek@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2017 Red Hat, Inc.

+ #

+ #   This program is free software: you can redistribute it and/or

+ #   modify it under the terms of the GNU General Public License as

+ #   published by the Free Software Foundation, either version 2 of

+ #   the License, or (at your option) any later version.

+ #

+ #   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, see http://www.gnu.org/licenses/.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ export TEST=/CoreOS/cpio/Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix

+ export TESTVERSION=1.0

+ 

+ BUILT_FILES=

+ 

+ FILES=$(METADATA) runtest.sh Makefile PURPOSE osxupd10.11.3.dmg.chunk expected.out

+ 

+ .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:           Vaclav Danek <vdanek@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for BZ#1318084 (cpio 2.11 fails to extract archive (upstream fix)" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          cpio" >> $(METADATA)

+ 	@echo "Requires:        cpio" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2+" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Bug:             1318084" >> $(METADATA)

+ 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,5 @@ 

+ PURPOSE of /CoreOS/cpio/Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix

+ Description: Test for BZ#1318084 (cpio 2.11 fails to extract archive (upstream fix)

+ Author: Vaclav Danek <vdanek@redhat.com>

+ Bug summary: cpio 2.11 fails to extract archive (upstream fix available, backport request)

+ Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1318084

@@ -0,0 +1,173 @@ 

+ ./System/Library/Extensions/AMDShared.bundle/Contents/_CodeSignature

+ ./System/Library/Extensions/AMDShared.bundle/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AMDShared.bundle/Contents/version.plist

+ ./System/Library/Extensions/AMDSupport.kext

+ ./System/Library/Extensions/AMDSupport.kext/Contents

+ ./System/Library/Extensions/AMDSupport.kext/Contents/Info.plist

+ ./System/Library/Extensions/AMDSupport.kext/Contents/MacOS

+ ./System/Library/Extensions/AMDSupport.kext/Contents/MacOS/AMDSupport

+ ./System/Library/Extensions/AMDSupport.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/AMDSupport.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AMDSupport.kext/Contents/version.plist

+ ./System/Library/Extensions/ATIRadeonX2000.kext

+ ./System/Library/Extensions/ATIRadeonX2000.kext/Contents

+ ./System/Library/Extensions/ATIRadeonX2000.kext/Contents/MacOS

+ ./System/Library/Extensions/ATIRadeonX2000.kext/Contents/MacOS/ATIRadeonX2000

+ ./System/Library/Extensions/ATIRadeonX2000.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/ATIRadeonX2000.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/ATIRadeonX2000.kext/Contents/version.plist

+ ./System/Library/Extensions/ATIRadeonX2000GA.plugin

+ ./System/Library/Extensions/ATIRadeonX2000GA.plugin/Contents

+ ./System/Library/Extensions/ATIRadeonX2000GA.plugin/Contents/MacOS

+ ./System/Library/Extensions/ATIRadeonX2000GA.plugin/Contents/MacOS/ATIRadeonX2000GA

+ ./System/Library/Extensions/ATIRadeonX2000GA.plugin/Contents/_CodeSignature

+ ./System/Library/Extensions/ATIRadeonX2000GA.plugin/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/ATIRadeonX2000GA.plugin/Contents/version.plist

+ ./System/Library/Extensions/ATIRadeonX2000GLDriver.bundle

+ ./System/Library/Extensions/ATIRadeonX2000GLDriver.bundle/Contents

+ ./System/Library/Extensions/ATIRadeonX2000GLDriver.bundle/Contents/MacOS

+ ./System/Library/Extensions/ATIRadeonX2000GLDriver.bundle/Contents/MacOS/ATIRadeonX2000GLDriver

+ ./System/Library/Extensions/ATIRadeonX2000GLDriver.bundle/Contents/_CodeSignature

+ ./System/Library/Extensions/ATIRadeonX2000GLDriver.bundle/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/ATIRadeonX2000GLDriver.bundle/Contents/version.plist

+ ./System/Library/Extensions/ATIRadeonX2000VADriver.bundle

+ ./System/Library/Extensions/ATIRadeonX2000VADriver.bundle/Contents

+ ./System/Library/Extensions/ATIRadeonX2000VADriver.bundle/Contents/MacOS

+ ./System/Library/Extensions/ATIRadeonX2000VADriver.bundle/Contents/MacOS/ATIRadeonX2000VADriver

+ ./System/Library/Extensions/ATIRadeonX2000VADriver.bundle/Contents/_CodeSignature

+ ./System/Library/Extensions/ATIRadeonX2000VADriver.bundle/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/ATIRadeonX2000VADriver.bundle/Contents/version.plist

+ ./System/Library/Extensions/Apple16X50Serial.kext

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/Info.plist

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/MacOS

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/MacOS/Apple16X50Serial

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/PlugIns

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/PlugIns/Apple16X50ACPI.kext

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/PlugIns/Apple16X50ACPI.kext/Contents

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/PlugIns/Apple16X50ACPI.kext/Contents/Info.plist

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/PlugIns/Apple16X50ACPI.kext/Contents/MacOS

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/PlugIns/Apple16X50ACPI.kext/Contents/MacOS/Apple16X50ACPI

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/PlugIns/Apple16X50ACPI.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/PlugIns/Apple16X50ACPI.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/PlugIns/Apple16X50ACPI.kext/Contents/version.plist

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/Apple16X50Serial.kext/Contents/version.plist

+ ./System/Library/Extensions/AppleACPIPlatform.kext

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/Info.plist

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/MacOS

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/MacOS/AppleACPIPlatform

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIButtons.kext

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIButtons.kext/Contents

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIButtons.kext/Contents/Info.plist

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIButtons.kext/Contents/MacOS

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIButtons.kext/Contents/MacOS/AppleACPIButtons

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIButtons.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIButtons.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIButtons.kext/Contents/version.plist

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIEC.kext

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIEC.kext/Contents

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIEC.kext/Contents/Info.plist

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIEC.kext/Contents/MacOS

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIEC.kext/Contents/MacOS/AppleACPIEC

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIEC.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIEC.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/PlugIns/AppleACPIEC.kext/Contents/version.plist

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleACPIPlatform.kext/Contents/version.plist

+ ./System/Library/Extensions/AppleAHCIPort.kext

+ ./System/Library/Extensions/AppleAHCIPort.kext/Contents

+ ./System/Library/Extensions/AppleAHCIPort.kext/Contents/Info.plist

+ ./System/Library/Extensions/AppleAHCIPort.kext/Contents/MacOS

+ ./System/Library/Extensions/AppleAHCIPort.kext/Contents/MacOS/AppleAHCIPort

+ ./System/Library/Extensions/AppleAHCIPort.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleAHCIPort.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleAHCIPort.kext/Contents/version.plist

+ ./System/Library/Extensions/AppleAPIC.kext

+ ./System/Library/Extensions/AppleAPIC.kext/Contents

+ ./System/Library/Extensions/AppleAPIC.kext/Contents/Info.plist

+ ./System/Library/Extensions/AppleAPIC.kext/Contents/MacOS

+ ./System/Library/Extensions/AppleAPIC.kext/Contents/MacOS/AppleAPIC

+ ./System/Library/Extensions/AppleAPIC.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleAPIC.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleAPIC.kext/Contents/version.plist

+ ./System/Library/Extensions/AppleBMC.kext

+ ./System/Library/Extensions/AppleBMC.kext/Contents

+ ./System/Library/Extensions/AppleBMC.kext/Contents/Info.plist

+ ./System/Library/Extensions/AppleBMC.kext/Contents/MacOS

+ ./System/Library/Extensions/AppleBMC.kext/Contents/MacOS/AppleBMC

+ ./System/Library/Extensions/AppleBMC.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleBMC.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleBMC.kext/Contents/version.plist

+ ./System/Library/Extensions/AppleBacklight.kext

+ ./System/Library/Extensions/AppleBacklight.kext/Contents

+ ./System/Library/Extensions/AppleBacklight.kext/Contents/Info.plist

+ ./System/Library/Extensions/AppleBacklight.kext/Contents/MacOS

+ ./System/Library/Extensions/AppleBacklight.kext/Contents/MacOS/AppleBacklight

+ ./System/Library/Extensions/AppleBacklight.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleBacklight.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleBacklight.kext/Contents/version.plist

+ ./System/Library/Extensions/AppleBacklightExpert.kext

+ ./System/Library/Extensions/AppleBacklightExpert.kext/AppleBacklightExpert

+ ./System/Library/Extensions/AppleBacklightExpert.kext/Info.plist

+ ./System/Library/Extensions/AppleBacklightExpert.kext/_CodeSignature

+ ./System/Library/Extensions/AppleBacklightExpert.kext/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleBacklightExpert.kext/version.plist

+ ./System/Library/Extensions/AppleBluetoothMultitouch.kext

+ ./System/Library/Extensions/AppleBluetoothMultitouch.kext/Contents

+ ./System/Library/Extensions/AppleBluetoothMultitouch.kext/Contents/Info.plist

+ ./System/Library/Extensions/AppleBluetoothMultitouch.kext/Contents/MacOS

+ ./System/Library/Extensions/AppleBluetoothMultitouch.kext/Contents/MacOS/AppleBluetoothMultitouch

+ ./System/Library/Extensions/AppleBluetoothMultitouch.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleBluetoothMultitouch.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleBluetoothMultitouch.kext/Contents/version.plist

+ ./System/Library/Extensions/AppleBluetoothRemote.kext

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/Info.plist

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/MacOS

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/MacOS/AppleBluetoothRemote

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBButtonsHID.plugin

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBButtonsHID.plugin/Contents

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBButtonsHID.plugin/Contents/Info.plist

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBButtonsHID.plugin/Contents/MacOS

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBButtonsHID.plugin/Contents/MacOS/AEBButtonsHID

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBButtonsHID.plugin/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBButtonsHID.plugin/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBButtonsHID.plugin/Contents/version.plist

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBDeviceManagementHID.plugin

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBDeviceManagementHID.plugin/Contents

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBDeviceManagementHID.plugin/Contents/Info.plist

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBDeviceManagementHID.plugin/Contents/MacOS

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBDeviceManagementHID.plugin/Contents/MacOS/AEBDeviceManagementHID

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBDeviceManagementHID.plugin/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBDeviceManagementHID.plugin/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBDeviceManagementHID.plugin/Contents/version.plist

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBProximityHID.plugin

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBProximityHID.plugin/Contents

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBProximityHID.plugin/Contents/Info.plist

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBProximityHID.plugin/Contents/MacOS

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBProximityHID.plugin/Contents/MacOS/AEBProximityHID

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBProximityHID.plugin/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBProximityHID.plugin/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBProximityHID.plugin/Contents/version.plist

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBSensorsHID.plugin

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBSensorsHID.plugin/Contents

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBSensorsHID.plugin/Contents/Info.plist

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBSensorsHID.plugin/Contents/MacOS

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBSensorsHID.plugin/Contents/MacOS/AEBSensorsHID

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBSensorsHID.plugin/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBSensorsHID.plugin/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/PlugIns/AEBSensorsHID.plugin/Contents/version.plist

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/_CodeSignature

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/_CodeSignature/CodeResources

+ ./System/Library/Extensions/AppleBluetoothRemote.kext/Contents/version.plist

+ ./System/Library/Extensions/AppleCameraInterface.kext

+ ./System/Library/Extensions/AppleCameraInterface.kext/Contents

+ ./System/Library/Extensions/AppleCameraInterface.kext/Contents/Info.plist

+ ./System/Library/Extensions/AppleCameraInterface.kext/Contents/MacOS

+ ./System/Library/Extensions/AppleCameraInterface.kext/Contents/MacOS/AppleCameraInterface

@@ -0,0 +1,22 @@ 

+ component:

+ - cpio

+ contact: Vaclav Danek <vdanek@redhat.com>

+ description: |

+     Bug summary: cpio 2.11 fails to extract archive (upstream fix available, backport request)

+     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1318084

+ duration: 5m

+ enabled: true

+ relevancy: |

+     distro = rhel-4, rhel-5, rhel-6: False

+     distro < rhel-7.5: False

+ require:

+ - cpio

+ summary: Test for BZ#1318084 (cpio 2.11 fails to extract archive (upstream fix)

+ tag:

+ - NoRHEL4

+ - NoRHEL5

+ - TIP_fedora_pass

+ - TIPpass

+ - Tier2

+ task: /CoreOS/cpio/Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix

+ tcms: TC#0561654

@@ -0,0 +1,54 @@ 

+ #!/bin/bash

+ # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/cpio/Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix

+ #   Description: Test for BZ#1318084 (cpio 2.11 fails to extract archive (upstream fix)

+ #   Author: Vaclav Danek <vdanek@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2017 Red Hat, Inc.

+ #

+ #   This program is free software: you can redistribute it and/or

+ #   modify it under the terms of the GNU General Public License as

+ #   published by the Free Software Foundation, either version 2 of

+ #   the License, or (at your option) any later version.

+ #

+ #   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, see http://www.gnu.org/licenses/.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ # Include Beaker environment

+ . /usr/share/beakerlib/beakerlib.sh || exit 1

+ 

+ PACKAGE="cpio"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "cp osxupd10.11.3.dmg.chunk expected.out $TmpDir/"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "file osxupd10.11.3.dmg.chunk"

+         rlRun "unxz < osxupd10.11.3.dmg.chunk > osxupd10.11.3.dmg.chunk.unxz" 1 "this returns 1 because it is chunk"

+         rlRun -s "cpio --format odc -t < osxupd10.11.3.dmg.chunk.unxz 2>/dev/null" 1,2 "this returns 1 because it is chunk"

+         rlAssertNotDiffer $rlRun_LOG expected.out

+         rm -f $rlRun_LOG

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,64 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/cpio/Regression/bz1386662-RFE-support-for-cpio-reproducible

+ #   Description: Test for BZ#1386662 ([RFE] support for cpio --reproducible)

+ #   Author: Vaclav Danek <vdanek@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2017 Red Hat, Inc.

+ #

+ #   This program is free software: you can redistribute it and/or

+ #   modify it under the terms of the GNU General Public License as

+ #   published by the Free Software Foundation, either version 2 of

+ #   the License, or (at your option) any later version.

+ #

+ #   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, see http://www.gnu.org/licenses/.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ export TEST=/CoreOS/cpio/Regression/bz1386662-RFE-support-for-cpio-reproducible

+ export TESTVERSION=1.0

+ 

+ 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:           Vaclav Danek <vdanek@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for BZ#1386662 ([RFE] support for cpio --reproducible)" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          cpio" >> $(METADATA)

+ 	@echo "Requires:        cpio" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2+" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Bug:             1386662" >> $(METADATA)

+ 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,5 @@ 

+ PURPOSE of /CoreOS/cpio/Regression/bz1386662-RFE-support-for-cpio-reproducible

+ Description: Test for BZ#1386662 ([RFE] support for cpio --reproducible)

+ Author: Vaclav Danek <vdanek@redhat.com>

+ Bug summary: [RFE] support for cpio --reproducible

+ Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1386662

@@ -0,0 +1,20 @@ 

+ component:

+ - cpio

+ contact: Vaclav Danek <vdanek@redhat.com>

+ description: |

+     Bug summary: [RFE] support for cpio --reproducible

+     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1386662

+ duration: 5m

+ enabled: true

+ relevancy: |

+     distro = rhel-4, rhel-5, rhel-6: False

+     distro < rhel-7.5: False

+ require:

+ - cpio

+ summary: Test for BZ#1386662 ([RFE] support for cpio --reproducible)

+ tag:

+ - NoRHEL4

+ - NoRHEL5

+ - Tier2

+ task: /CoreOS/cpio/Regression/bz1386662-RFE-support-for-cpio-reproducible

+ tcms: TC#0561712

@@ -0,0 +1,53 @@ 

+ #!/bin/bash

+ # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/cpio/Regression/bz1386662-RFE-support-for-cpio-reproducible

+ #   Description: Test for BZ#1386662 ([RFE] support for cpio --reproducible)

+ #   Author: Vaclav Danek <vdanek@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2017 Red Hat, Inc.

+ #

+ #   This program is free software: you can redistribute it and/or

+ #   modify it under the terms of the GNU General Public License as

+ #   published by the Free Software Foundation, either version 2 of

+ #   the License, or (at your option) any later version.

+ #

+ #   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, see http://www.gnu.org/licenses/.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ # Include Beaker environment

+ . /usr/share/beakerlib/beakerlib.sh || exit 1

+ 

+ PACKAGE="cpio"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "touch foo.test" 0 "Creating the foo test file"

+         rlRun "ls *.test | cpio -ov --reproducible > foo.cpio" 0 "Creating archive with --reproducible"

+         rlRun "rm *.test" 0 "Removing original file."

+         rlRun "cpio -idv < foo.cpio" 0 "Exctracting content from archive"

+         rlAssertExist "foo.test"

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,65 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/cpio/Regression/bz1483571-cpio-fails-with-checksum-error-larger-files-200M

+ #   Description: Test for BZ#1483571 (cpio fails with checksum error larger files >~200M)

+ #   Author: Daniel Rusek <drusek@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2017 Red Hat, Inc.

+ #

+ #   This program is free software: you can redistribute it and/or

+ #   modify it under the terms of the GNU General Public License as

+ #   published by the Free Software Foundation, either version 2 of

+ #   the License, or (at your option) any later version.

+ #

+ #   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, see http://www.gnu.org/licenses/.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ export TEST=/CoreOS/cpio/Regression/bz1483571-cpio-fails-with-checksum-error-larger-files-200M

+ export TESTVERSION=1.0

+ 

+ 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:           Daniel Rusek <drusek@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for BZ#1483571 (cpio fails with checksum error larger files >~200M)" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          cpio" >> $(METADATA)

+ 	@echo "Requires:        cpio" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2+" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Bug:             1483571" >> $(METADATA)

+ 	@echo "Bug:             1415081" >> $(METADATA)

+ 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,5 @@ 

+ PURPOSE of /CoreOS/cpio/Regression/bz1483571-cpio-fails-with-checksum-error-larger-files-200M

+ Description: Test for BZ#1483571 (cpio fails with checksum error larger files >~200M)

+ Author: Daniel Rusek <drusek@redhat.com>

+ Bug summary: cpio fails with checksum error larger files >~200M [rhel-7.4.z]

+ Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1483571

@@ -0,0 +1,21 @@ 

+ component:

+ - cpio

+ contact: Vaclav Danek <vdanek@redhat.com>

+ description: |

+     Bug summary: cpio fails with checksum error larger files >~200M [rhel-7.4.z]

+     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1483571

+ duration: 5m

+ enabled: true

+ relevancy: |

+     distro = rhel-4, rhel-5: False

+ require:

+ - cpio

+ summary: Test for BZ#1483571 (cpio fails with checksum error larger files >~200M)

+ tag:

+ - NoRHEL4

+ - NoRHEL5

+ - TIP_fedora_pass

+ - TIPfail

+ - Tier2

+ task: /CoreOS/cpio/Regression/bz1483571-cpio-fails-with-checksum-error-larger-files-200M

+ tcms: TC#0560408

@@ -0,0 +1,53 @@ 

+ #!/bin/bash

+ # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/cpio/Regression/bz1483571-cpio-fails-with-checksum-error-larger-files-200M

+ #   Description: Test for BZ#1483571 (cpio fails with checksum error larger files >~200M)

+ #   Author: Daniel Rusek <drusek@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2017 Red Hat, Inc.

+ #

+ #   This program is free software: you can redistribute it and/or

+ #   modify it under the terms of the GNU General Public License as

+ #   published by the Free Software Foundation, either version 2 of

+ #   the License, or (at your option) any later version.

+ #

+ #   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, see http://www.gnu.org/licenses/.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ # Include Beaker environment

+ . /usr/share/beakerlib/beakerlib.sh || exit 1

+ 

+ PACKAGE="cpio"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "dd if=/dev/urandom of=rand bs=1M count=300" 0 "Creating 300MB test file"

+         rlRun "echo rand | cpio --create --format=crc --verbose > rand.cpio" 0 "Creating cpio archive from the test file"

+         rlRun -s "cpio --extract --only-verify-crc < rand.cpio" 0 "Extracting the cpio archive"

+         rlAssertNotGrep "checksum error" $rlRun_LOG

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rm $rlRun_LOG;

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,65 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/cpio/Regression/bz238862-cpio-Illegal-seek

+ #   Description: Test for BZ#238862 (cpio Illegal seek)

+ #   Author: Alex Sersen <asersen@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/cpio/Regression/bz238862-cpio-Illegal-seek

+ export TESTVERSION=1.0

+ 

+ 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:           Alex Sersen <asersen@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for BZ#238862 (cpio Illegal seek)" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          cpio" >> $(METADATA)

+ 	@echo "Requires:        cpio rsh-server rsh rmt" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Bug:             238862" >> $(METADATA)

+ 	@echo "Releases:        -RHEL7" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,5 @@ 

+ PURPOSE of /CoreOS/cpio/Regression/bz238862-cpio-Illegal-seek

+ Description: Test for BZ#238862 (cpio Illegal seek)

+ Author: Alex Sersen <asersen@redhat.com>

+ Bug summary: cpio Illegal seek

+ Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=238862

@@ -0,0 +1,20 @@ 

+ component:

+ - cpio

+ contact: Vaclav Danek <vdanek@redhat.com>

+ description: |

+     Bug summary: cpio Illegal seek

+     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=238862

+ duration: 5m

+ enabled: true

+ require:

+ - cpio

+ - rsh-server

+ - rsh

+ - rmt

+ summary: Test for BZ#238862 (cpio Illegal seek)

+ tag:

+ - NoRHEL7

+ - TIPpass

+ task: /CoreOS/cpio/Regression/bz238862-cpio-Illegal-seek

+ tcms: TC#0197334

+ 

@@ -0,0 +1,79 @@ 

+ #!/bin/bash

+ # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/cpio/Regression/bz238862-cpio-Illegal-seek

+ #   Description: Test for BZ#238862 (cpio Illegal seek)

+ #   Author: Alex Sersen <asersen@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="cpio"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "pushd $TmpDir"

+ 	rlFileBackup /etc/xinetd.d/{rexec,rlogin,rsh}

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+ 

+ for file in rexec rlogin rsh; do

+ 	cp /etc/xinetd.d/$file /etc/xinetd.d/$file.bz238862

+ 	sed 's/yes/no/g' /etc/xinetd.d/$file > /etc/xinetd.d/$file.new

+ 	mv /etc/xinetd.d/$file.new /etc/xinetd.d/$file

+ done

+ 

+ 	rlRun "touch a.cpio" 0

+ 	rlRun "echo 'localhost' >> ~/.rhosts" 0

+ 	restorecon -v /root/.rhosts

+ 	rlLog "`/bin/ls -Z /root/.rhosts`"

+ 	rlRun "echo 'localhost' >> /etc/hosts.equiv" 0

+ 	rlRun "echo 'rsh'       >> /etc/securetty" 0

+ 

+ 	rlServiceStart xinetd

+ 	rlRun "sleep 2"

+ 	rlRun "find . -print | cpio -oacB  --rsh-command=`which rsh` -O localhost:$PWD/a.cpio" 0

+ 	SIZE=`ls -l a.cpio | awk '{ print $5 }'`

+ 	if [[ $SIZE -ne 0 ]]; then

+ 		rlPass "Size is: $SIZE"

+ 	else

+ 		rlFail "Size is: $SIZE"

+ 	fi

+ 

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+ 	rlLog "`rpm -qa rsh\*`"

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+ 	rlFileRestore

+ 	rlServiceRestore xinetd

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

+ 

@@ -0,0 +1,64 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/cpio/Regression/bz564368-cpio-ssh-and-rsh-test-of-bad-archive

+ #   Description: it test cpio over ssh rsh

+ #   Author: Jan Scotka <jscotka@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2010 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/cpio/Regression/bz564368-cpio-ssh-and-rsh-test-of-bad-archive

+ export TESTVERSION=2.0

+ 

+ BUILT_FILES=

+ 

+ FILES=$(METADATA) runtest.sh Makefile PURPOSE

+ 

+ .PHONY: all install download clean

+ 

+ run: $(FILES) build

+ 	./runtest.sh

+ 

+ build: $(BUILT_FILES)

+ 	chmod a+x runtest.sh

+ 

+ clean:

+ 	rm -f *~ $(BUILT_FILES)

+ 

+ 

+ include /usr/share/rhts/lib/rhts-make.include

+ 

+ $(METADATA): Makefile

+ 	@echo "Owner:           Jan Scotka <jscotka@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     it test cpio over ssh rsh" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          cpio" >> $(METADATA)

+ 	@echo "Requires:        cpio rsh rsh-server rmt strace xinetd" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2" >> $(METADATA)

+ 	@echo "Confidential:    yes" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Bug:             564368" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,3 @@ 

+ PURPOSE of /CoreOS/cpio/Regression/bz564368-cpio-ssh-and-rsh-test-of-bad-archive

+ Description: it test cpio over ssh rsh

+ Author: Jan Scotka <jscotka@redhat.com>

@@ -0,0 +1,21 @@ 

+ component:

+ - cpio

+ contact: Vaclav Danek <vdanek@redhat.com>

+ description: ''

+ duration: 5m

+ enabled: true

+ require:

+ - cpio

+ - rsh

+ - rsh-server

+ - rmt

+ - strace

+ - xinetd

+ summary: it test cpio over ssh rsh

+ tag:

+ - TIP_fedora_fail

+ - TIPpass

+ - Tier2

+ - Tier3

+ task: /CoreOS/cpio/Regression/bz564368-cpio-ssh-and-rsh-test-of-bad-archive

+ tcms: TC#0134708

@@ -0,0 +1,126 @@ 

+ #!/bin/bash

+ # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/cpio/Regression/bz564368-cpio-ssh-and-rsh-test-of-bad-archive

+ #   Description: it test cpio over ssh rsh

+ #   Author: Jan Scotka <jscotka@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2010 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="cpio"

+ setenforce 0

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlFileBackup /etc/pam.d/rsh

+         rlFileBackup /etc/securetty

+         rlFileBackup /etc/ssh/ssh_config

+         rlFileBackup /etc/xinetd.d/rlogin

+         rlFileBackup /etc/xinetd.d/rsh

+         rlFileBackup /root/.ssh/config

+         rlFileBackup /root/.ssh/id_rsa

+         rlFileBackup /root/.ssh/id_rsa.pub

+         rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"

+         rlRun "pushd $TmpDir"

+ echo "#! /bin/sh

+ echo A0

+ echo A2000000000

+ cat /dev/zero

+ " > /tmp/rmt

+ 

+ cp /etc/securetty{,.backup}

+ mv -f /sbin/rmt /sbin/rmt.backup

+ mv -f /tmp/rmt /sbin/rmt

+ chmod a+x /sbin/rmt

+ su - root -c 'mv /root/.ssh/authorized_keys{,.bak}'

+ 

+ echo "Host *

+ 	StrictHostKeyChecking no

+ " >> /root/.ssh/config

+ echo "Host *

+ 	StrictHostKeyChecking no

+ " >> /etc/ssh/ssh_config

+ #snd

+ mv -f /usr/bin/rsh /usr/bin/rsh.backup

+ ln -s /usr/bin/ssh /usr/bin/rsh

+     rlPhaseEnd

+ #===============================================

+     rlPhaseStartTest

+ #generate keys to ssh

+ rm /root/.ssh/id_rsa* -fr

+ su - root -c 'echo /root/.ssh/id_rsa | ssh-keygen -t rsa -N "" '

+ cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys

+ 

+ #command

+ su - root -c 'strace -o /tmp/ssh_cpio_out cpio -i -I localhost: &'

+ sleep 10; kill -9 `pidof strace`

+ 

+ 

+ 

+ #restore rsh

+ mv -f /usr/bin/rsh{.backup,}

+ 

+ 

+ #dalsi

+ #up2date -i rsh-server | yum -y install rsh-server

+ chkconfig rsh on

+ chkconfig rlogin on

+ echo "rsh" >> /etc/securetty

+ echo "rlogin" >> /etc/securetty

+ perl -pi -e 's?auth\s+required\s+pam_securetty.so?auth\tsufficient\tpam_securetty.so?' /etc/pam.d/rsh

+ 

+ rlServiceStart xinetd

+ 

+ su - root -c 'strace -o /tmp/rsh_cpio_out cpio -i -I localhost: &'

+ sleep 10; kill -9 `pidof strace`

+ 

+ 

+ rlLog ssh

+ rlRun 'tail /tmp/ssh_cpio_out |grep -q "read error"' 0  

+ rlRun 'tail /tmp/ssh_cpio_out|grep -q "EFAULT (Bad address)"' 1

+ rlRun 'cat  /tmp/ssh_cpio_out|grep -q ": Input/output error"' 1

+ #rlLog rsh

+ #rlRun 'tail /tmp/rsh_cpio_out |grep -q "read error"' 0

+ #rlRun 'tail /tmp/rsh_cpio_out|grep -q "EFAULT (Bad address)"' 1

+ #rlRun 'cat  /tmp/rsh_cpio_out|grep -q ": Input/output error"' 1

+ 

+     rlPhaseEnd

+ #===============================================

+     rlPhaseStartCleanup

+ mv -f /sbin/rmt{.backup,}

+ mv -f /root/.ssh/authorized_keys{.bak,}

+ mv -f /etc/securetty{.backup,}

+ chkconfig rsh off

+ chkconfig rlogin off

+ 

+ setenforce 1

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+         rlRun "rm -f /root/.ssh/id_rsa.pub"

+         rlFileRestore

+         rlServiceRestore xinetd

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,65 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/cpio/Regression/bz568069-cpio-various-flaws-rhel-5-9

+ #   Description: Test for BZ#568069 (cpio various flaws [rhel-5.9])

+ #   Author: Alex Sersen <asersen@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/cpio/Regression/bz568069-cpio-various-flaws-rhel-5-9

+ export TESTVERSION=1.0

+ 

+ BUILT_FILES=

+ 

+ FILES=$(METADATA) runtest.sh Makefile PURPOSE longername.cpio.bz2

+ 

+ .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:           Alex Sersen <asersen@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for BZ#568069 (cpio various flaws [rhel-5.9])" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          cpio" >> $(METADATA)

+ 	@echo "Requires:        cpio" >> $(METADATA)

+ 	@echo "Requires:        bzip2" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Bug:             568069" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,5 @@ 

+ PURPOSE of /CoreOS/cpio/Regression/bz568069-cpio-various-flaws-rhel-5-9

+ Description: Test for BZ#568069 (cpio various flaws [rhel-5.9])

+ Author: Alex Sersen <asersen@redhat.com>

+ Bug summary: cpio various flaws [rhel-5.9]

+ Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=568069

@@ -0,0 +1,18 @@ 

+ component:

+ - cpio

+ contact: Vaclav Danek <vdanek@redhat.com>

+ description: |

+     Bug summary: cpio various flaws [rhel-5.9]

+     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=568069

+ duration: 5m

+ enabled: true

+ require:

+ - cpio

+ - bzip2

+ summary: Test for BZ#568069 (cpio various flaws [rhel-5.9])

+ tag:

+ - TIP_fedora_pass

+ - TIPpass

+ - Tier2

+ task: /CoreOS/cpio/Regression/bz568069-cpio-various-flaws-rhel-5-9

+ tcms: TC#0173335

@@ -0,0 +1,54 @@ 

+ #!/bin/bash

+ # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/cpio/Regression/bz568069-cpio-various-flaws-rhel-5-9

+ #   Description: Test for BZ#568069 (cpio various flaws [rhel-5.9])

+ #   Author: Alex Sersen <asersen@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="cpio"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         cp longername.cpio.bz2 $TmpDir

+         rlRun "pushd $TmpDir"

+ 	ULIMIT_D=`ulimit -a | grep -i stack | awk '{printf $5"\n"}'`

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+ 	rlRun "ulimit -s 2048" 0

+ 	rlRun "bunzip2 -c longername.cpio.bz2 | cpio -i --no-absolute-filenames" 0

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+ 	ulimit -s $ULIMIT_D

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,64 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/cpio/Regression/bz867834-cpio-buffer-overflow-split-long-name-ustar

+ #   Description: Test for BZ#867834 (cpio buffer overflow (split_long_name, ustar)

+ #   Author: Alex Sersen <asersen@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2013 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/cpio/Regression/bz867834-cpio-buffer-overflow-split-long-name-ustar

+ export TESTVERSION=1.0

+ 

+ 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:           Alex Sersen <asersen@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for BZ#867834 (cpio buffer overflow (split_long_name, ustar)" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          cpio" >> $(METADATA)

+ 	@echo "Requires:        cpio" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Bug:             867834" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,5 @@ 

+ PURPOSE of /CoreOS/cpio/Regression/bz867834-cpio-buffer-overflow-split-long-name-ustar

+ Description: Test for BZ#867834 (cpio buffer overflow (split_long_name, ustar)

+ Author: Alex Sersen <asersen@redhat.com>

+ Bug summary: cpio buffer overflow (split_long_name, ustar format)

+ Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=867834

@@ -0,0 +1,18 @@ 

+ component:

+ - cpio

+ contact: Vaclav Danek <vdanek@redhat.com>

+ description: |

+     Bug summary: cpio buffer overflow (split_long_name, ustar format)

+     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=867834

+ duration: 5m

+ enabled: true

+ require:

+ - cpio

+ summary: Test for BZ#867834 (cpio buffer overflow (split_long_name, ustar)

+ tag:

+ - TIPpass

+ - TIPpass_FIPS

+ - Tier2

+ - TipWaived5

+ task: /CoreOS/cpio/Regression/bz867834-cpio-buffer-overflow-split-long-name-ustar

+ tcms: TC#0281891

@@ -0,0 +1,56 @@ 

+ #!/bin/bash

+ # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/cpio/Regression/bz867834-cpio-buffer-overflow-split-long-name-ustar

+ #   Description: Test for BZ#867834 (cpio buffer overflow (split_long_name, ustar)

+ #   Author: Alex Sersen <asersen@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2013 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="cpio"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+ MYDIR=`printf 'x%.0s' {1..67}`/`printf 'x%.0s' {1..88}`/

+ 	rlRun "mkdir -p $MYDIR" 0

+ 	rlRun "echo $MYDIR | cpio -o -H ustar > archive" 0

+ orig=`echo $MYDIR | sed 's|/||g'`

+ stored=`cat archive | cpio -t 2>/dev/null | sed 's|/||g'`

+ 	rlRun "[ \"$stored\" = \"$orig\" ]" 0

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

+ 

@@ -0,0 +1,64 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/cpio/Regression/bz867870-cpio-buffer-overflow-split-long-name-ustar

+ #   Description: Test for BZ#867870 (cpio buffer overflow (split_long_name, ustar)

+ #   Author: Jan Scotka <jscotka@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/cpio/Regression/bz867870-cpio-buffer-overflow-split-long-name-ustar

+ export TESTVERSION=1.0

+ 

+ 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:           Jan Scotka <jscotka@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for BZ#867870 (cpio buffer overflow (split_long_name, ustar)" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        10m" >> $(METADATA)

+ 	@echo "RunFor:          cpio" >> $(METADATA)

+ 	@echo "Requires:        cpio strace" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Bug:             867870" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,5 @@ 

+ PURPOSE of /CoreOS/cpio/Regression/bz867870-cpio-buffer-overflow-split-long-name-ustar

+ Description: Test for BZ#867870 (cpio buffer overflow (split_long_name, ustar)

+ Author: Jan Scotka <jscotka@redhat.com>

+ Bug summary: cpio buffer overflow (split_long_name, ustar format)

+ Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=867870

@@ -0,0 +1,19 @@ 

+ component:

+ - cpio

+ contact: Vaclav Danek <vdanek@redhat.com>

+ description: |

+     Bug summary: cpio buffer overflow (split_long_name, ustar format)

+     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=867870

+ duration: 10m

+ enabled: true

+ require:

+ - cpio

+ - strace

+ summary: Test for BZ#867870 (cpio buffer overflow (split_long_name, ustar)

+ tag:

+ - TIPpass

+ - TIPpass_FIPS

+ - Tier2

+ - TipWaived6

+ task: /CoreOS/cpio/Regression/bz867870-cpio-buffer-overflow-split-long-name-ustar

+ tcms: TC#0218108

@@ -0,0 +1,70 @@ 

+ #!/bin/bash

+ # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/cpio/Regression/bz867870-cpio-buffer-overflow-split-long-name-ustar

+ #   Description: Test for BZ#867870 (cpio buffer overflow (split_long_name, ustar)

+ #   Author: Jan Scotka <jscotka@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="cpio"

+ DN="qwertyuioplkjhgfdsazxcvbnmqwertyuioplkjhgfdsazxcvbnmqwertyuioplkjhgfdsazxcvbnmqwertyuioplkjhgfdsazxcvbnm"

+ TMPOUT=`mktemp`

+ TMPERR=`mktemp`

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "TmpDir2=\$(mktemp -d)" 0 "Creating tmp directory"

+ 

+         rlRun "pushd $TmpDir"

+ 	TMP=$TmpDir

+         for foo in `seq 10`; do

+                 TMP=$TMP/$DN

+                 mkdir -p $TMP

+                 mkdir -p $TmpDir/$foo/$DN

+         done

+ 	rlRun "pushd $TmpDir2"

+         rlRun "mkdir -p aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "find $TmpDir | cpio -a -on --no-absolute-filenames -H ustar > $TMPOUT 2>$TMPERR"

+ 	rlRun "cat $TMPERR | grep 'file name too long'"

+ 

+         rlLog "Testing part, previous was sanity"

+ 	rlRun "echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ | strace cpio -a -ov --no-absolute-filenames -H ustar > $TMPOUT 2>$TMPERR"

+         rlRun "cat $TMPERR | grep 'file name too long'" 1

+         rlRun "cat $TMPERR | grep 'SIGABRT'" 1

+ 

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

+         rlRun "rm -r $TmpDir $TmpDir2 $TMPOUT $TMPERR" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -1,3 +1,16 @@ 

- summary: create/extract (sanity)

- description: ssia

- tier: 1

+ component:

+ - cpio

+ description: ''

+ duration: 5m

+ enabled: true

+ path: /Sanity/sanity-test-create-extract

+ relevancy: |

+     distro = rhel-4, rhel-5: False

+ require:

+ - cpio

+ - tar

+ - gcc

+ summary: it creates archive in file and extract files then

+ task: /CoreOS/cpio/Sanity/sanity-test-create-extract

+ tag:

+ - Tier1

@@ -27,8 +27,7 @@ 

  # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  

  # Include rhts environment

- . /usr/bin/rhts-environment.sh

- . /usr/lib/beakerlib/beakerlib.sh

+ . /usr/share/beakerlib/beakerlib.sh || exit 1

  

  PACKAGE="cpio"

  

@@ -0,0 +1,8 @@ 

+ component: cpio

+ duration: 180m

+ requires:

+ - cpio

+ summary: with files >= 4GB, \"cpio -o...\" gives 0 exit code even though file isn't

+     stored completely. This test should PASS on releases >= {RHEL4.5, FC5}

+ relevancy: |

+     distro = rhel-4, rhel-5: False

@@ -0,0 +1,154 @@ 

+ #! /bin/bash

+ 

+ # File: runtest.sh

+ # RHTS test for bugs 183224, 172865

+ # Description: with files >= 4GB, "cpio -o..." gives 0 exit code 

+ #              even though file isn't stored completely

+ 

+ 

+ 

+ # source the test script helpers

+ . /usr/bin/rhts_environment.sh

+ 

+ # feel free to change as needed

+ OUTPUTFILE=`mktemp /mnt/testarea/large-files-exit-code.log.XXXXX`

+ 

+ # ----- Start test -----

+ exec >> "${OUTPUTFILE}" 2>&1

+ 

+ # tests functionality of cpio against bug

+ # params: @ $1	format

+ #         @ $2  size in MB

+ #         @ $3  expected exit code

+ # 

+ cpioTest() 

+ {

+     echo "-------------------------------------------------------"

+     echo "test $TESTNUM"

+     echo 

+ 	echo $TESTFILE | /bin/cpio -o -H $1 > $TESTCPIO 

+ 	EXITCODE=$?

+ 	if [ $EXITCODE -ne $3 ] ; 	then

+             echo "+ exitcode of '/bin/cpio -o -H $1' > $TESTCPIO was $EXITCODE"

+             echo "+ expected was $3"

+             echo "*** Create problem " 

+ 	    echo "--- Format \"$1\" size $2"

+             echo

+ 	    let "score += 1" # increment number of failures

+ 	fi

+ 

+ 	if [ $3 -eq 1 ] ; then

+             echo "*** Nothing to extract. Skipping '/bin/cpio -iv < $TESTCPIO'"

+ 	    echo 

+             let "TESTNUM += 1"

+             return;

+ 	fi

+ 	rm $TESTFILE

+ 	/bin/cpio -iv < $TESTCPIO

+ 	EXITCODE=$?

+ 	if [ $EXITCODE -eq 1 ] ; then

+     	    echo "++ exitcode of '/bin/cpio -iv < $TESTCPIO' was $EXITCODE"

+ 	    echo "*** Extract problem"

+      	    echo "--- Format \"$1\" size $2"

+             echo 

+ 	    let "score += 1" # increment number of failures

+ 	fi

+     let "TESTNUM += 1"

+ }

+ 

+ chck_disk_space ()

+ {

+ #TODO add checking for available disk free space....

+ 	echo "----- disk usage  -----"

+ 	df -hlP  

+ 	echo "----- folder size -----"

+ 	du -h ./

+ 	echo "-----------------------"

+ }

+ 

+ 

+ result=FAIL

+ score=0

+ 

+ TESTNUM=1

+ TOTALTESTNUM=16

+ 

+ TESTFILE="cpio-testfile"

+ TESTCPIO="$TESTFILE.cpio"

+ 

+ 	echo "===== Start test =============================="

+ 	echo "Testing cpio bugs 183224, 172865"

+ 	echo "Log: $OUTPUTFILE"

+ 	date

+ 	uname -a

+ 	echo 

+ 	

+ 	echo

+ 	size=5

+ 	echo "===== Checking small("$size"MB) file ================"

+ 	dd if=/dev/zero of="$TESTFILE" bs=1M count=$size

+ 	cpioTest bin $size 0

+ 	cpioTest odc $size 0

+ 	cpioTest newc $size 0

+ 	cpioTest crc $size 0

+ 	

+ 	echo

+ 	size=3075

+ 	echo "===== Checking big("$size"MB) file ==============="

+ 	dd if=/dev/zero of="$TESTFILE" bs=1M count=$size

+ 	cpioTest bin $size 0

+ 	cpioTest odc $size 0

+ 	cpioTest newc $size 0

+ 	cpioTest crc $size 0

+ 	

+ 	echo

+ 	size=6075

+ 	echo "===== Checking extra big("$size"MB) file ========="

+ 	dd if=/dev/zero of="$TESTFILE" bs=1M count=$size

+ 	cpioTest bin $size 1

+ 	cpioTest newc $size 1

+ 	cpioTest crc $size 1

+ 	cpioTest odc $size 0

+ 	

+ 	echo

+ 	size=9075

+ 	echo "===== Checking extra big("$size"MB) file ========="

+ 	dd if=/dev/zero of="$TESTFILE" bs=1M count=$size

+ 	cpioTest bin $size 1

+ 	cpioTest newc $size 1

+ 	cpioTest crc $size 1

+ 	cpioTest odc $size 1

+ 

+ echo

+ echo     "==============================================="

+ echo

+ 

+ rm $TESTCPIO

+ rm $TESTFILE

+ 

+ # ----- End test -----

+ if [ $score -eq 0 ] ; then 

+ 	result=PASS

+ fi

+ # check if all tests were run

+ let "TESTNUM -= 1"

+ if [ $TESTNUM -ne $TOTALTESTNUM ] ; then

+     result=FAIL

+     echo "Not all tests were run. Premature interruption?" 

+ fi

+ 

+ echo     "===== Summary ================================="

+ echo     "Total # of testcases run: $TESTNUM" 

+ echo     "Expected # of testcases:  $TOTALTESTNUM" 

+ echo     "Result:                   $result"

+ echo 

+ 

+ # ----- Report results -----

+ echo     "-----------------------------------------------"

+ echo "Test:$TEST Result:$result Score:$score"

+ echo 

+ 

+ report_result $TEST $result $score

+ 

+ 

+ 

file modified
+1 -3
@@ -1,6 +1,4 @@ 

  contact: Pavel Raiskup <praiskup@redhat.com>

  component: [cpio]

  test: ./runtest.sh

- duration: 1m

- tier: 1

- tags: [classic, container, atomic]

+ distros: [fedora, rhel-7, rhel-8]

file removed
-11
@@ -1,11 +0,0 @@ 

- # This file is here because we want to run Fedora CI also for

- # pull-requests in tests/ namespace (not only rpms/).

- 

- - hosts: localhost

-   roles:

-   - role: standard-test-beakerlib

-     fmf_filter: "tier: 1, 2"

-     tags:

-     - atomic

-     - classic

-     - container

no initial comment

Why the CI has not been spawned here? It should be even for the tests/ namespace.

This shouldn't be dropped.

The only fundamental problem is that there's no CI passing. Before you have
green badge I'm against merging this.

And the sync with red hat dist-git should be consulted with @vdanek.

Oh, this is fedora and tests namespace .... this is not at all yet supported sorry :(

We can show a proof of these tests run against an internal build.

For fedora the support for this is jut coming, target GA is Flock 2020

But that is not even targeting tests namespace :(

Bit it was working, so is this regression from the time PR 5 was written?

@praiskup note that this patch is removing the STI tests (tests/tests.yml), which work ....

I would suggest to keep the STI definition and run the tests via it if possible ....

@praiskup note that this patch is removing the STI tests (tests/tests.yml), which work ....
I would suggest to keep the STI definition and run the tests via it if possible ....

ááh, yes - good catch, thanks

2 new commits added

  • remove test from testplan
  • added Makefile and PURPOSE to be able to run tests via STI
4 years ago

1 new commit added

  • fixed tag
3 years ago
Changes Summary 52
-4
file removed
README.rst
+63
file added
Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio/Makefile
+5
file added
Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio/PURPOSE
+16
file added
Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio/main.fmf
+49
file added
Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio/runtest.sh
+14
file added
Regression/bz1135423-Segmentation-fault-core-dumped-when-cpio/testinfo.desc
+64
file added
Regression/bz1155814-cpio-creates-zero-size-hardlinks-when-original/Makefile
+5
file added
Regression/bz1155814-cpio-creates-zero-size-hardlinks-when-original/PURPOSE
+23
file added
Regression/bz1155814-cpio-creates-zero-size-hardlinks-when-original/main.fmf
+0
file added
Regression/bz1155814-cpio-creates-zero-size-hardlinks-when-original/rhbz1155814-repro.tar.gz
+54
file added
Regression/bz1155814-cpio-creates-zero-size-hardlinks-when-original/runtest.sh
+64
file added
Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix/Makefile
+5
file added
Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix/PURPOSE
+173
file added
Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix/expected.out
+22
file added
Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix/main.fmf
+0
file added
Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix/osxupd10.11.3.dmg.chunk
+54
file added
Regression/bz1318084-cpio-2-11-fails-to-extract-archive-upstream-fix/runtest.sh
+64
file added
Regression/bz1386662-RFE-support-for-cpio-reproducible/Makefile
+5
file added
Regression/bz1386662-RFE-support-for-cpio-reproducible/PURPOSE
+20
file added
Regression/bz1386662-RFE-support-for-cpio-reproducible/main.fmf
+53
file added
Regression/bz1386662-RFE-support-for-cpio-reproducible/runtest.sh
+65
file added
Regression/bz1483571-cpio-fails-with-checksum-error-larger-files-200M/Makefile
+5
file added
Regression/bz1483571-cpio-fails-with-checksum-error-larger-files-200M/PURPOSE
+21
file added
Regression/bz1483571-cpio-fails-with-checksum-error-larger-files-200M/main.fmf
+53
file added
Regression/bz1483571-cpio-fails-with-checksum-error-larger-files-200M/runtest.sh
+65
file added
Regression/bz238862-cpio-Illegal-seek/Makefile
+5
file added
Regression/bz238862-cpio-Illegal-seek/PURPOSE
+20
file added
Regression/bz238862-cpio-Illegal-seek/main.fmf
+79
file added
Regression/bz238862-cpio-Illegal-seek/runtest.sh
+64
file added
Regression/bz564368-cpio-ssh-and-rsh-test-of-bad-archive/Makefile
+3
file added
Regression/bz564368-cpio-ssh-and-rsh-test-of-bad-archive/PURPOSE
+21
file added
Regression/bz564368-cpio-ssh-and-rsh-test-of-bad-archive/main.fmf
+126
file added
Regression/bz564368-cpio-ssh-and-rsh-test-of-bad-archive/runtest.sh
+65
file added
Regression/bz568069-cpio-various-flaws-rhel-5-9/Makefile
+5
file added
Regression/bz568069-cpio-various-flaws-rhel-5-9/PURPOSE
+0
file added
Regression/bz568069-cpio-various-flaws-rhel-5-9/longername.cpio.bz2
+18
file added
Regression/bz568069-cpio-various-flaws-rhel-5-9/main.fmf
+54
file added
Regression/bz568069-cpio-various-flaws-rhel-5-9/runtest.sh
+64
file added
Regression/bz867834-cpio-buffer-overflow-split-long-name-ustar/Makefile
+5
file added
Regression/bz867834-cpio-buffer-overflow-split-long-name-ustar/PURPOSE
+18
file added
Regression/bz867834-cpio-buffer-overflow-split-long-name-ustar/main.fmf
+56
file added
Regression/bz867834-cpio-buffer-overflow-split-long-name-ustar/runtest.sh
+64
file added
Regression/bz867870-cpio-buffer-overflow-split-long-name-ustar/Makefile
+5
file added
Regression/bz867870-cpio-buffer-overflow-split-long-name-ustar/PURPOSE
+19
file added
Regression/bz867870-cpio-buffer-overflow-split-long-name-ustar/main.fmf
+70
file added
Regression/bz867870-cpio-buffer-overflow-split-long-name-ustar/runtest.sh
+16 -3
file changed
Sanity/sanity-test-create-extract/main.fmf
+1 -2
file changed
Sanity/sanity-test-create-extract/runtest.sh
+8
file added
large-files-exit-code/main.fmf
+154
file added
large-files-exit-code/runtest.sh
+1 -3
file changed
main.fmf
-11
file removed
tests.yml