diff --git a/gating.yaml b/gating.yaml index 56c4731..dea779c 100644 --- a/gating.yaml +++ b/gating.yaml @@ -11,5 +11,5 @@ product_versions: - rhel-9 decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} - - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} + - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.gate-build-fast-lane.functional} + - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.gate-build-slow-lane.functional} diff --git a/plans/build-gating.fmf b/plans/build-gating.fmf new file mode 100644 index 0000000..552baf6 --- /dev/null +++ b/plans/build-gating.fmf @@ -0,0 +1,25 @@ +# +# Build/PR gating tests for binutils +# + +/common: + plan: + import: + url: https://src.fedoraproject.org/tests/binutils.git + ref: main + name: /plans/build-gating/common + +/kernel-rebuild: + plan: + import: + url: https://src.fedoraproject.org/tests/binutils.git + ref: main + name: /plans/build-gating/kernel-rebuild + +adjust+: + - because: "Plan to be ran when executed locally, or executed by CI system to gate a build or PR." + when: >- + trigger is defined + and trigger != commit + and trigger != build + enabled: false diff --git a/plans/ci.fmf b/plans/ci.fmf deleted file mode 100644 index 3fd3ab7..0000000 --- a/plans/ci.fmf +++ /dev/null @@ -1,5 +0,0 @@ -summary: CI Gating Plan -discover: - how: fmf -execute: - how: tmt diff --git a/tests/README b/tests/README deleted file mode 100644 index bf13c2b..0000000 --- a/tests/README +++ /dev/null @@ -1,2 +0,0 @@ -The test's Makefiles are not used in Fedora CI infrastructure. But are kept here - for backward compatibility with traditional beakerlib test harness in RHEL. diff --git a/tests/Regression/241252/Makefile b/tests/Regression/241252/Makefile deleted file mode 100644 index e362619..0000000 --- a/tests/Regression/241252/Makefile +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) 2009 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. -# -# Testcases for this bugzilla were provided by Jakub Jelinek -# I've only wrapped them to RHTS - -TOPLEVEL_NAMESPACE=/tools -PACKAGE_NAME=binutils -RELATIVE_PATH=bugzillas/241252 - -export TESTVERSION=1.0 - -export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH) - -.PHONY: all install download clean - -FILES=$(METADATA) \ - runtest.sh \ - Makefile \ - x.i \ - y.i - -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 - @touch $(METADATA) - @echo "Owner: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Description: Regression test for bz241252." >> $(METADATA) - @echo "TestTime: 3m" >> $(METADATA) - @echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA) - @echo "Requires: $(PACKAGE_NAME) gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "Releases: -RHEL4" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/241252/main.fmf b/tests/Regression/241252/main.fmf deleted file mode 100644 index 89c443c..0000000 --- a/tests/Regression/241252/main.fmf +++ /dev/null @@ -1,12 +0,0 @@ -summary: Regression test for bz241252. -contact: Michal Nowak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 3m -extra-summary: /tools/binutils/bugzillas/241252 -extra-task: /tools/binutils/bugzillas/241252 diff --git a/tests/Regression/241252/runtest.sh b/tests/Regression/241252/runtest.sh deleted file mode 100755 index 8f7afe9..0000000 --- a/tests/Regression/241252/runtest.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 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="binutils" - -rlJournalStart - rlPhaseStartSetup Setup - rlAssertRpm $PACKAGE - rlShowRunningKernel - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - cp x.i y.i $TmpDir - rlRun "pushd $TmpDir" - - rlRun "gcc -c -O2 -fpic -o x.o x.i -g" 0 "Compile test case 'x'" - rlRun "gcc -c -O2 -fpic -o y.o y.i -g" 0 "Compile test case 'y'" - rlRun "gcc -Wl,--unique -o x [xy].o" 0 "Link 'x' and 'y'" - - # Note: debug_ranges replaced by debug_rnglist (since DWARF 5 in Fedora 34) - rlLogInfo 'x.o + y.o:' - rlLogInfo "$( readelf -WS [xy].o | grep debug_rnglist | grep PROGBITS )" - rlLogInfo 'x:' - rlLogInfo "$( readelf -WS x | grep debug_rnglist )" - rlPhaseEnd - - rlPhaseStartTest Testing - if [ $( readelf -WS [xy].o | grep debug_rnglist | grep PROGBITS | wc -l ) -eq 2 ] \ - && [ $( readelf -WS x | grep debug_rnglist | wc -l ) -eq 1 ]; then - rlPass "Debug ranges sections were merged" - else - rlFail "Debug ranges sections were not merged" - fi - rlPhaseEnd - - rlPhaseStartCleanup Cleanup - rlRun "popd" - rlRun "rm -r $TmpDir $rlRun_LOG" 0 "Removing tmp directory" - rlPhaseEnd - rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/241252/x.i b/tests/Regression/241252/x.i deleted file mode 100644 index 0a81c5d..0000000 --- a/tests/Regression/241252/x.i +++ /dev/null @@ -1,62 +0,0 @@ -extern void __assert_fail (const char *, const char *, unsigned int, const char *) - __attribute__ ((__nothrow__, __noreturn__)); - -struct gst; -struct gs; - -extern void bar (void *) __attribute__ ((__nothrow__)); - -typedef int (*gf) (struct gst *, struct gs *, - const unsigned char **, const unsigned char *, - unsigned char **, unsigned long *, int, int); - -struct gst -{ - gf fct; - int min_needed_from; -}; - -struct gs -{ - unsigned char *outbuf; - unsigned char *outbufend; - int flags; - int invocation_counter; - int internal_use; -}; - -typedef struct gi -{ - unsigned long nsteps; - struct gst *steps; - struct gs data [10]; -} *gt; - -int -foo (gt cd, const unsigned char **inbuf, - const unsigned char *inbufend, unsigned char **outbuf, - unsigned char *outbufend, unsigned long *irreversible) -{ - unsigned long last_step; - int result; - last_step = cd->nsteps - 1; - *irreversible = 0; - cd->data[last_step].outbuf = outbuf != ((void *)0) ? *outbuf : ((void *)0); - cd->data[last_step].outbufend = outbufend; - gf fct = cd->steps->fct; - if (inbuf == ((void *)0) || *inbuf == ((void *)0)) - result = (bar ((void *) (fct)), (*(fct)) (cd->steps, cd->data, ((void *)0), ((void *)0), ((void *)0), irreversible, cd->data[last_step].outbuf == ((void *)0) ? 2 : 1, 0)); - else - { - const unsigned char *last_start; - ((outbuf != ((void *)0) && *outbuf != ((void *)0)) ? (void) (0) : __assert_fail ("outbuf != ((void *)0) && *outbuf != ((void *)0)", "gconv.c", 67, "foo")); - do - { - last_start = *inbuf; - result = (bar ((void *) (fct)), (*(fct)) (cd->steps, cd->data, inbuf, inbufend, ((void *)0), irreversible, 0, 0)); - } - while (result == 4 && last_start != *inbuf - && *inbuf + cd->steps->min_needed_from <= inbufend); - } - return result; -} diff --git a/tests/Regression/241252/y.i b/tests/Regression/241252/y.i deleted file mode 100644 index b5dc13b..0000000 --- a/tests/Regression/241252/y.i +++ /dev/null @@ -1,71 +0,0 @@ -extern void __assert_fail (const char *, const char *, unsigned int, const char *) - __attribute__ ((__nothrow__, __noreturn__)); - -struct gst; -struct gs; - -extern void bar (void *) __attribute__ ((__nothrow__)); - -void bar (void *x) -{ -} - -typedef int (*gf) (struct gst *, struct gs *, - const unsigned char **, const unsigned char *, - unsigned char **, unsigned long *, int, int); - -struct gst -{ - gf fct; - int min_needed_from; -}; - -struct gs -{ - unsigned char *outbuf; - unsigned char *outbufend; - int flags; - int invocation_counter; - int internal_use; -}; - -typedef struct gi -{ - unsigned long nsteps; - struct gst *steps; - struct gs data [10]; -} *gt; - -int -baz (gt cd, const unsigned char **inbuf, - const unsigned char *inbufend, unsigned char **outbuf, - unsigned char *outbufend, unsigned long *irreversible) -{ - unsigned long last_step; - int result; - last_step = cd->nsteps - 1; - *irreversible = 0; - cd->data[last_step].outbuf = outbuf != ((void *)0) ? *outbuf : ((void *)0); - cd->data[last_step].outbufend = outbufend; - gf fct = cd->steps->fct; - if (inbuf == ((void *)0) || *inbuf == ((void *)0)) - result = (bar ((void *) (fct)), (*(fct)) (cd->steps, cd->data, ((void *)0), ((void *)0), ((void *)0), irreversible, cd->data[last_step].outbuf == ((void *)0) ? 2 : 1, 0)); - else - { - const unsigned char *last_start; - ((outbuf != ((void *)0) && *outbuf != ((void *)0)) ? (void) (0) : __assert_fail ("outbuf != ((void *)0) && *outbuf != ((void *)0)", "gconv.c", 67, "foo")); - do - { - last_start = *inbuf; - result = (bar ((void *) (fct)), (*(fct)) (cd->steps, cd->data, inbuf, inbufend, ((void *)0), irreversible, 0, 0)); - } - while (result == 4 && last_start != *inbuf - && *inbuf + cd->steps->min_needed_from <= inbufend); - } - return result; -} - -int -main (void) -{ -} diff --git a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/Makefile b/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/Makefile deleted file mode 100644 index da0828b..0000000 --- a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/Makefile +++ /dev/null @@ -1,82 +0,0 @@ -# -# Copyright (c) 2006 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 v.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. -# -# Author: Michal Nowak - -# The toplevel namespace within which the test lives. -TOPLEVEL_NAMESPACE=tools - -# The name of the package under test: -PACKAGE_NAME=binutils - -# The path of the test below the package: -RELATIVE_PATH=Sanity/430856-libbfd.a-not-compiled-with-fPIC - -# Version of the Test. Used with make tag. -export TESTVERSION=1.1 - -# The combined namespace of the test. -export TEST=/$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH) - - -# A phony target is one that is not really the name of a file. -# It is just a name for some commands to be executed when you -# make an explicit request. There are two reasons to use a -# phony target: to avoid a conflict with a file of the same -# name, and to improve performance. -.PHONY: all install download clean - -# executables to be built should be added here, they will be generated on the system under test. -BUILT_FILES= - -# data files, .c files, scripts anything needed to either compile the test and/or run it. -FILES=$(METADATA) runtest.sh Makefile PURPOSE bz430856.tar.gz - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x ./runtest.sh - -clean: - rm -f *~ *.rpm $(BUILT_FILES) - -# You may need to add other targets e.g. to build executables from source code -# Add them here: - - -# Include Common Makefile -include /usr/share/rhts/lib/rhts-make.include - -# Generate the testinfo.desc here: -$(METADATA): Makefile - @touch $(METADATA) -# Change to the test owner's name - @echo "Owner: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Description: libbfd.a not compiled with -fPIC">> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA) -# add any other packages for which your test ought to run here - @echo "Requires: $(PACKAGE_NAME)" >> $(METADATA) - @echo "Requires: $(PACKAGE_NAME)-devel" >> $(METADATA) - @echo "Requires: gcc glibc-headers" >> $(METADATA) -# add any other requirements for the script to run here - -# You may need other fields here; see the documentation - rhts-lint $(METADATA) - diff --git a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/PURPOSE b/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/PURPOSE deleted file mode 100644 index 7700573..0000000 --- a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/PURPOSE +++ /dev/null @@ -1,11 +0,0 @@ -Would it be possible to have /usr/lib64/libbfd.a in binutils -compiled with -fPIC? Otherwise, shared apps can't link against -libbfd. In binutils.spec, libiberty.a is already recreated -with -fPIC, is there some reason the same isn't done for -libbfd? - -From binutils.spec: - - # Rebuild libiberty.a with -fPIC - make -C libiberty clean - make CFLAGS="-g -fPIC $RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" -C libiberty diff --git a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/main.fmf b/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/main.fmf deleted file mode 100644 index 3b9df28..0000000 --- a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/main.fmf +++ /dev/null @@ -1,20 +0,0 @@ -summary: libbfd.a not compiled with -fPIC -description: "Would it be possible to have /usr/lib64/libbfd.a in binutils\ncompiled\ - \ with -fPIC? Otherwise, shared apps can't link against\nlibbfd. In binutils.spec,\ - \ libiberty.a is already recreated \nwith -fPIC, is there some reason the same\ - \ isn't done for \nlibbfd?\n\nFrom binutils.spec:\n\n # Rebuild libiberty.a with\ - \ -fPIC\n make -C libiberty clean\n make CFLAGS=\"-g -fPIC $RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64\"\ - \ -C libiberty\n" -contact: Michal Nowak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- binutils-devel -- gcc -- glibc-headers -duration: 5m -extra-summary: /tools/binutils/Sanity/430856-libbfd.a-not-compiled-with-fPIC -extra-task: /tools/binutils/Sanity/430856-libbfd.a-not-compiled-with-fPIC diff --git a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/Makefile b/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/Makefile deleted file mode 100644 index c8c5081..0000000 --- a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -CC=gcc -CFLAGS=-g -Wall - -all: test - -libbfdtest.so bfdtest: Makefile - -libbfdtest.so: libbfdtest.c libbfdtest.h - $(CC) $(CFLAGS) -shared -o $@ -fPIC $< -lbfd -liberty - -bfdtest: bfdtest.c libbfdtest.h libbfdtest.so - $(CC) -o $@ $< -L. -Wl,-rpath,. -lbfdtest -ldl - -.PHONY: test -test: bfdtest - ./$< - @echo OK - -clean: - $(RM) libbfdtest.so bfdtest - diff --git a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/bfdtest.c b/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/bfdtest.c deleted file mode 100644 index cc8038e..0000000 --- a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/bfdtest.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "libbfdtest.h" - -int -main (void) -{ - return libbfdtest () ? 0 : 1; -} diff --git a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/libbfdtest.c b/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/libbfdtest.c deleted file mode 100644 index b3ec8fe..0000000 --- a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/libbfdtest.c +++ /dev/null @@ -1,10 +0,0 @@ -#include - -#include "libbfdtest.h" - -int -libbfdtest (void) -{ - bfd_set_error (bfd_error_no_error); - return bfd_get_error () == bfd_error_no_error; -} diff --git a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/libbfdtest.h b/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/libbfdtest.h deleted file mode 100644 index f67d25b..0000000 --- a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/libbfdtest.h +++ /dev/null @@ -1 +0,0 @@ -extern int libbfdtest (void); diff --git a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/runtest.sh b/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/runtest.sh deleted file mode 100755 index 2638e8e..0000000 --- a/tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/runtest.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 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="binutils" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlShowPackageVersion $PACKAGE - rlShowRunningKernel - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - cp reproducer/* $TmpDir - rlRun "pushd $TmpDir" - rlRun "make clean" 0 "Make clean" - rlPhaseEnd - - rlPhaseStartTest - rlRun "make" 0 "Build the files" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd - rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/435078-output-of-strings-0-n-is-incorrect/Makefile b/tests/Regression/435078-output-of-strings-0-n-is-incorrect/Makefile deleted file mode 100644 index 427fe54..0000000 --- a/tests/Regression/435078-output-of-strings-0-n-is-incorrect/Makefile +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (c) 2006 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 v.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. -# -# Author: Michal Nowak - -#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# -# Example Makefile for RHTS # -# This example is geared towards a test for a specific package # -# It does most of the work for you, but may require further coding # -#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# - -# The toplevel namespace within which the test lives. -TOPLEVEL_NAMESPACE=tools - -# The name of the package under test: -PACKAGE_NAME=binutils - -# The path of the test below the package: -RELATIVE_PATH=Sanity/435078-output-of-strings-0-n-is-incorrect - -# Version of the Test. Used with make tag. -export TESTVERSION=1.1 - -# The combined namespace of the test. -export TEST=/$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH) - - -# A phony target is one that is not really the name of a file. -# It is just a name for some commands to be executed when you -# make an explicit request. There are two reasons to use a -# phony target: to avoid a conflict with a file of the same -# name, and to improve performance. -.PHONY: all install download clean - -# executables to be built should be added here, they will be generated on the system under test. -BUILT_FILES= - -# data files, .c files, scripts anything needed to either compile the test and/or run it. -FILES=$(METADATA) runtest.sh Makefile PURPOSE - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x ./runtest.sh - -clean: - rm -f *~ *.rpm $(BUILT_FILES) - -# You may need to add other targets e.g. to build executables from source code -# Add them here: - - -# Include Common Makefile -include /usr/share/rhts/lib/rhts-make.include - -# Generate the testinfo.desc here: -$(METADATA): Makefile - @touch $(METADATA) -# Change to the test owner's name - @echo "Owner: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Description: The output of "strings -0 file" is in loop and "-n 0xA" cannot be correctly recognized">> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA) -# add any other packages for which your test ought to run here - @echo "Requires: $(PACKAGE_NAME)" >> $(METADATA) -# add any other requirements for the script to run here - -# You may need other fields here; see the documentation - rhts-lint $(METADATA) - diff --git a/tests/Regression/435078-output-of-strings-0-n-is-incorrect/PURPOSE b/tests/Regression/435078-output-of-strings-0-n-is-incorrect/PURPOSE deleted file mode 100644 index f2d0c6a..0000000 --- a/tests/Regression/435078-output-of-strings-0-n-is-incorrect/PURPOSE +++ /dev/null @@ -1,2 +0,0 @@ -Use "strings -0 file", the output will be in loop. -And "strings -n 0xA file" will report error as "invalid number 0xA" diff --git a/tests/Regression/435078-output-of-strings-0-n-is-incorrect/main.fmf b/tests/Regression/435078-output-of-strings-0-n-is-incorrect/main.fmf deleted file mode 100644 index 729ea47..0000000 --- a/tests/Regression/435078-output-of-strings-0-n-is-incorrect/main.fmf +++ /dev/null @@ -1,14 +0,0 @@ -summary: The output of strings -0 file is in loop and -n 0xA cannot be correctly recognized -description: | - Use "strings -0 file", the output will be in loop. - And "strings -n 0xA file" will report error as "invalid number 0xA" -contact: Michal Nowak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -duration: 5m -extra-summary: /tools/binutils/Sanity/435078-output-of-strings-0-n-is-incorrect -extra-task: /tools/binutils/Sanity/435078-output-of-strings-0-n-is-incorrect diff --git a/tests/Regression/435078-output-of-strings-0-n-is-incorrect/runtest.sh b/tests/Regression/435078-output-of-strings-0-n-is-incorrect/runtest.sh deleted file mode 100755 index 3541ea1..0000000 --- a/tests/Regression/435078-output-of-strings-0-n-is-incorrect/runtest.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 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="binutils" - -rlJournalStart - rlPhaseStartSetup Setup - rlAssertRpm $PACKAGE - rlShowPackageVersion $PACKAGE - rlShowRunningKernel - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlRun "echo -e \"asdjkhsd\nsdsdsdssd\n\nsdsd\n\" > tstfile" 0 "Generating test file tstfile" - rlPhaseEnd - - rlPhaseStartTest TestingOne - rlRun "strings -0 tstfile > errorfile 2>&1 &" - rlRun "sleep 5" - rlRun "jobs" - rlRun "kill -9 %1" 1 "strings in the loop" - rlAssertGrep "minim" errorfile - rlPhaseEnd - - rlPhaseStartTest TestingTwo - rlRun "strings -n 0xA tstfile" 0 "echo \"PASS: tstfile processed.\"" - rlPhaseEnd - - rlPhaseStartCleanup Cleanup - rlBundleLogs "binutils-outputs" errorfile tstfile - rlRun "popd" - rlRun "rm -r $TmpDir $rlRun_LOG" 0 "Removing tmp directory" - rlPhaseEnd - rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/480009-when-mistaking-argument-of-strings/Makefile b/tests/Regression/480009-when-mistaking-argument-of-strings/Makefile deleted file mode 100644 index 9594d7f..0000000 --- a/tests/Regression/480009-when-mistaking-argument-of-strings/Makefile +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# 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 3 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 . -# -# Author: Michal Nowak - - -TOPLEVEL_NAMESPACE=/tools -PACKAGE_NAME=binutils -RELATIVE_PATH=Sanity/480009-when-mistaking-argument-of-strings - -export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH) -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) - chmod a+x ./runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - - -$(METADATA): Makefile - @touch $(METADATA) - @echo "Owner: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Description: When mistaking the argument of strings command , the same error message is output." >> $(METADATA) - @echo "Bug: 480009" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA) - @echo "Requires: $(PACKAGE_NAME)" >> $(METADATA) - @echo "License: GPLv3+" >> $(METADATA) - @echo "Releases: -RHEL4 -RHEL5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/480009-when-mistaking-argument-of-strings/PURPOSE b/tests/Regression/480009-when-mistaking-argument-of-strings/PURPOSE deleted file mode 100644 index ee642a5..0000000 --- a/tests/Regression/480009-when-mistaking-argument-of-strings/PURPOSE +++ /dev/null @@ -1,27 +0,0 @@ -[RHEL5.2] -# strings -n file1 -strings: invalid integer argument file1 - -# strings --bytes file1 -strings: invalid integer argument file1 - -# strings -n 0 -strings: invalid number 0 - -# strings --bytes 0 -strings: invalid number 0 - - -[RHEL5.3] -# strings -n file1 -strings: invalid minimum string length 0 - -# strings --bytes file1 -strings: invalid minimum string length 0 - -# strings -n 0 -strings: invalid minimum string length 0 - -# strings --bytes 0 -strings: invalid minimum string length 0 - diff --git a/tests/Regression/480009-when-mistaking-argument-of-strings/main.fmf b/tests/Regression/480009-when-mistaking-argument-of-strings/main.fmf deleted file mode 100644 index e0fa3af..0000000 --- a/tests/Regression/480009-when-mistaking-argument-of-strings/main.fmf +++ /dev/null @@ -1,42 +0,0 @@ -summary: When mistaking the argument of strings command , the same error message is - output. -description: |+ - [RHEL5.2] - # strings -n file1 - strings: invalid integer argument file1 - - # strings --bytes file1 - strings: invalid integer argument file1 - - # strings -n 0 - strings: invalid number 0 - - # strings --bytes 0 - strings: invalid number 0 - - - [RHEL5.3] - # strings -n file1 - strings: invalid minimum string length 0 - - # strings --bytes file1 - strings: invalid minimum string length 0 - - # strings -n 0 - strings: invalid minimum string length 0 - - # strings --bytes 0 - strings: invalid minimum string length 0 - -contact: Michal Nowak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=480009 -extra-summary: /tools/binutils/Sanity/480009-when-mistaking-argument-of-strings -extra-task: /tools/binutils/Sanity/480009-when-mistaking-argument-of-strings diff --git a/tests/Regression/480009-when-mistaking-argument-of-strings/runtest.sh b/tests/Regression/480009-when-mistaking-argument-of-strings/runtest.sh deleted file mode 100755 index bcbdc7c..0000000 --- a/tests/Regression/480009-when-mistaking-argument-of-strings/runtest.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# 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 3 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 . -# -# Author: Michal Nowak - -# source the test script helpers -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE=binutils - -rlJournalStart - rlPhaseStartSetup - rlShowPackageVersion $PACKAGE - rlShowRunningKernel - rlPhaseEnd - - rlPhaseStartTest "#1: strings -n file1" - rlRun "strings -n file1 2>&1 | grep 'invalid integer argument file1'" 0 "Produced expected error msg: 'strings: invalid integer argument file1'" - rlPhaseEnd - - rlPhaseStartTest "#2: strings --bytes file1" - rlRun "strings --bytes file1 2>&1 | grep 'invalid integer argument file1'" 0 "Produced expected error msg: 'strings: invalid integer argument file1'" - rlPhaseEnd - - rlPhaseStartTest "#3: strings -n 0" - rlRun "strings -n 0 2>&1 | grep 'invalid minimum string length 0'" 0 "Produced expected error msg: 'strings: invalid minimum string length 0'" - rlPhaseEnd - - rlPhaseStartTest "#4: strings --bytes 0" - rlRun "strings --bytes 0 2>&1 | grep 'invalid minimum string length 0'" 0 "Produced expected error msg: 'strings: invalid minimum string length 0'" - rlPhaseEnd - - rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/509124-holes-in-debuginfo/Makefile b/tests/Regression/509124-holes-in-debuginfo/Makefile deleted file mode 100644 index 29b1a87..0000000 --- a/tests/Regression/509124-holes-in-debuginfo/Makefile +++ /dev/null @@ -1,59 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 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=/tools/binutils/Regressions/readelf/509124-holes-in-debuginfo -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE ascend.C test.c - -.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: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: holes in debuginfo" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils gcc44 gcc gcc44-c++ gcc-c++" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 509124 499164" >> $(METADATA) - @echo "Releases: -RHEL4 -RHEL5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/509124-holes-in-debuginfo/PURPOSE b/tests/Regression/509124-holes-in-debuginfo/PURPOSE deleted file mode 100644 index d4bba30..0000000 --- a/tests/Regression/509124-holes-in-debuginfo/PURPOSE +++ /dev/null @@ -1,14 +0,0 @@ -(1) readelf fix now posted upstream: - http://sourceware.org/ml/binutils/2009-07/msg00123.html -QA: New testcase: binutils-all/testranges.s - -(2) gcc has been fixed based on this bugreport by Jakub upstream: - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40713 - gcc44 backport request for RHEL-5.5 is: Bug 510958 - -(3) Going to be backported for RHEL-5.5 readelf. - It has been already fixed by Nick Clifton upstream: - http://sourceware.org/ml/binutils/2009-06/msg00418.html - http://sourceware.org/ml/binutils-cvs/2009-06/msg00158.html -QA: RHEL-only new testcase: binutils-all/testloc.S - as a part of binutils-all/readelf.exp (not shown when PASSing) diff --git a/tests/Regression/509124-holes-in-debuginfo/ascend.C b/tests/Regression/509124-holes-in-debuginfo/ascend.C deleted file mode 100755 index 917937f..0000000 --- a/tests/Regression/509124-holes-in-debuginfo/ascend.C +++ /dev/null @@ -1,15 +0,0 @@ -class A { -public: - A(); - void f(){} -}; - -class C { - C(); -}; - -C::C() { - A* p = new A; - p->f(); -} - diff --git a/tests/Regression/509124-holes-in-debuginfo/main.fmf b/tests/Regression/509124-holes-in-debuginfo/main.fmf deleted file mode 100644 index 07430bd..0000000 --- a/tests/Regression/509124-holes-in-debuginfo/main.fmf +++ /dev/null @@ -1,25 +0,0 @@ -summary: holes in debuginfo -description: "(1) readelf fix now posted upstream:\n http://sourceware.org/ml/binutils/2009-07/msg00123.html\n\ - QA: New testcase: binutils-all/testranges.s\n\n(2) gcc has been fixed based on\ - \ this bugreport by Jakub upstream:\n http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40713\n\ - \ gcc44 backport request for RHEL-5.5 is: Bug 510958\n\n(3) Going to be backported\ - \ for RHEL-5.5 readelf.\n It has been already fixed by Nick Clifton upstream:\n\ - \ http://sourceware.org/ml/binutils/2009-06/msg00418.html\n http://sourceware.org/ml/binutils-cvs/2009-06/msg00158.html\n\ - QA: RHEL-only new testcase: binutils-all/testloc.S\n as a part of binutils-all/readelf.exp\ - \ (not shown when PASSing) \n" -contact: Michal Nowak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc44 -- gcc -- gcc44-c++ -- gcc-c++ -duration: 15m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=509124 -extra-summary: /tools/binutils/Regressions/readelf/509124-holes-in-debuginfo -extra-task: /tools/binutils/Regressions/readelf/509124-holes-in-debuginfo diff --git a/tests/Regression/509124-holes-in-debuginfo/runtest.sh b/tests/Regression/509124-holes-in-debuginfo/runtest.sh deleted file mode 100755 index 2e8ad28..0000000 --- a/tests/Regression/509124-holes-in-debuginfo/runtest.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/bash -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 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. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# Author: Michal Nowak -# -# Include rhts environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="binutils" - -rlJournalStart - rlPhaseStartSetup Setup - rlAssertRpm $PACKAGE - rlShowPackageVersion $PACKAGE - rlShowRunningKernel - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - cp ascend.C test.c $TmpDir - rlRun "pushd $TmpDir" - rlPhaseEnd - - for gcc in $( ls /usr/bin/gcc{,44} 2> /dev/null ); do - for opt in s $( seq 0 3 ); do - rlPhaseStartTest "ascend.C: gcc=$gcc opt=$opt" - rlRun "$gcc -O${opt} ascend.C -c -g" - rlAssertExists "ascend.o" - # kinda weird running readelf on .o file, but... - rlRun "readelf -a -w -W ./ascend.o > /dev/less 2> readelf.errout.g++" 0 "[gcc] Generating readelf output" - rlLog "$( cat readelf.errout.g++ )" - rlAssertNotGrep "readelf" readelf.errout.g++ - rm -f ./ascend.o - rlPhaseEnd - done - done - - for gcc in $( ls /usr/bin/gcc{,44} 2> /dev/null ); do - for opt in s $( seq 0 3 ); do - rlPhaseStartTest "test.c: gcc=$gcc opt=$opt" - rlRun "$gcc -O${opt} test.c -c -g" - rlAssertExists "test.o" - # kinda weird running readelf on .o file, but... - rlRun "readelf -a -w -W ./test.o > /dev/less 2> readelf.errout.g++" 0 "[gcc] Generating readelf output" - rlLog "$( cat readelf.errout.g++ )" - rlAssertNotGrep "readelf" readelf.errout.g++ - rm -f ./test.o - rlPhaseEnd - done - done - - rlPhaseStartCleanup Cleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd - rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/509124-holes-in-debuginfo/test.c b/tests/Regression/509124-holes-in-debuginfo/test.c deleted file mode 100644 index 57b8e7e..0000000 --- a/tests/Regression/509124-holes-in-debuginfo/test.c +++ /dev/null @@ -1,14 +0,0 @@ -void f(int i) { - k(i); -} - -void g(int i) { - int j[65537]; - l(i,j); -} - -struct s { - void (*m)(int i); - void (*n)(int i); -} t={f,g}; - diff --git a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/Makefile b/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/Makefile deleted file mode 100644 index 09d7dee..0000000 --- a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/Makefile +++ /dev/null @@ -1,59 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 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=/tools/binutils/Regressions/ld/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE bar.c foo.c - -.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: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: ld fails to merge different visibility for the same symbol in distinct object files" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils binutils220" >> $(METADATA) - @echo "Requires: binutils binutils220 gcc44 gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 531269" >> $(METADATA) - @echo "Architectures: i386 x86_64" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/PURPOSE b/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/PURPOSE deleted file mode 100644 index e69de29..0000000 --- a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/PURPOSE +++ /dev/null diff --git a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/bar.c b/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/bar.c deleted file mode 100644 index d74dcd5..0000000 --- a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/bar.c +++ /dev/null @@ -1,19 +0,0 @@ -int foo __attribute__ ((section (".gnu.linkonce.d.1"), - visibility ("hidden"))) = 1; -int -__attribute__ ((section (".gnu.linkonce.t.1"), visibility ("hidden"))) -bar () -{ - return 1; -} -int -get_foo () -{ - return foo; -} -int -get_bar () -{ - return bar (); -} - diff --git a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/foo.c b/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/foo.c deleted file mode 100644 index 7834bd4..0000000 --- a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/foo.c +++ /dev/null @@ -1,7 +0,0 @@ -int foo __attribute__ ((section (".gnu.linkonce.d.1"))) = 1; -int -__attribute__ ((section (".gnu.linkonce.t.1"))) -bar () -{ - return 1; -} diff --git a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/main.fmf b/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/main.fmf deleted file mode 100644 index d0fb32f..0000000 --- a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/main.fmf +++ /dev/null @@ -1,19 +0,0 @@ -summary: ld fails to merge different visibility for the same symbol in distinct object - files -description: '' -contact: Michal Nowak -component: -- binutils -- binutils220 -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- binutils220 -- gcc44 -- gcc -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=531269 -extra-summary: /tools/binutils/Regressions/ld/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol -extra-task: /tools/binutils/Regressions/ld/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol diff --git a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/runtest.sh b/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/runtest.sh deleted file mode 100755 index e89c252..0000000 --- a/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/runtest.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 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. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# Author: Michal Nowak -# -# Include rhts environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="binutils" - -# Choose the compiler. -GCC=${GCC:-gcc} - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlShowPackageVersion $PACKAGE - rlShowRunningKernel - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - cp foo.c bar.c $TmpDir - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest "gcc=$GCC Testing" - rlRun "$GCC -fPIC -c -o foo.o foo.c" 0 "Compile foo.c => foo.o" - rlRun "$GCC -fPIC -c -o bar.o bar.c" 0 "Compile bar.c => bar.o" - rlRun "ld -shared -o foobar.so foo.o bar.o" 0 "Link foo.o & bar.o => foobar.so" - rlAssertExists foobar.so - rm foobar.so foo.o bar.o - rlPhaseEnd - - rlPhaseStartCleanup Cleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd - rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/RELRO-protection-effective/Makefile b/tests/Regression/RELRO-protection-effective/Makefile deleted file mode 100644 index b7e7b7e..0000000 --- a/tests/Regression/RELRO-protection-effective/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/RELRO-protection-effective -# Description: bz1174826 -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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=/tools/binutils/Regression/RELRO-protection-effective -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: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: bz1174826" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1174826" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/RELRO-protection-effective/PURPOSE b/tests/Regression/RELRO-protection-effective/PURPOSE deleted file mode 100644 index b10fb9c..0000000 --- a/tests/Regression/RELRO-protection-effective/PURPOSE +++ /dev/null @@ -1,34 +0,0 @@ -PURPOSE of /tools/binutils/Regression/RELRO-protection-effective -Description: bz1174826 -Author: Martin Cermak -Bug summary: RELRO is not read-only on PowerLE -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1174826 - -/* - * Test to exercise PIE and RELRO provided by Roland McGrath . - * - * Description: - * Simple test for RELRO, which happens to be a PIE too, but that's only - * because this kind of example has to be in PIC code to make RELRO relevant, - * and PIE makes it simpler to write a standalone one-file test than writing - * a DSO. - * - * The "const" makes "foo" .rodata material, and the init to an external symbol - * reference makes it require a data relocation. Enabling -z relro for this - * link puts that .rodata into a RELRO area. This program will crash because - * the page containing "foo" has been made read-only when "main" runs. - * Without RELRO, it would let you modify "foo" even though it's supposed to - * be const. - * - * Test with RELRO should fail: - * $ gcc -pie -fPIE -g -Wl,-z,relro -o relro relro.c - * $ ./relro - * Segmentation fault (core dumped) - * - * Test without RELRO should pass: - * $ gcc -pie -fPIE -g -Wl,-z,norelro -o no-relro relro.c - * $ ./no-relro - * -**/ - - diff --git a/tests/Regression/RELRO-protection-effective/main.fmf b/tests/Regression/RELRO-protection-effective/main.fmf deleted file mode 100644 index afa66f5..0000000 --- a/tests/Regression/RELRO-protection-effective/main.fmf +++ /dev/null @@ -1,43 +0,0 @@ -summary: bz1174826 -description: "Bug summary: RELRO is not read-only on PowerLE\nBugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1174826\n\ - \n/* \ - \ \n * Test to exercise PIE and RELRO provided by Roland McGrath .\n\ - \ * \ - \ \n * Description: \ - \ \n * Simple test for RELRO, which happens to be a PIE too,\ - \ but that's only \n * because this kind of example has to be in PIC\ - \ code to make RELRO relevant, \n * and PIE makes it simpler to write a standalone\ - \ one-file test than writing \n * a DSO. \ - \ \n * \ - \ \n * The \"const\" makes \"\ - foo\" .rodata material, and the init to an external symbol\n * reference makes\ - \ it require a data relocation. Enabling -z relro for this \n * link puts\ - \ that .rodata into a RELRO area. This program will crash because \n * the\ - \ page containing \"foo\" has been made read-only when \"main\" runs. \ - \ \n * Without RELRO, it would let you modify \"foo\" even though it's supposed\ - \ to \n * be const. \ - \ \n * \ - \ \n * Test with RELRO should fail: \ - \ \n * $ gcc -pie -fPIE -g -Wl,-z,relro -o relro\ - \ relro.c \n * $ ./relro \ - \ \n * Segmentation fault (core\ - \ dumped) \n * \ - \ \n * Test without\ - \ RELRO should pass: \n * $\ - \ gcc -pie -fPIE -g -Wl,-z,norelro -o no-relro relro.c \ - \ \n * $ ./no-relro \ - \ \n * \ - \ \n**/\n\n\n" -contact: Martin Cermak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1174826 -extra-summary: /tools/binutils/Regression/RELRO-protection-effective -extra-task: /tools/binutils/Regression/RELRO-protection-effective diff --git a/tests/Regression/RELRO-protection-effective/runtest.sh b/tests/Regression/RELRO-protection-effective/runtest.sh deleted file mode 100755 index cbfab38..0000000 --- a/tests/Regression/RELRO-protection-effective/runtest.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/RELRO-protection-effective -# Description: bz1174826 -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="binutils" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - touch /tmp/disable-qe-abrt - rlRun "TMPD=\$(mktemp -d)" - rlRun "pushd $TMPD" - cat > relro.c <<-EOF -#include - -void *const foo = &stdout; - -int main (void) -{ - *(void **) &foo = &stderr; - return 0; -} -EOF - rlRun "gcc -pie -fPIE -g -Wl,-z,relro -o relro relro.c" - rlRun "gcc -pie -fPIE -g -Wl,-z,norelro -o no-relro relro.c" - rlPhaseEnd - - rlPhaseStartTest - rlRun "./relro" 139 - rlRun "./no-relro" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TMPD" - rm -f /tmp/disable-qe-abrt - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/Makefile b/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/Makefile deleted file mode 100644 index ce2f5e9..0000000 --- a/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot -# Description: Test for BZ#1080077 ([RFE] - Please configure ld.bfd to allow --sysroot) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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=/tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot -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: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1080077 ([RFE] - Please configure ld.bfd to allow --sysroot)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1080077" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/PURPOSE b/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/PURPOSE deleted file mode 100644 index d481738..0000000 --- a/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot -Description: Test for BZ#1080077 ([RFE] - Please configure ld.bfd to allow --sysroot) -Author: Martin Cermak -Bug summary: [RFE] - Please configure ld.bfd to allow --sysroot -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1080077 diff --git a/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/main.fmf b/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/main.fmf deleted file mode 100644 index 186bfaf..0000000 --- a/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/main.fmf +++ /dev/null @@ -1,16 +0,0 @@ -summary: Test for BZ#1080077 ([RFE] - Please configure ld.bfd to allow --sysroot) -description: | - Bug summary: [RFE] - Please configure ld.bfd to allow --sysroot - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1080077 -contact: Martin Cermak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1080077 -extra-summary: /tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot -extra-task: /tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot diff --git a/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/runtest.sh b/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/runtest.sh deleted file mode 100755 index 4e15016..0000000 --- a/tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/runtest.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot -# Description: Test for BZ#1080077 ([RFE] - Please configure ld.bfd to allow --sysroot) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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 - -rlJournalStart - rlPhaseStartTest - LD_BDF=$(which ld.bfd) - RPM=$(rpm -qf $LD_BDF) - rlLogInfo "ld.bfd is $LD_BDF of $RPM" - rlRun "ld.bfd --sysroot=/tmp |& grep 'not configured to use sysroots'" 1 - rlRun "ld.bfd --sysroot=/tmp |& grep 'no input files'" - rlPhaseEnd -rlJournalEnd diff --git a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/Makefile b/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/Makefile deleted file mode 100644 index 143166a..0000000 --- a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED -# Description: Test for BZ#1117458 (ld from devtoolset copies SONAME to DT_NEEDED) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2014 Red Hat, Inc. -# -# 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=/tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE libtest.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1117458 (ld from devtoolset copies SONAME to DT_NEEDED)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Requires: devtoolset-3.0-tools-devtoolset-3.0-Install-latest" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1117458" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/PURPOSE b/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/PURPOSE deleted file mode 100644 index af35360..0000000 --- a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED -Description: Test for BZ#1117458 (ld from devtoolset copies SONAME to DT_NEEDED) -Author: Milos Prchlik -Bug summary: ld from devtoolset copies SONAME to DT_NEEDED without checking if it’s empty -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1117458 diff --git a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/libfoo.c b/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/libfoo.c deleted file mode 100644 index 7eabd2e..0000000 --- a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/libfoo.c +++ /dev/null @@ -1,3 +0,0 @@ -int foo(void) { - return 10; -} diff --git a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/main.fmf b/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/main.fmf deleted file mode 100644 index 4595cb9..0000000 --- a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/main.fmf +++ /dev/null @@ -1,17 +0,0 @@ -summary: Test for BZ#1117458 (ld from devtoolset copies SONAME to DT_NEEDED) -description: | - Bug summary: ld from devtoolset copies SONAME to DT_NEEDED without checking if it’s empty - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1117458 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1117458 -extra-summary: /tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED -extra-task: /tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED diff --git a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/runtest.sh b/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/runtest.sh deleted file mode 100755 index d099989..0000000 --- a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/runtest.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED -# Description: Test for BZ#1117458 (ld from devtoolset copies SONAME to DT_NEEDED) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2014 Red Hat, Inc. -# -# 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="binutils" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp user.c libfoo.c $TmpDir/" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "gcc -fPIC -g -c libfoo.c" - rlAssertExists "libfoo.o" - rlRun "gcc -shared -Wl,-soname, -o libfoo.so -lc libfoo.o 2>&1 | tee out" 0 - rlAssertExists "libfoo.so" - rlLogInfo "gcc output:" - rlLogInfo "$(cat out)" - rlAssertGrep "SONAME must not be empty string; ignored" out - rlRun "objdump -p libfoo.so | grep SONAME | awk '{print \$2}' > soname" - if [ "`stat -c '%s' soname`" != "0" ]; then - rlLogInfo "SONAME='$(cat soname)'" - rlFail "Detected SONAME is empty" - fi - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" # $TmpDir - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/user.c b/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/user.c deleted file mode 100644 index e433023..0000000 --- a/tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/user.c +++ /dev/null @@ -1,9 +0,0 @@ -#include - -extern int foo(void); - -int main(void) { - int a = foo(); - printf("a is %d\n", a); - return 0; -} diff --git a/tests/Regression/bz1172766-ppc64-segv-in-libbfd/Makefile b/tests/Regression/bz1172766-ppc64-segv-in-libbfd/Makefile deleted file mode 100644 index 0aecbf6..0000000 --- a/tests/Regression/bz1172766-ppc64-segv-in-libbfd/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd -# Description: Test for BZ#1172766 (ppc64 segv in libbfd) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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=/tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd -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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1172766 (ppc64 segv in libbfd)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 30m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils kernel-debuginfo xz" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1172766" >> $(METADATA) - @echo "Releases: RHEL7" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1172766-ppc64-segv-in-libbfd/PURPOSE b/tests/Regression/bz1172766-ppc64-segv-in-libbfd/PURPOSE deleted file mode 100644 index a49520b..0000000 --- a/tests/Regression/bz1172766-ppc64-segv-in-libbfd/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd -Description: Test for BZ#1172766 (ppc64 segv in libbfd) -Author: Milos Prchlik -Bug summary: ppc64: segv in libbfd -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1172766 diff --git a/tests/Regression/bz1172766-ppc64-segv-in-libbfd/main.fmf b/tests/Regression/bz1172766-ppc64-segv-in-libbfd/main.fmf deleted file mode 100644 index f515a45..0000000 --- a/tests/Regression/bz1172766-ppc64-segv-in-libbfd/main.fmf +++ /dev/null @@ -1,20 +0,0 @@ -summary: Test for BZ#1172766 (ppc64 segv in libbfd) -description: | - Bug summary: ppc64: segv in libbfd - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1172766 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- elfutils -- koji -- kernel-debuginfo -- xz -duration: 30m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1172766 -extra-summary: /tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd -extra-task: /tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd diff --git a/tests/Regression/bz1172766-ppc64-segv-in-libbfd/runtest.sh b/tests/Regression/bz1172766-ppc64-segv-in-libbfd/runtest.sh deleted file mode 100755 index 4a1e56e..0000000 --- a/tests/Regression/bz1172766-ppc64-segv-in-libbfd/runtest.sh +++ /dev/null @@ -1,85 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd -# Description: Test for BZ#1172766 (ppc64 segv in libbfd) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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 - -PACKAGES="binutils" -REQUIRES="${REQUIRES:-kernel-debuginfo}" - -__have_kernel_debuginfo () { - local RELEASE ARCH TEMPDIR - rlRun "RELEASE=$(uname -r)" - rlRun "ARCH=$(uname -i)" - if ! rpm -q kernel-debuginfo-$RELEASE &>/dev/null; then - rlLogInfo 'kernel-debuginfo not present, trying to install it' - rlRun "TEMPDIR=$(mktemp -d -p $HOME)" # $HOME to avoid "small" tmpfs - rlRun "pushd '$TEMPDIR'" - rlRun "koji download-build -q --debuginfo kernel-$RELEASE --arch $ARCH" - rlRun "dnf -y install ./kernel-debuginfo-*.rpm" - rlRun 'popd' - rlRun "rm -rf '$TEMPDIR'" - fi - rlAssertRpm kernel-debuginfo-$RELEASE -} - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "KERNEL=$(uname -a)" - - __have_kernel_debuginfo - - rlAssertRpm --all - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "KERNEL_RELEASE=$(uname -r)" - rlRun "KMOD=/usr/lib/modules/$KERNEL_RELEASE/kernel/fs/nfsd/nfsd.ko" - rlRun "KMOD_XZ=$KMOD.xz" - rlRun "KMOD_DEBUG=/usr/lib/debug/$KMOD.debug" - rlAssertExists "$KMOD_DEBUG" - rlAssertExists "$KMOD_XZ" - [[ -e "$KMOD" ]] || rlRun "unxz -k $KMOD_XZ" - rlAssertExists "$KMOD" - rlPhaseEnd - - rlPhaseStartTest - rlRun "eu-unstrip $KMOD $KMOD_DEBUG --output=$TmpDir/unstripped.ko" - rlRun "objdump -drS $TmpDir/unstripped.ko &> /dev/null" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/Makefile b/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/Makefile deleted file mode 100644 index d572682..0000000 --- a/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat -# Description: Test for BZ#1226864 (ld crashes on ppc64 when being used with --oformat) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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=/tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE ldtest.S - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1226864 (ld crashes on ppc64 when being used with --oformat)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1226864" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - @echo "Architectures: x86_64 ppc64 ppc64le s390x" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/PURPOSE b/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/PURPOSE deleted file mode 100644 index 1b13a9a..0000000 --- a/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat -Description: Test for BZ#1226864 (ld crashes on ppc64 when being used with --oformat) -Author: Milos Prchlik -Bug summary: ld crashes on ppc64 when being used with --oformat binary -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1226864 diff --git a/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/ldtest.S b/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/ldtest.S deleted file mode 100644 index 85ac2a3..0000000 --- a/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/ldtest.S +++ /dev/null @@ -1,3 +0,0 @@ -.org 0x100 - nop - diff --git a/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/main.fmf b/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/main.fmf deleted file mode 100644 index 9b30581..0000000 --- a/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/main.fmf +++ /dev/null @@ -1,17 +0,0 @@ -summary: Test for BZ#1226864 (ld crashes on ppc64 when being used with --oformat) -description: | - Bug summary: ld crashes on ppc64 when being used with --oformat binary - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1226864 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 15m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1226864 -extra-summary: /tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat -extra-task: /tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat diff --git a/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/runtest.sh b/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/runtest.sh deleted file mode 100755 index 6112e04..0000000 --- a/tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/runtest.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat -# Description: Test for BZ#1226864 (ld crashes on ppc64 when being used with --oformat) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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 - -LD="${LD:-$(which ld)}" -GCC="${GCC:-$(which gcc)}" -PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1) -REQUIRES="${REQUIRES:-$(rpm --qf '%{name}\n' -qf $(which $GCC) | head -1)}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "GCC=$GCC" - rlLogInfo "LD=$LD" - - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp ldtest.S $TmpDir/" - rlRun "pushd $TmpDir" - rlRun "gcc -c -o ldtest.o ldtest.S" - rlPhaseEnd - - rlPhaseStartTest - rlRun "ld --oformat=binary -o ldtest.bin ldtest.o" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/Makefile b/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/Makefile deleted file mode 100644 index cd780e6..0000000 --- a/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit -# Description: Test for BZ#1243559 ([aarch64][binutils] relocation truncated to fit) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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=/tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE reproducer.c - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1243559 ([aarch64][binutils] relocation truncated to fit)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1243559" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/PURPOSE b/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/PURPOSE deleted file mode 100644 index 1092c5d..0000000 --- a/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit -Description: Test for BZ#1243559 ([aarch64][binutils] relocation truncated to fit) -Author: Milos Prchlik -Bug summary: [aarch64][binutils] relocation truncated to fit: R_AARCH64_CALL26 (veneers not inserted) -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1243559 diff --git a/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/main.fmf b/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/main.fmf deleted file mode 100644 index 9667a9a..0000000 --- a/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/main.fmf +++ /dev/null @@ -1,15 +0,0 @@ -summary: Test for BZ#1243559 ([aarch64][binutils] relocation truncated to fit) -description: | - Bug summary: [aarch64][binutils] relocation truncated to fit: R_AARCH64_CALL26 (veneers not inserted) - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1243559 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 15m -extra-summary: /tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit -extra-task: /tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit diff --git a/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/reproducer.c b/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/reproducer.c deleted file mode 100644 index cd3c523..0000000 --- a/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/reproducer.c +++ /dev/null @@ -1,2 +0,0 @@ -void foo (); -int main () {foo();} diff --git a/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/runtest.sh b/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/runtest.sh deleted file mode 100755 index 722c96b..0000000 --- a/tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/runtest.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit -# Description: Test for BZ#1243559 ([aarch64][binutils] relocation truncated to fit) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="binutils" -PACKAGES="${PACKAGES:-binutils}" -REQUIRES="${REQUIRES:-}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp reproducer.c $TmpDir/" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "gcc -Wl,--defsym=foo=0x80000000 -o reproducer reproducer.c" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/Makefile b/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/Makefile deleted file mode 100644 index ad0bba3..0000000 --- a/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto -# Description: Test for BZ#1248929 (ar SEGFAULT when creating static library with lto) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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=/tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE a.cpp - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1248929 (ar SEGFAULT when creating static library with lto)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1248929" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - @echo "Architectures: x86_64" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/PURPOSE b/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/PURPOSE deleted file mode 100644 index 8e91477..0000000 --- a/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/PURPOSE +++ /dev/null @@ -1,8 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto -Description: Test for BZ#1248929 (ar SEGFAULT when creating static library with lto) -Author: Milos Prchlik -Bug summary: ar SEGFAULT when creating static library with lto -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1248929 - -Relevancy: -collection = devtoolset-4: PACKAGES=devtoolset-4-binutils REQUIRES=devtoolset-4-gcc diff --git a/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/a.cpp b/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/a.cpp deleted file mode 100755 index dc6f974..0000000 --- a/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/a.cpp +++ /dev/null @@ -1,4 +0,0 @@ -int f() -{ -return 0; -} diff --git a/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/main.fmf b/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/main.fmf deleted file mode 100644 index e231ede..0000000 --- a/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/main.fmf +++ /dev/null @@ -1,19 +0,0 @@ -summary: Test for BZ#1248929 (ar SEGFAULT when creating static library with lto) -description: | - Bug summary: ar SEGFAULT when creating static library with lto - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1248929 - - Relevancy: - collection = devtoolset-4: PACKAGES=devtoolset-4-binutils REQUIRES=devtoolset-4-gcc -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -- gcc-c++ -duration: 15m -extra-summary: /tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto -extra-task: /tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto diff --git a/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/runtest.sh b/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/runtest.sh deleted file mode 100755 index 3f36251..0000000 --- a/tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/runtest.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto -# Description: Test for BZ#1248929 (ar SEGFAULT when creating static library with lto) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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 - -AR="${AR:-$(which ar)}" -GPP="${GPP:-$(which g++)}" -PACKAGES="${PACKAGES:-$(rpm --qf '%{name}\n' -qf $(which $AR) | head -1)}" -REQUIRES="${REQUIRES:-$(rpm --qf '%{name}\n' -qf $(which $GPP) | head -1)}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "AR=$AR" - rlLogInfo "GPP=$GPP" - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp a.cpp $TmpDir/" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "g++ -march=native -O3 -flto -c a.cpp" - rlRun "gcc-ar cq a.a a.o" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/Makefile b/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/Makefile deleted file mode 100644 index fe97327..0000000 --- a/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow -# Description: Test for BZ#1311352 (objdump -S disassembly code doesn't follow) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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=/tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow -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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1311352 (objdump -S disassembly code doesn't follow)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils strace nscd glibc-debuginfo" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1311352" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/PURPOSE b/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/PURPOSE deleted file mode 100644 index 0f68bfa..0000000 --- a/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow -Description: Test for BZ#1311352 (objdump -S disassembly code doesn't follow) -Author: Milos Prchlik -Bug summary: objdump -S disassembly code doesn't follow /usr/lib/debug/.... conventions, so can't find sources -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1311352 diff --git a/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/main.fmf b/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/main.fmf deleted file mode 100644 index db83711..0000000 --- a/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/main.fmf +++ /dev/null @@ -1,16 +0,0 @@ -summary: Test for BZ#1311352 (objdump -S disassembly code doesn't follow) -description: | - Bug summary: objdump -S disassembly code doesn't follow /usr/lib/debug/.... conventions, so can't find sources - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1311352 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- strace -- coreutils -duration: 15m -extra-summary: /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow -extra-task: /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow diff --git a/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/runtest.sh b/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/runtest.sh deleted file mode 100755 index fb20d7d..0000000 --- a/tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/runtest.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow -# Description: Test for BZ#1311352 (objdump -S disassembly code doesn't follow) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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 - -OBJDUMP="${OBJDUMP:-$(which objdump)}" -PACKAGES="${PACKAGES:-$(rpm --qf '%{name}\n' -qf $(which $OBJDUMP) | head -1)}" -REQUIRES="${REQUIRES:-}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "OBJDUMP=$OBJDUMP" - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - rlRun "ARCH=$(arch)" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - for i in glibc coreutils; do - rpm -q ${i}-debuginfo.${ARCH} &>/dev/null || rlRun "debuginfo-install -y ${i}.${ARCH}" - done - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "strace -e trace=open,openat -o strace.out $OBJDUMP -drS /usr/bin/ls &> out" - rlRun "grep '/usr/lib/debug' strace.out" - - # Check whether objdump output contains source code snippets. - # ls sources can change in time, but it's likely there always - # will be at least one "int i;". - rlRun "grep 'int i' out > /dev/null" 0 "Checking for source code snippets in objdump output" - - rlLogInfo "$(head -n20 out)" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/Makefile b/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/Makefile deleted file mode 100644 index 4d8708b..0000000 --- a/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains -# Description: Test for BZ#1366145 (dwz applied to a dts-compiled binary complains) -# Author: Sergey Kolosov -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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=/tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains -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: Sergey Kolosov " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1366145 (dwz applied to a dts-compiled binary complains)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 2h" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils dwz gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1366145" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/PURPOSE b/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/PURPOSE deleted file mode 100644 index 0d002e4..0000000 --- a/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/PURPOSE +++ /dev/null @@ -1,18 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains -Description: Test for BZ#1366145 (dwz applied to a dts-compiled binary complains) -Author: Sergey Kolosov -Bug summary: dwz applied to a dts-compiled binary complains about section offsets not monotonically increasing -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1366145 - -Needs a bit more complicated relevancy settings. DWZ is not available in RHEL-6 - unless -you have DTS installed, then you can use (and test) dwz from devtoolset-N-dwz package. - -# First two lines result in "True" when (RHEL6 && DTS). -distro = rhel-6 && collection = devtoolset-6: REQUIRES="devtoolset-6-gcc devtoolset-6-dwz" -distro = rhel-6 && collection = devtoolset-4: REQUIRES="devtoolset-4-gcc devtoolset-4-dwz" - -# No DTS? No dwz then. -distro = rhel-6: False - -# Only RHEL7 remains, and default REQUIRES is good enough for logging. Drop every other distro. -distro != rhel-7: False diff --git a/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/main.fmf b/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/main.fmf deleted file mode 100644 index 67efe30..0000000 --- a/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/main.fmf +++ /dev/null @@ -1,29 +0,0 @@ -summary: Test for BZ#1366145 (dwz applied to a dts-compiled binary complains) -description: | - Bug summary: dwz applied to a dts-compiled binary complains about section offsets not monotonically increasing - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1366145 - - Needs a bit more complicated relevancy settings. DWZ is not available in RHEL-6 - unless - you have DTS installed, then you can use (and test) dwz from devtoolset-N-dwz package. - - # First two lines result in "True" when (RHEL6 && DTS). - distro = rhel-6 && collection = devtoolset-6: REQUIRES="devtoolset-6-gcc devtoolset-6-dwz" - distro = rhel-6 && collection = devtoolset-4: REQUIRES="devtoolset-4-gcc devtoolset-4-dwz" - - # No DTS? No dwz then. - distro = rhel-6: False - - # Only RHEL7 remains, and default REQUIRES is good enough for logging. Drop every other distro. - distro != rhel-7: False -contact: Sergey Kolosov -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- dwz -- gcc -duration: 2h -extra-summary: /tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains -extra-task: /tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains diff --git a/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/runtest.sh b/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/runtest.sh deleted file mode 100755 index 737fefb..0000000 --- a/tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/runtest.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains -# Description: Test for BZ#1366145 (dwz applied to a dts-compiled binary complains) -# Author: Sergey Kolosov -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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 - -LD="${LD:-$(which ld)}" -PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1) -PACKAGES=${PACKAGE} -REQUIRES="${REQUIRES:-gcc dwz}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "LD=$LD" - rlLogInfo "$(type gcc)" - rlAssertRpm --all - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "echo 'int main(void){return 0;}' > test.c" 0 "Generating simple source" - rlRun "gcc test.c -g -o test" - rlRun "md5sum ./test > t_before_dwz" - rlRun "./test" 0 "Test binary is running" - rlRun "dwz ./test" 0 "DWZ returns correct result" - rlRun "md5sum ./test > t_after_dwz" - rlAssertDiffer t_before_dwz t_after_dwz - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/Makefile b/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/Makefile deleted file mode 100644 index 20f28a1..0000000 --- a/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries -# Description: Test for BZ#1406430 (binutils ld silently produces broken PIE binaries) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE pie.c - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1406430 (binutils ld silently produces broken PIE binaries)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1406430" >> $(METADATA) - @echo "Releases: RHEL7" >> $(METADATA) - @echo "Architectures: s390x" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/PURPOSE b/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/PURPOSE deleted file mode 100644 index 60b874e..0000000 --- a/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries -Description: Test for BZ#1406430 (binutils ld silently produces broken PIE binaries) -Author: Milos Prchlik -Bug summary: binutils: ld silently produces broken PIE binaries when linking non-PIC objects -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1406430 diff --git a/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/main.fmf b/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/main.fmf deleted file mode 100644 index b55d994..0000000 --- a/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/main.fmf +++ /dev/null @@ -1,15 +0,0 @@ -summary: Test for BZ#1406430 (binutils ld silently produces broken PIE binaries) -description: | - Bug summary: binutils: ld silently produces broken PIE binaries when linking non-PIC objects - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1406430 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 15m -extra-summary: /CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries -extra-task: /CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries diff --git a/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/pie.c b/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/pie.c deleted file mode 100644 index 3eb3ff3..0000000 --- a/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/pie.c +++ /dev/null @@ -1,5 +0,0 @@ -int -main (int argc, char **argv) -{ - return strcmp (argv[0], "string") == 0; -} diff --git a/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/runtest.sh b/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/runtest.sh deleted file mode 100755 index 30b9798..0000000 --- a/tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/runtest.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries -# Description: Test for BZ#1406430 (binutils ld silently produces broken PIE binaries) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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 - -LD="${LD:-$(which ld)}" -PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1) -PACKAGES=${PACKAGE} -REQUIRES="${REQUIRES:-gcc}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "LD=$LD" - rlLogInfo "$(type gcc)" - rlAssertRpm --all - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp pie.c $TmpDir/" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "gcc -c pie.c" - rlRun "gcc -pie -o pie pie.o" 1 - rlAssertNotExists "pie" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/Makefile b/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/Makefile deleted file mode 100644 index 7f19da3..0000000 --- a/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized -# Description: Test for BZ#1433075 (Rust TLS accesses are badly initialized) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE repr.c - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1433075 (Rust TLS accesses are badly initialized)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1433075" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - @echo "Architectures: i386" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/PURPOSE b/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/PURPOSE deleted file mode 100644 index ef8f696..0000000 --- a/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized -Description: Test for BZ#1433075 (Rust TLS accesses are badly initialized) -Author: Milos Prchlik -Bug summary: Rust TLS accesses are badly initialized -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1433075 diff --git a/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/main.fmf b/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/main.fmf deleted file mode 100644 index d200524..0000000 --- a/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/main.fmf +++ /dev/null @@ -1,14 +0,0 @@ -summary: Test for BZ#1433075 (Rust TLS accesses are badly initialized) -description: | - Bug summary: Rust TLS accesses are badly initialized - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1433075 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -duration: 15m -extra-summary: /CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized -extra-task: /CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized diff --git a/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/repr.c b/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/repr.c deleted file mode 100644 index fc4873d..0000000 --- a/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/repr.c +++ /dev/null @@ -1,13 +0,0 @@ -#include -#include - -static __thread int a; -static int *c; - -int main(int argc, char *argv[]) -{ - a = 2; - c = &a; - printf("c=%d\n", *c); - return 0; -} diff --git a/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/runtest.sh b/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/runtest.sh deleted file mode 100755 index 95b570b..0000000 --- a/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/runtest.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized -# Description: Test for BZ#1433075 (Rust TLS accesses are badly initialized) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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 - -LD="${LD:-$(which ld)}" -PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1) -PACKAGES=${PACKAGE} -REQUIRES="${REQUIRES:-gcc}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "LD=$LD" - rlLogInfo "$(type gcc)" - rlAssertRpm --all - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp repr.c $TmpDir/" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "gcc -o repr1 -fPIC repr.c" - rlRun "./repr1" - - rlRun "gcc -o repr2 -fPIC -pie repr.c" - rlRun "./repr2" - - rlRun "gcc -o repr3 -ftls-model=local-dynamic -fPIC repr.c" - rlRun "./repr3" - - rlRun "gcc -o repr4 -ftls-model=local-dynamic -fPIC -pie repr.c" - rlRun "./repr4" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/Makefile b/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/Makefile deleted file mode 100644 index 50ade02..0000000 --- a/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to -# Description: Test for BZ#1439350 ([LLNL 7.5 FEAT] RFE create an option to) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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=/tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE main.c - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1439350 ([LLNL 7.5 FEAT] RFE create an option to)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils glibc" >> $(METADATA) - @echo "Requires: binutils glibc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1439350" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/PURPOSE b/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/PURPOSE deleted file mode 100644 index df7c38f..0000000 --- a/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to -Description: Test for BZ#1439350 ([LLNL 7.5 FEAT] RFE create an option to) -Author: Milos Prchlik -Bug summary: [LLNL 7.5 FEAT] RFE create an option to permanently link in audit library into an executable (glibc) -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1439350 diff --git a/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/main.c b/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/main.c deleted file mode 100644 index aee9e2e..0000000 --- a/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/main.c +++ /dev/null @@ -1,4 +0,0 @@ -int main(int argc, char **argv) -{ - return 0; -} diff --git a/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/main.fmf b/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/main.fmf deleted file mode 100644 index 9a6a226..0000000 --- a/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/main.fmf +++ /dev/null @@ -1,16 +0,0 @@ -summary: Test for BZ#1439350 ([LLNL 7.5 FEAT] RFE create an option to) -description: | - Bug summary: [LLNL 7.5 FEAT] RFE create an option to permanently link in audit library into an executable (glibc) - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1439350 -contact: Milos Prchlik -component: -- binutils -- glibc -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- glibc -duration: 15m -extra-summary: /tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to -extra-task: /tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to diff --git a/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/runtest.sh b/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/runtest.sh deleted file mode 100755 index d75325a..0000000 --- a/tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/runtest.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to -# Description: Test for BZ#1439350 ([LLNL 7.5 FEAT] RFE create an option to) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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 - -LD="${LD:-$(which ld)}" -PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1) -PACKAGES=${PACKAGE} -REQUIRES="${REQUIRES}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "LD=$LD" - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp main.c $TmpDir/" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "gcc -o main main.c -Wl,-Paudit.so.1 -z globalaudit &> gcc.out" - rlLogInfo "$(cat gcc.out)" - rlRun "egrep 'globalaudit ignored' gcc.out" 1 - rlRun "readelf -d main | grep AUDIT &> readelf.out" - rlLogInfo "$(cat readelf.out)" - rlRun "egrep 'Dependency audit library: \[audit.so.1\]' readelf.out" - rlRun "egrep 'Flags: GLOBAUDIT' readelf.out" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/Makefile b/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/Makefile deleted file mode 100644 index 0bd4caa..0000000 --- a/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command -# Description: Test for BZ#1465318 ([FJ7.4 Bug] [REG] The results of gprof command) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE gprof.file.c - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1465318 ([FJ7.4 Bug] [REG] The results of gprof command)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1465318" >> $(METADATA) - @echo "Releases: RHEL7" >> $(METADATA) - @echo "Architectures: x86_64" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/PURPOSE b/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/PURPOSE deleted file mode 100644 index 98ed854..0000000 --- a/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command -Description: Test for BZ#1465318 ([FJ7.4 Bug] [REG] The results of gprof command) -Author: Milos Prchlik -Bug summary: [FJ7.4 Bug]: [REG] The results of gprof command with some options differ between RHEL7.4 beta and RHEL7.3. -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1465318 diff --git a/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/gprof.file.c b/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/gprof.file.c deleted file mode 100644 index 005c451..0000000 --- a/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/gprof.file.c +++ /dev/null @@ -1,4 +0,0 @@ -static void fun2(){int i=0;} - void fun1(){int i=0;} - void fun3(){} - int main(){ fun1(); fun2(); return 0;} diff --git a/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/main.fmf b/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/main.fmf deleted file mode 100644 index 8dfb13a..0000000 --- a/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/main.fmf +++ /dev/null @@ -1,15 +0,0 @@ -summary: Test for BZ#1465318 ([FJ7.4 Bug] [REG] The results of gprof command) -description: | - Bug summary: [FJ7.4 Bug]: [REG] The results of gprof command with some options differ between RHEL7.4 beta and RHEL7.3. - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1465318 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 5m -extra-summary: /CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command -extra-task: /CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command diff --git a/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/runtest.sh b/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/runtest.sh deleted file mode 100755 index 78a4bea..0000000 --- a/tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/runtest.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command -# Description: Test for BZ#1465318 ([FJ7.4 Bug] [REG] The results of gprof command) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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 - -LD="${LD:-$(which ld)}" -PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1) -PACKAGES=${PACKAGE} -REQUIRES="${REQUIRES:-gcc}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "LD=$LD" - rlLogInfo "$(type gcc)" - rlAssertRpm --all - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp gprof.file.c $TmpDir/" - rlRun "pushd $TmpDir" - rlRun "gcc -pg -g gprof.file.c -o gprof.file" - rlRun "./gprof.file" - rlAssertExists "gmon.out" - rlPhaseEnd - - rlPhaseStartTest - rlRun "gprof -A gprof.file > option-large_A" - rlRun "gprof -C gprof.file > option-large_C" - rlRun "gprof -l gprof.file > option-l" - - rlLogInfo "$(cat option-large_A)" - rlLogInfo "$(cat option-large_C)" - rlLogInfo "$(cat option-l)" - - rlRun "grep -E '##### -> +void fun3\(\)\{\}' option-large_A" - rlRun "grep -E '1 -> +void fun1\(\)\{int i=0;\}' option-large_A" - - rlRun "grep -E 'gprof.file.c:2: \(fun1:0x[0-9a-z]+\) 1 executions' option-large_C" - - rlRun "grep -E '0.00 +0.00 +0.00 +1 +0.00 +0.00 +fun1 \(gprof.file.c:2 @ [0-9a-z]+\)' option-l" - rlRun "grep -E '\[1\] +0.0 +0.00 +0.00 +1 +fun1 \(gprof.file.c:2 @ [0-9a-z]+\) \[1\]' option-l" - rlRun "grep -E '\[1\] fun1 \(gprof.file.c:2 @ [0-9a-z]+\) \[2\] fun2 \(gprof.file.c:1 @ [0-9a-z]+\)' option-l" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/Makefile b/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/Makefile deleted file mode 100644 index 7106023..0000000 --- a/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx -# Description: Test for BZ#1573872 (ld should allow "lea foo@GOT, %ecx") -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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=/tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE reproducer.S - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1573872 (ld should allow \"lea foo@GOT, %ecx\")" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1573872" >> $(METADATA) - @echo "Releases: RHEL7 RHEL8" >> $(METADATA) - @echo "Architectures: x86_64" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/PURPOSE b/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/PURPOSE deleted file mode 100644 index d122c08..0000000 --- a/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx -Description: Test for BZ#1573872 (ld should allow "lea foo@GOT, %ecx") -Author: Milos Prchlik -Bug summary: ld should allow "lea foo@GOT, %ecx" -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1573872 diff --git a/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/main.fmf b/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/main.fmf deleted file mode 100644 index e7444d7..0000000 --- a/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/main.fmf +++ /dev/null @@ -1,14 +0,0 @@ -summary: Test for BZ#1573872 (ld should allow "lea foo@GOT, %ecx") -description: | - Bug summary: ld should allow "lea foo@GOT, %ecx" - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1573872 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -duration: 15m -extra-summary: /tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx -extra-task: /tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx diff --git a/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/reproducer.S b/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/reproducer.S deleted file mode 100644 index 602f760..0000000 --- a/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/reproducer.S +++ /dev/null @@ -1,17 +0,0 @@ - .text - .globl bar - .type bar, @function -bar: - call __x86.get_pc_thunk.ax - addl $_GLOBAL_OFFSET_TABLE_, %eax - lea foo@GOT, %ecx - mov (%eax,%ecx,1), %eax - ret - .section .text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat - .globl __x86.get_pc_thunk.ax - .hidden __x86.get_pc_thunk.ax - .type __x86.get_pc_thunk.ax, @function -__x86.get_pc_thunk.ax: - movl (%esp), %eax - ret - .section .note.GNU-stack,"",@progbits diff --git a/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/runtest.sh b/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/runtest.sh deleted file mode 100755 index 1ba10a2..0000000 --- a/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/runtest.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx -# Description: Test for BZ#1573872 (ld should allow "lea foo@GOT, %ecx") -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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 - -AS="${AS:-$(which as)}" -PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $AS) | head -1) -PACKAGES="${PACKAGES:-$PACKAGE}" -REQUIRES="${REQUIRES:-}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "AS=$AS" - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp reproducer.S $TmpDir/" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "gcc -B./ -m32 -c -o reproducer.o reproducer.S" - rlRun "ld -melf_i386 -shared -o libx.so reproducer.o" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/Makefile b/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/Makefile deleted file mode 100644 index a80228d..0000000 --- a/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT -# Description: Test for BZ#1624776 (binutils ld removes some R_X86_64_JUMP_SLOT) -# Author: Edjunior Machado -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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=/tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE reloc.s - -.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: Edjunior Machado " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1624776 (binutils ld removes some R_X86_64_JUMP_SLOT)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils sed" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1624776" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - @echo "Architectures: x86_64" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/PURPOSE b/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/PURPOSE deleted file mode 100644 index df85d7c..0000000 --- a/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT -Description: Test for BZ#1624776 (binutils ld removes some R_X86_64_JUMP_SLOT) -Author: Edjunior Machado -Bug summary: binutils: ld removes some R_X86_64_JUMP_SLOT relocations -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1624776 diff --git a/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/main.fmf b/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/main.fmf deleted file mode 100644 index d1ef24c..0000000 --- a/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/main.fmf +++ /dev/null @@ -1,15 +0,0 @@ -summary: Test for BZ#1624776 (binutils ld removes some R_X86_64_JUMP_SLOT) -description: | - Bug summary: binutils: ld removes some R_X86_64_JUMP_SLOT relocations - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1624776 -contact: Edjunior Machado -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- sed -duration: 5m -extra-summary: /tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT -extra-task: /tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT diff --git a/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/reloc.s b/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/reloc.s deleted file mode 100644 index f417f5b..0000000 --- a/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/reloc.s +++ /dev/null @@ -1,3 +0,0 @@ -.text -mov malloc@GOTPCREL(%rip), %rax -jmp malloc@plt diff --git a/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/runtest.sh b/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/runtest.sh deleted file mode 100755 index 6e4a94c..0000000 --- a/tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/runtest.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT -# Description: Test for BZ#1624776 (binutils ld removes some R_X86_64_JUMP_SLOT) -# Author: Edjunior Machado -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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="$(rpm -qf $(which ld))" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp reloc.s $TmpDir" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "as -o reloc.o reloc.s" - rlAssertExists "reloc.o" - rlRun "ld -o reloc.so -shared reloc.o" - rlAssertExists "reloc.so" - # Conserve the non-zero return value through the pipe - set -o pipefail - rlRun "readelf -rW reloc.so |& tee readelf.out" 0 "Checking out reloc.so relocation section" - rlRun "sed -n '/.rela.dyn/,/^$/p' readelf.out | grep R_X86_64_GLOB_DAT" 0 "Relocation section .rela.dyn should contain R_X86_64_GLOB_DAT entry" - rlRun "sed -n '/.rela.plt/,/^$/p' readelf.out | grep R_X86_64_JUMP_SLOT" 0 "Relocation section .rela.plt should contain R_X86_64_JUMP_SLOT entry" - rlFileSubmit readelf.out - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/Makefile b/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/Makefile deleted file mode 100644 index ce74be8..0000000 --- a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main -# Description: Test for BZ#1693661 (rhel8 gold does not resolve the address of main()) -# Author: Edjunior Machado -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2019 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=/tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE main.c foo.c - -.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: Edjunior Machado " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1693661 (rhel8 gold does not resolve the address of main())" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1693661" >> $(METADATA) - @echo "Releases: -RHEL4 -RHEL6 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/PURPOSE b/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/PURPOSE deleted file mode 100644 index 8764050..0000000 --- a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main -Description: Test for BZ#1693661 (rhel8 gold does not resolve the address of main()) -Author: Edjunior Machado -Bug summary: rhel8 gold does not resolve the address of main() when it is in a shared library in aarch64 -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1693661 diff --git a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/foo.c b/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/foo.c deleted file mode 100644 index cbce2f9..0000000 --- a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/foo.c +++ /dev/null @@ -1,4 +0,0 @@ -int __attribute__ ((noinline)) foo(int x, int y) -{ - return x & y; -} diff --git a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/main.c b/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/main.c deleted file mode 100644 index 3662069..0000000 --- a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/main.c +++ /dev/null @@ -1,8 +0,0 @@ -#include -extern int foo(int, int); - -int main() -{ - printf("%d\n", foo(1, 3)); - return 0; -} diff --git a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/main.fmf b/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/main.fmf deleted file mode 100644 index 75f0dcf..0000000 --- a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/main.fmf +++ /dev/null @@ -1,15 +0,0 @@ -summary: Test for BZ#1693661 (rhel8 gold does not resolve the address of main()) -description: | - Bug summary: rhel8 gold does not resolve the address of main() when it is in a shared library in aarch64 - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1693661 -contact: Edjunior Machado -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 5m -extra-summary: /tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main -extra-task: /tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main diff --git a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/runtest.sh b/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/runtest.sh deleted file mode 100755 index ae424e7..0000000 --- a/tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/runtest.sh +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main -# Description: Test for BZ#1693661 (rhel8 gold does not resolve the address of main()) -# Author: Edjunior Machado -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2019 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 - -LD="${LD:-$(which ld.gold)}" -GCC="${GCC:-$(which gcc)}" - -PACKAGE="${PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)}" -GCC_PACKAGE="${GCC_PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $GCC) | head -1)}" - -PACKAGES="${PACKAGES:-$PACKAGE}" -REQUIRES="${REQUIRES:-$GCC_PACKAGE}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "PACKAGE=$PACKAGE" - rlLogInfo "LD=$LD" - rlLogInfo "GCC=$GCC" - - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp main.c foo.c $TmpDir/" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "gcc -o main.o -fPIC -c main.c" - rlRun "gcc -shared -o libmain.so main.o" - rlRun "gcc -o foo.o -c foo.c" - - rlLogInfo "Linking with gold..." - rlRun "gcc -fuse-ld=gold -o gold.out -lmain -L$PWD -Wl,-v,-rpath=$PWD foo.o" - rlAssertExists "gold.out" - rlRun "./gold.out" # On bz#1693661, it segfaults - - rlLogInfo "Linking with bfd..." - rlRun "gcc -fuse-ld=bfd -o bfd.out -lmain -L$PWD -Wl,-v,-rpath=$PWD foo.o" - rlAssertExists "bfd.out" - rlRun "./bfd.out" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/Makefile b/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/Makefile deleted file mode 100644 index 02571e7..0000000 --- a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections -# Description: Test for BZ#1785294 (binutils support secondary relocation sections) -# Author: Edjunior Machado -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2020 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=/tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE kpatch-3_10_0-1062-1-15.x86_64.ko kpatch-3_10_0-1062-1-15.ppc64le.ko - -.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: Edjunior Machado " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1785294 (binutils support secondary relocation sections)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 10m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils grep gawk" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1785294 1804151 1804149 1804148 1801879" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -RHEL6" >> $(METADATA) - @echo "Architectures: ppc64le x86_64" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/PURPOSE b/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/PURPOSE deleted file mode 100644 index 180c5bd..0000000 --- a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections -Description: Test for BZ#1785294 (binutils support secondary relocation sections) -Author: Edjunior Machado -Bug summary: binutils: support secondary relocation sections [rhel 7.9] -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1785294 diff --git a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/kpatch-3_10_0-1062-1-15.ppc64le.ko b/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/kpatch-3_10_0-1062-1-15.ppc64le.ko deleted file mode 100644 index 862fae3..0000000 Binary files a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/kpatch-3_10_0-1062-1-15.ppc64le.ko and /dev/null differ diff --git a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/kpatch-3_10_0-1062-1-15.x86_64.ko b/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/kpatch-3_10_0-1062-1-15.x86_64.ko deleted file mode 100644 index c68d3c4..0000000 Binary files a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/kpatch-3_10_0-1062-1-15.x86_64.ko and /dev/null differ diff --git a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/main.fmf b/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/main.fmf deleted file mode 100644 index e0c53c6..0000000 --- a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/main.fmf +++ /dev/null @@ -1,16 +0,0 @@ -summary: Test for BZ#1785294 (binutils support secondary relocation sections) -description: | - Bug summary: binutils: support secondary relocation sections [rhel 7.9] - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1785294 -contact: Edjunior Machado -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- grep -- gawk -duration: 10m -extra-summary: /tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections -extra-task: /tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections diff --git a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/runtest.sh b/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/runtest.sh deleted file mode 100755 index 40a0119..0000000 --- a/tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/runtest.sh +++ /dev/null @@ -1,110 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections -# Description: Test for BZ#1785294 (binutils support secondary relocation sections) -# Author: Edjunior Machado -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2020 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 - -OBJCOPY="${OBJCOPY:-$(which objcopy)}" -READELF="${READELF:-$(which readelf)}" -PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $READELF) | head -1) -PACKAGES=${PACKAGE} - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "OBJCOPY=$OBJCOPY" - rlLogInfo "READELF=$READELF" - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "SOURCE_DIR=$(pwd)" - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStart FAIL "Check support" - rlRun "ARCH=$(arch)" - case "$ARCH" in - x86_64 | ppc64le) - KO_FILE="${SOURCE_DIR}/kpatch-3_10_0-1062-1-15.${ARCH}.ko" - rlLogInfo "KO_FILE=$KO_FILE" - HAS_SUPPORT=1 - ;; - *) - rlLogWarning "Feature not supported on $ARCH" - HAS_SUPPORT=0 - ;; - esac - rlPhaseEnd - -if [ $HAS_SUPPORT = 1 ]; then - rlPhaseStartTest - rlAssertExists $KO_FILE - rlRun "set -o pipefail" 0 "Conserve the non-zero return value through the pipe" - - # As suggested by nickc@redhat.com: - rlRun "objcopy $KO_FILE copy.ko" - rlRun "readelf --wide --section-headers copy.ko |& tee readelf_headers.out" - rlRun -l "grep \".klp.rela.vmlinux.*\ RELA\ \" readelf_headers.out" - - # And as suggested by joe.lawrence@redhat.com: - rlRun "readelf --wide --relocs $KO_FILE |& tee readelf_relocs.out" - rlRun -l "awk \"/^Relocation section '.klp/\" RS='\n\n' ORS='\n\n' readelf_relocs.out" - rlRun -l "grep \"^Relocation section '.klp\" readelf_relocs.out" - - rlRun "readelf --wide --symbols $KO_FILE |& tee readelf_symbols.out" - # Section index for these symbols must be SHN_LIVEPATCH (0xff20) - rlRun -l "grep '\[0xff20\]\ \.klp\.sym' readelf_symbols.out" - - rlRun "tar czvf readelf_outputs.tar.gz readelf_headers.out readelf_relocs.out readelf_symbols.out" - rlFileSubmit readelf_outputs.tar.gz "${PACKAGE}-readelf_outputs.tar.gz" - rlPhaseEnd -fi - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/Makefile b/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/Makefile deleted file mode 100644 index fe2d5ce..0000000 --- a/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regressions/cxxfilt/bz495196-man-page-for-c-filt-contains-unsupported-options -# Description: Checks c++filt's man page for unsupported options -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 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=/tools/binutils/Regressions/cxxfilt/bz495196-man-page-for-c-filt-contains-unsupported-options -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) - chmod a+x ./runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Checks c++filt" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 495196 485194 526228 545384" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/PURPOSE b/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/PURPOSE deleted file mode 100644 index 783ddf2..0000000 --- a/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /tools/binutils/Regressions/cxxfilt/bz495196-man-page-for-c-filt-contains-unsupported-options -Description: Checks c++filt's man page for unsupported options -Author: Michal Nowak diff --git a/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/main.fmf b/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/main.fmf deleted file mode 100644 index a2a16ec..0000000 --- a/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/main.fmf +++ /dev/null @@ -1,14 +0,0 @@ -summary: Checks c++filt -description: '' -contact: Michal Nowak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=495196 -extra-summary: /tools/binutils/Regressions/cxxfilt/bz495196-man-page-for-c-filt-contains-unsupported-options -extra-task: /tools/binutils/Regressions/cxxfilt/bz495196-man-page-for-c-filt-contains-unsupported-options diff --git a/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/runtest.sh b/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/runtest.sh deleted file mode 100755 index 5de892a..0000000 --- a/tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/runtest.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regressions/cxx-filt/bz495196-man-page-for-c-filt-contains-unsupported-options -# Description: Checks c++filt's man page for unsupported options -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 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="binutils" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlShowPackageVersion binutils - rlShowRunningKernel - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlRun "man c++filt | sed $'s/.\x08//g' > cxxfilt.man" 0 "Write prepared cxxfilt man page" - rlPhaseEnd - - rlPhaseStartTest - rlAssertNotGrep "--*strip-underscores" cxxfilt.man -- - rlAssertNotGrep "--n*o*-*strip-underscores" cxxfilt.man -- - rlAssertNotGrep "--*java" cxxfilt.man -- - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd - rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/Makefile b/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/Makefile deleted file mode 100644 index fc6ccd7..0000000 --- a/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary -# Description: This only happens with gcc -static -s; compiling with gcc -static and then stripping with strip works fine. -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# 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 3 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=/tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE hello-unexpected-reloc-type.c - -.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: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: This only happens with gcc -static -s; compiling with gcc -static and then stripping with strip works fine." >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils binutils220" >> $(METADATA) - @echo "Requires: binutils glibc-static gcc44 binutils220 glibc-devel" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv3" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 533321" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/PURPOSE b/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/PURPOSE deleted file mode 100644 index 59c210b..0000000 --- a/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary -Description: This only happens with gcc -static -s; compiling with gcc -static and then stripping with strip works fine. -Author: Michal Nowak diff --git a/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/hello-unexpected-reloc-type.c b/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/hello-unexpected-reloc-type.c deleted file mode 100644 index e7d11ba..0000000 --- a/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/hello-unexpected-reloc-type.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -int main() { - fprintf(stderr, "Hello world\n"); - return 0; -} diff --git a/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/main.fmf b/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/main.fmf deleted file mode 100644 index 0db1003..0000000 --- a/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/main.fmf +++ /dev/null @@ -1,19 +0,0 @@ -summary: This only happens with gcc -static -s; compiling with gcc -static and then - stripping with strip works fine. -description: '' -contact: Michal Nowak -component: -- binutils -- binutils220 -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -- glibc-devel -- glibc-static -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=533321 -extra-summary: /tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary -extra-task: /tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary diff --git a/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/runtest.sh b/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/runtest.sh deleted file mode 100755 index a656e2f..0000000 --- a/tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/runtest.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary -# Description: This only happens with gcc -static -s; compiling with gcc -static and then stripping with strip works fine. -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010, 2012 Red Hat, Inc. All rights reserved. -# -# 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 3 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 rhts environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="binutils" - -# Choose the compiler. -GCC=${GCC:-gcc} - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - cp hello-unexpected-reloc-type.c $TmpDir - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest "gcc=$GCC" - rlRun "$GCC -static -s -o hello-unexpected-reloc-type hello-unexpected-reloc-type.c" 0 "Compiling & linking hello-unexpected-reloc-type.c " - rlAssertExists "hello-unexpected-reloc-type" - rlRun "./hello-unexpected-reloc-type" - rm hello-unexpected-reloc-type - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/Makefile b/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/Makefile deleted file mode 100644 index f684759..0000000 --- a/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regressions/ld/bz579696-ld-r-produces-nonzero-sh_addr-values -# Description: .text, .data, and .bss show sh_addr values that are not zero. -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# 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 3 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=/tools/binutils/Regressions/ld/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE X.o - -.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: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: ld eats all available memory on any -gdwarf-4 compiled object that needs warnings being emitted" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils binutils220" >> $(METADATA) - @echo "Requires: binutils binutils220 gcc44" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv3" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 579696" >> $(METADATA) - @echo "Architectures: i386 x86_64" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/PURPOSE b/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/PURPOSE deleted file mode 100644 index e69de29..0000000 --- a/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/PURPOSE +++ /dev/null diff --git a/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/main.fmf b/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/main.fmf deleted file mode 100644 index f0de04b..0000000 --- a/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/main.fmf +++ /dev/null @@ -1,19 +0,0 @@ -summary: ld eats all available memory on any -gdwarf-4 compiled object that needs - warnings being emitted -description: '' -contact: Michal Nowak -component: -- binutils -- binutils220 -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- binutils220 -- gcc -- gcc44 -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=579696 -extra-summary: /tools/binutils/Regressions/ld/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object -extra-task: /tools/binutils/Regressions/ld/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object diff --git a/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/runtest.sh b/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/runtest.sh deleted file mode 100755 index 7ba640c..0000000 --- a/tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/runtest.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regressions/ld/bz579696-ld-r-produces-nonzero-sh_addr-values -# Description: .text, .data, and .bss show sh_addr values that are not zero. -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010, 2012 Red Hat, Inc. All rights reserved. -# -# 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 3 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 rhts environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="binutils" - -# Choose the compiler. -GCC=${GCC:-gcc} - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - cp X.o $TmpDir - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest "gcc=$GCC" - rlWatchdog "$GCC -m32 -o X X.o" 5 - rlAssert0 "gcc/ld finished on it's own" $? - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/Makefile b/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/Makefile deleted file mode 100644 index fd8e9af..0000000 --- a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/Makefile +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# 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 3 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=/tools/binutils/Regressions/ld/bz587788-ld_-r-generates-R_X86_64_NONE -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE foo.c module-common.lds - -.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: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: ld -r generates R_X86_64_NONE" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils binutils220" >> $(METADATA) - @echo "Requires: binutils gcc44 gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv3" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 587788" >> $(METADATA) - @echo "Architectures: x86_64" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/PURPOSE b/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/PURPOSE deleted file mode 100644 index b7dec1d..0000000 --- a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/PURPOSE +++ /dev/null @@ -1,42 +0,0 @@ -WRONG: - - $ readelf -r foo2.o - - Relocation section '.rela.debug_info' at offset 0x618 contains 11 entries: - Offset Info Type Sym. Value Sym. Name + Addend - 000000000006 00040000000a R_X86_64_32 0000000000000000 .debug_abbrev + 0 - 00000000000c 00080000000a R_X86_64_32 0000000000000000 .debug_str + b - 000000000011 00080000000a R_X86_64_32 0000000000000000 .debug_str + 38 - 000000000015 00080000000a R_X86_64_32 0000000000000000 .debug_str + 6 - 000000000019 000100000001 R_X86_64_64 0000000000000000 .text + 0 - 000000000021 000100000001 R_X86_64_64 0000000000000000 .text + 0 - 000000000029 00060000000a R_X86_64_32 0000000000000000 .debug_line + 0 - 00000000002e 00080000000a R_X86_64_32 0000000000000000 .debug_str + 33 - 00000000003b 000c00000001 R_X86_64_64 0000000000000004 here + 0 - 00000000004b 00080000000a R_X86_64_32 0000000000000000 .debug_str + 0 --> 000000000058 000000000000 R_X86_64_NONE 0000000000000000 - - Relocation section '.rela.debug_pubnames' at offset 0x720 contains 1 entries: - Offset Info Type Sym. Value Sym. Name + Addend - 000000000006 00050000000a R_X86_64_32 0000000000000000 .debug_info + 0 - - -OK: - - Relocation section '.rela.debug_info' at offset 0x628 contains 10 entries: - Offset Info Type Sym. Value Sym. Name + Addend - 000000000006 00040000000a R_X86_64_32 0000000000000000 .debug_abbrev + 0 - 00000000000c 00080000000a R_X86_64_32 0000000000000000 .debug_str + 1f - 000000000011 00080000000a R_X86_64_32 0000000000000000 .debug_str + 46 - 000000000015 00080000000a R_X86_64_32 0000000000000000 .debug_str + b - 000000000019 000100000001 R_X86_64_64 0000000000000000 .text + 0 - 000000000021 000100000001 R_X86_64_64 0000000000000000 .text + 0 - 000000000029 00060000000a R_X86_64_32 0000000000000000 .debug_line + 0 - 00000000002e 00080000000a R_X86_64_32 0000000000000000 .debug_str + 6 - 00000000003b 000c00000001 R_X86_64_64 0000000000000004 here + 0 - 00000000004b 00080000000a R_X86_64_32 0000000000000000 .debug_str + 0 - - Relocation section '.rela.debug_pubnames' at offset 0x730 contains 1 entries: - Offset Info Type Sym. Value Sym. Name + Addend - 000000000006 00050000000a R_X86_64_32 0000000000000000 .debug_info + 0 - diff --git a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/foo.c b/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/foo.c deleted file mode 100644 index 7e8b716..0000000 --- a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/foo.c +++ /dev/null @@ -1 +0,0 @@ -int here, there __attribute__ ((section (".discard"))); diff --git a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/main.fmf b/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/main.fmf deleted file mode 100644 index e73e784..0000000 --- a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/main.fmf +++ /dev/null @@ -1,48 +0,0 @@ -summary: ld -r generates R_X86_64_NONE -description: "WRONG:\n\n $ readelf -r foo2.o\n \n Relocation section '.rela.debug_info'\ - \ at offset 0x618 contains 11 entries:\n Offset Info Type\ - \ Sym. Value Sym. Name + Addend\n 000000000006 00040000000a R_X86_64_32\ - \ 0000000000000000 .debug_abbrev + 0\n 00000000000c 00080000000a R_X86_64_32\ - \ 0000000000000000 .debug_str + b\n 000000000011 00080000000a R_X86_64_32\ - \ 0000000000000000 .debug_str + 38\n 000000000015 00080000000a R_X86_64_32\ - \ 0000000000000000 .debug_str + 6\n 000000000019 000100000001 R_X86_64_64\ - \ 0000000000000000 .text + 0\n 000000000021 000100000001 R_X86_64_64\ - \ 0000000000000000 .text + 0\n 000000000029 00060000000a R_X86_64_32\ - \ 0000000000000000 .debug_line + 0\n 00000000002e 00080000000a R_X86_64_32\ - \ 0000000000000000 .debug_str + 33\n 00000000003b 000c00000001 R_X86_64_64\ - \ 0000000000000004 here + 0\n 00000000004b 00080000000a R_X86_64_32\ - \ 0000000000000000 .debug_str + 0\n-> 000000000058 000000000000 R_X86_64_NONE\ - \ 0000000000000000\n \n Relocation section '.rela.debug_pubnames'\ - \ at offset 0x720 contains 1 entries:\n Offset Info Type\ - \ Sym. Value Sym. Name + Addend\n 000000000006 00050000000a R_X86_64_32\ - \ 0000000000000000 .debug_info + 0\n\n\nOK:\n\n Relocation section '.rela.debug_info'\ - \ at offset 0x628 contains 10 entries:\n Offset Info Type\ - \ Sym. Value Sym. Name + Addend\n 000000000006 00040000000a R_X86_64_32\ - \ 0000000000000000 .debug_abbrev + 0\n 00000000000c 00080000000a R_X86_64_32\ - \ 0000000000000000 .debug_str + 1f\n 000000000011 00080000000a R_X86_64_32\ - \ 0000000000000000 .debug_str + 46\n 000000000015 00080000000a R_X86_64_32\ - \ 0000000000000000 .debug_str + b\n 000000000019 000100000001 R_X86_64_64\ - \ 0000000000000000 .text + 0\n 000000000021 000100000001 R_X86_64_64\ - \ 0000000000000000 .text + 0\n 000000000029 00060000000a R_X86_64_32\ - \ 0000000000000000 .debug_line + 0\n 00000000002e 00080000000a R_X86_64_32\ - \ 0000000000000000 .debug_str + 6\n 00000000003b 000c00000001 R_X86_64_64\ - \ 0000000000000004 here + 0\n 00000000004b 00080000000a R_X86_64_32\ - \ 0000000000000000 .debug_str + 0\n \n Relocation section '.rela.debug_pubnames'\ - \ at offset 0x730 contains 1 entries:\n Offset Info Type\ - \ Sym. Value Sym. Name + Addend\n 000000000006 00050000000a R_X86_64_32\ - \ 0000000000000000 .debug_info + 0\n\n" -contact: Michal Nowak -component: -- binutils -- binutils220 -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc44 -- gcc -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=587788 -extra-summary: /tools/binutils/Regressions/ld/bz587788-ld_-r-generates-R_X86_64_NONE -extra-task: /tools/binutils/Regressions/ld/bz587788-ld_-r-generates-R_X86_64_NONE diff --git a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/module-common.lds b/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/module-common.lds deleted file mode 100644 index 96e0e15..0000000 --- a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/module-common.lds +++ /dev/null @@ -1,9 +0,0 @@ -/* - * Common module linker script, always used when linking a module. - * Archs are free to supply their own linker scripts. ld will - * combine them automatically. - */ -SECTIONS { - /DISCARD/ : { *(.discard) } -} - diff --git a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/runtest.sh b/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/runtest.sh deleted file mode 100755 index 52b4242..0000000 --- a/tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/runtest.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regressions/ld/bz579696-ld-r-produces-nonzero-sh_addr-values -# Description: .text, .data, and .bss show sh_addr values that are not zero. -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010, 2012 Red Hat, Inc. All rights reserved. -# -# 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 3 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 rhts environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="binutils" - -# Choose the compiler. -GCC=${GCC:-gcc} - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlAssertRpm gcc - rlCheckRpm gcc44 - rlCheckRpm binutils220 - - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - cp foo.c module-common.lds $TmpDir - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "$GCC -c foo.c -g -O0" - rlRun "ld -r -o foo2.o -T module-common.lds foo.o" - rlAssertExists foo2.o - readelf -r foo2.o &> readelf.r - cat readelf.r - rlAssertNotGrep R_X86_64_NONE readelf.r - - rm foo2.o foo.o readelf.r - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/Makefile b/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/Makefile deleted file mode 100644 index 80c97b5..0000000 --- a/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable -# Description: ELFOSABI_LINUX is incorrectly set in a dynamic ifunc-using executable -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE bar.c - -.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: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: ELFOSABI_LINUX is incorrectly set in a dynamic ifunc-using executable" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 689829" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/PURPOSE b/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/PURPOSE deleted file mode 100644 index 1580da7..0000000 --- a/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable -Description: ELFOSABI_LINUX is incorrectly set in a dynamic ifunc-using executable -Author: Michal Nowak diff --git a/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/bar.c b/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/bar.c deleted file mode 100644 index b908b6d..0000000 --- a/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/bar.c +++ /dev/null @@ -1 +0,0 @@ -int main () { return 42; } diff --git a/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/main.fmf b/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/main.fmf deleted file mode 100644 index 10a3730..0000000 --- a/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/main.fmf +++ /dev/null @@ -1,15 +0,0 @@ -summary: ELFOSABI_LINUX is incorrectly set in a dynamic ifunc-using executable -description: '' -contact: Michal Nowak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=689829 -extra-summary: /tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable -extra-task: /tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable diff --git a/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/runtest.sh b/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/runtest.sh deleted file mode 100755 index cbf29e1..0000000 --- a/tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/runtest.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable -# Description: ELFOSABI_LINUX is incorrectly set in a dynamic ifunc-using executable -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="binutils" - -# Choose the compiler. -GCC=${GCC:-gcc} - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "$GCC bar.c -o ${TmpDir}/bar" - rlRun "pushd $TmpDir" - rlAssertExists "bar" - rlPhaseEnd - - rlPhaseStartTest - readelf -a bar | grep 'OS/ABI' > out - rlAssertGrep "UNIX - System V" out - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/Makefile b/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/Makefile deleted file mode 100644 index c05bd01..0000000 --- a/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match -# Description: eu-unstrip: do not seem to match -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: eu-unstrip: do not seem to match" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 698005" >> $(METADATA) - @echo "Architectures: i386 x86_64" >> $(METADATA) - @echo "Releases: -RedHatEnterpriseLinux4 -RedHatEnterpriseLinuxServer5 -RedHatEnterpriseLinuxClient5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/PURPOSE b/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/PURPOSE deleted file mode 100644 index db9f429..0000000 --- a/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match -Description: eu-unstrip: do not seem to match -Author: Michal Nowak diff --git a/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/main.fmf b/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/main.fmf deleted file mode 100644 index 849dea7..0000000 --- a/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/main.fmf +++ /dev/null @@ -1,14 +0,0 @@ -summary: 'eu-unstrip: do not seem to match' -description: '' -contact: Michal Nowak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=698005 -extra-summary: /tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match -extra-task: /tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match diff --git a/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/runtest.sh b/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/runtest.sh deleted file mode 100755 index 0905192..0000000 --- a/tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/runtest.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match -# Description: eu-unstrip: do not seem to match -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="binutils" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - EABI_file="$(file $(find /usr/bin /bin /sbin /usr/sbin/) | grep '(GNU/Linux)' | tail -n1 | awk '{ print $1 }' | sed 's/://g')" - rlPhaseStartTest - if [ "${EABI_file}" ]; then - rlLog "EABI_file = $EABI_file" - rlRun "cp -v $EABI_file $TmpDir" 0 "Copy file with GNU/Linux EABI" - local_binary="$(basename ${EABI_file})" - rlAssertExists ${local_binary} - rlRun "strip -R .comment ${local_binary}" - file $local_binary > out - rlAssertNotGrep "(SYSV)" out - else - rlDie "There's nothing to test." - fi - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/Makefile b/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/Makefile deleted file mode 100644 index 8a13303..0000000 --- a/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1 -# Description: Make sure there is .stapsdt.base field -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1 -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: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Make sure there is .stapsdt.base field" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils glibc systemtap" >> $(METADATA) - @echo "Requires: binutils glibc.i386 glibc.x86_64 glibc.ppc glibc.ppc64 glibc.s390 glibc.s390x glibc.ia64 glibc.i686" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 748927" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/PURPOSE b/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/PURPOSE deleted file mode 100644 index b0c2e6a..0000000 --- a/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/PURPOSE +++ /dev/null @@ -1,8 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1 -Description: Make sure there is .stapsdt.base field -Author: Michal Nowak - -arch = s390,s390x && distro = rhel-7: False -arch = ppc64 && distro = rhel-7: False -arch = aarch64: False -arch = ppc64le: False diff --git a/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/main.fmf b/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/main.fmf deleted file mode 100644 index 57595d6..0000000 --- a/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: Make sure there is .stapsdt.base field -description: | - arch = s390,s390x && distro = rhel-7: False - arch = ppc64 && distro = rhel-7: False - arch = aarch64: False - arch = ppc64le: False -contact: Michal Nowak -component: -- binutils -- glibc -- systemtap -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- glibc.i386 -- glibc.x86_64 -- glibc.ppc -- glibc.ppc64 -- glibc.s390 -- glibc.s390x -- glibc.ia64 -- glibc.i686 -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=748927 -extra-summary: /tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1 -extra-task: /tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1 diff --git a/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/runtest.sh b/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/runtest.sh deleted file mode 100755 index 11525b6..0000000 --- a/tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/runtest.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1 -# Description: Make sure there is .stapsdt.base field -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="binutils" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlCheckRpm glibc - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlRun "grep -q CONFIG_UTRACE /boot/config-$( uname -r )" 0,1 || rlLogWarning "Uprobes disabled" - rlPhaseEnd - -for ld in $( ls {/emul/ia32-linux,}/lib*/ld-2* 2> /dev/null); do - rlPhaseStartTest "${ld} from $( rpmquery -f ${ld} )" - filename="$( basename ${ld} ).readline" - rlRun "readelf -S ${ld} > $filename" 0 "[$( basename ${ld} )] Write section headers of ${ld}" - if ! [[ "$( rlGetArch )" == "ia64" && ! "${ld}" =~ "emul" ]]; then - rlAssertGrep ".stapsdt.base " $filename || rlLogError "This may be problem for SystemTap" - fi - rlAssertNotGrep ".stapsdt.base.1" $filename || rlLogError "This may be problem for SystemTap" - rlPhaseEnd -done - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/Makefile b/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/Makefile deleted file mode 100644 index 0c4ff31..0000000 --- a/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables -# Description: Tests -pie + -fpie with __thread -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE w.c - -.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: Michal Nowak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Tests -pie + -fpie with __thread" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 755872" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/PURPOSE b/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/PURPOSE deleted file mode 100644 index 0e18d07..0000000 --- a/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables -Description: Tests -pie + -fpie with __thread -Author: Michal Nowak diff --git a/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/main.fmf b/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/main.fmf deleted file mode 100644 index 0b3dfeb..0000000 --- a/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/main.fmf +++ /dev/null @@ -1,15 +0,0 @@ -summary: Tests -pie + -fpie with __thread -description: '' -contact: Michal Nowak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=755872 -extra-summary: /tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables -extra-task: /tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables diff --git a/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/runtest.sh b/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/runtest.sh deleted file mode 100755 index 9529476..0000000 --- a/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/runtest.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables -# Description: Tests -pie + -fpie with __thread -# Author: Michal Nowak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="binutils" - -# Choose the compiler. -GCC=${GCC:-gcc} - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - cp w.c $TmpDir - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "$GCC -o w -g -O2 -pie -fpie w.c" 0 "Compile __thread with -fpie -pie" - rlAssertExists "w" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/w.c b/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/w.c deleted file mode 100644 index 7b9bb73..0000000 --- a/tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/w.c +++ /dev/null @@ -1,7 +0,0 @@ -__thread int a; - -int -main(void) -{ - return a; -} diff --git a/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/Makefile b/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/Makefile deleted file mode 100644 index cb07ab8..0000000 --- a/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual -# Description: Test for BZ#850832 (The binutils package contains the windmc(1) manual) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2014 Red Hat, Inc. -# -# 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/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual -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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#850832 (The binutils package contains the windmc(1) manual)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 850832" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/PURPOSE b/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/PURPOSE deleted file mode 100644 index 5673073..0000000 --- a/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual -Description: Test for BZ#850832 (The binutils package contains the windmc(1) manual) -Author: Milos Prchlik -Bug summary: The binutils package contains the windmc(1) manual page but the utility is not included -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=850832 diff --git a/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/main.fmf b/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/main.fmf deleted file mode 100644 index 4561f87..0000000 --- a/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/main.fmf +++ /dev/null @@ -1,16 +0,0 @@ -summary: Test for BZ#850832 (The binutils package contains the windmc(1) manual) -description: | - Bug summary: The binutils package contains the windmc(1) manual page but the utility is not included - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=850832 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=850832 -extra-summary: /CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual -extra-task: /CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual diff --git a/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/runtest.sh b/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/runtest.sh deleted file mode 100755 index 7e5c970..0000000 --- a/tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/runtest.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual -# Description: Test for BZ#850832 (The binutils package contains the windmc(1) manual) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2014 Red Hat, Inc. -# -# 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="binutils" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "rpm -ql binutils | grep windmc > windmc.txt" 0,1 - rlLogInfo "$(cat windmc.txt)" - rlRun "FILE_CNT=`cat windmc.txt | wc -l`" - if [ "$FILE_CNT" == "1" ]; then - rlFail "Either windmg manpage or binary is present - both options are wrong." - elif [ "$FILE_CNT" == "2" ]; then - rlLogWarning "Both windmc manpage and binary are present - this probably should not happen." - elif [ "$FILE_CNT" == "0" ]; then - rlPass "Windmc manpage nor binary are present" - else - rlLogWarning "Unexpected number of 'windmc' files present in binutils package - broken package/test?" - fi - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/Makefile b/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/Makefile deleted file mode 100644 index 585a0ad..0000000 --- a/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x -# Description: Test for BZ#872148 (PIE + __thread produce text relocations on s390(x)) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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=/tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE reproducer6.c - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#872148 (PIE + __thread produce text relocations on s390(x))" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 872148" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/PURPOSE b/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/PURPOSE deleted file mode 100644 index c01b776..0000000 --- a/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/PURPOSE +++ /dev/null @@ -1,17 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x -Description: Test for BZ#872148 (PIE + __thread produce text relocations on s390(x)) -Author: Milos Prchlik -Bug summary: PIE + __thread produce text relocations on s390(x) -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=872148 - -Requires systemd without a workaround: - -# PIE is broken on s390 (#868839, #872148) -%ifnarch s390 s390x -%global _hardened_build 1 -%endif - -^^ this is a workaround that makes bug disappear for this particular reproducer. -So, fetch systemd srpm, comment this condition out, rebuild, install, reboot, then -you can run this tests. One day I may make this part automatic but replacing systemd -wouldn't be seen as a good behaviour by other tests run after this task, so not yet. diff --git a/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/main.fmf b/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/main.fmf deleted file mode 100644 index c761004..0000000 --- a/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/main.fmf +++ /dev/null @@ -1,30 +0,0 @@ -summary: Test for BZ#872148 (PIE + __thread produce text relocations on s390(x)) -description: | - Bug summary: PIE + __thread produce text relocations on s390(x) - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=872148 - - Requires systemd without a workaround: - - # PIE is broken on s390 (#868839, #872148) - %ifnarch s390 s390x - %global _hardened_build 1 - %endif - - ^^ this is a workaround that makes bug disappear for this particular reproducer. - So, fetch systemd srpm, comment this condition out, rebuild, install, reboot, then - you can run this tests. One day I may make this part automatic but replacing systemd - wouldn't be seen as a good behaviour by other tests run after this task, so not yet. -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- elfutils -- gcc -duration: 15m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=872148 -extra-summary: /tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x -extra-task: /tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x diff --git a/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/reproducer6.c b/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/reproducer6.c deleted file mode 100644 index 29f574e..0000000 --- a/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/reproducer6.c +++ /dev/null @@ -1,20 +0,0 @@ -/* - This reproducer is taken from https://sourceware.org/bugzilla/show_bug.cgi?id=6443 - Author is Jakub Jelinek - - gcc -O2 -pie -fpie -o reproducer6 reproducer6.c - eu-readelf -d reproducer6 | grep TEXTREL - test $? -eq 0 && echo FAIL || echo PASS -*/ - -__thread int a; -__thread int b __attribute((tls_model ("local-exec"))); -__thread int c __attribute((tls_model ("initial-exec"))); -__thread int d __attribute((tls_model ("local-dynamic"))); -__thread int e __attribute((tls_model ("global-dynamic"))); - -int -main (void) -{ - return a + b + c + d + e; -} diff --git a/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/runtest.sh b/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/runtest.sh deleted file mode 100755 index 3e265d0..0000000 --- a/tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/runtest.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x -# Description: Test for BZ#872148 (PIE + __thread produce text relocations on s390(x)) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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 - -PACKAGES="binutils" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp reproducer6.c $TmpDir/" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "gcc -O2 -pie -fpie -o reproducer6 reproducer6.c" - rlRun "eu-readelf -d reproducer6 > elfutils.log" - rlRun "readelf -d reproducer6 > binutils.log" - rlAssertNotGrep "TEXTREL" binutils.log - rlAssertNotGrep "TEXTREL" elfutils.log - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" # $TmpDir - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/Makefile b/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/Makefile deleted file mode 100644 index 4997b15..0000000 --- a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to -# Description: Test for BZ#895241 (Bogus warning about cross object references to) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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=/tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE t.c u.c v.c - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#895241 (Bogus warning about cross object references to)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 895241" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - @echo "Architectures: x86_64" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/PURPOSE b/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/PURPOSE deleted file mode 100644 index e9f699e..0000000 --- a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/PURPOSE +++ /dev/null @@ -1,8 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to -Description: Test for BZ#895241 (Bogus warning about cross object references to) -Author: Milos Prchlik -Bug summary: Bogus warning about cross object references to hidden symbols in GOLD -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=895241 - -Relevancy: -collection = devtoolset-4: PACKAGES=devtoolset-4-binutils REQUIRES=devtoolset-4-gcc ALTERNATIVES_ROOT=/opt/rh/devtoolset-4/root diff --git a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/main.fmf b/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/main.fmf deleted file mode 100644 index 986ad7f..0000000 --- a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/main.fmf +++ /dev/null @@ -1,20 +0,0 @@ -summary: Test for BZ#895241 (Bogus warning about cross object references to) -description: | - Bug summary: Bogus warning about cross object references to hidden symbols in GOLD - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=895241 - - Relevancy: - collection = devtoolset-4: PACKAGES=devtoolset-4-binutils REQUIRES=devtoolset-4-gcc ALTERNATIVES_ROOT=/opt/rh/devtoolset-4/root -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -duration: 15m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=895241 -extra-summary: /tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to -extra-task: /tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to diff --git a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/runtest.sh b/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/runtest.sh deleted file mode 100755 index 34ce87f..0000000 --- a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/runtest.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to -# Description: Test for BZ#895241 (Bogus warning about cross object references to) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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 - -PACKAGES="${PACKAGES:-binutils}" -REQUIRES="${REQUIRES:-gcc}" - -ALTERNATIVES_ROOT="${ALTERNATIVES_ROOT:-}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlAssertRpm --all - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp t.c u.c v.c $TmpDir/" - rlRun "pushd $TmpDir" - - rlRun "alternatives --altdir $ALTERNATIVES_ROOT/etc/alternatives/ --admindir $ALTERNATIVES_ROOT/var/lib/alternatives/ --display ld" - rlRun "alternatives --altdir $ALTERNATIVES_ROOT/etc/alternatives/ --admindir $ALTERNATIVES_ROOT/var/lib/alternatives/ --set ld $ALTERNATIVES_ROOT/usr/bin/ld.gold" - rlRun "alternatives --altdir $ALTERNATIVES_ROOT/etc/alternatives/ --admindir $ALTERNATIVES_ROOT/var/lib/alternatives/ --display ld" - rlPhaseEnd - - rlPhaseStartTest - rlRun "gcc v.c -fPIC -shared -olibv.so" - rlRun "gcc u.c -fPIC -shared -olibu.so" - rlRun "gcc t.c -D_GNU_SOURCE -L. -lu -lv -ldl -Wl,-rpath,`pwd` &> out" - rlLogInfo "$(cat out)" - rlAssertNotGrep "warning: hidden symbol .* is referenced" out - rlRun "./a.out" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "alternatives --altdir $ALTERNATIVES_ROOT/etc/alternatives/ --admindir $ALTERNATIVES_ROOT/var/lib/alternatives/ --auto ld" - rlRun "alternatives --altdir $ALTERNATIVES_ROOT/etc/alternatives/ --admindir $ALTERNATIVES_ROOT/var/lib/alternatives/ --display ld" - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/t.c b/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/t.c deleted file mode 100644 index 01c050d..0000000 --- a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/t.c +++ /dev/null @@ -1,16 +0,0 @@ -#include -#include - -void foo(void) __attribute__((visibility("hidden"))); -void foo(void) { - puts("In executable: foo - before forwarding to DSO"); - ((void(*)(void))dlsym(RTLD_DEFAULT,"foo"))(); - puts("In executable: foo - after forwarding to DSO"); -} - -void bar(void); - -int main() { - foo(); - bar(); -} diff --git a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/u.c b/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/u.c deleted file mode 100644 index b4bdcff..0000000 --- a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/u.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -void foo(void); -void bar(void) { - puts("In DSO: bar"); - foo(); -} diff --git a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/v.c b/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/v.c deleted file mode 100644 index 0576bde..0000000 --- a/tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/v.c +++ /dev/null @@ -1,5 +0,0 @@ -#include - -void foo(void) { - puts("In DSO: foo"); -} diff --git a/tests/Regression/bz916214-binutils-contains-empty-man-pages/Makefile b/tests/Regression/bz916214-binutils-contains-empty-man-pages/Makefile deleted file mode 100644 index 569a79f..0000000 --- a/tests/Regression/bz916214-binutils-contains-empty-man-pages/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages -# Description: Test for BZ#916214 (binutils contains empty man pages) -# Author: Miroslav Franc -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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=/tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages -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: Miroslav Franc " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#916214 (binutils contains empty man pages)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 30m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils man man-db" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 916214" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz916214-binutils-contains-empty-man-pages/PURPOSE b/tests/Regression/bz916214-binutils-contains-empty-man-pages/PURPOSE deleted file mode 100644 index a5f7712..0000000 --- a/tests/Regression/bz916214-binutils-contains-empty-man-pages/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages -Description: Test for BZ#916214 (binutils contains empty man pages) -Author: Miroslav Franc -Bug summary: binutils contains empty man pages -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=916214 diff --git a/tests/Regression/bz916214-binutils-contains-empty-man-pages/main.fmf b/tests/Regression/bz916214-binutils-contains-empty-man-pages/main.fmf deleted file mode 100644 index 0edff97..0000000 --- a/tests/Regression/bz916214-binutils-contains-empty-man-pages/main.fmf +++ /dev/null @@ -1,18 +0,0 @@ -summary: Test for BZ#916214 (binutils contains empty man pages) -description: | - Bug summary: binutils contains empty man pages - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=916214 -contact: Miroslav Franc -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- man -- man-db -duration: 30m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=916214 -extra-summary: /tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages -extra-task: /tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages diff --git a/tests/Regression/bz916214-binutils-contains-empty-man-pages/runtest.sh b/tests/Regression/bz916214-binutils-contains-empty-man-pages/runtest.sh deleted file mode 100755 index 0d92284..0000000 --- a/tests/Regression/bz916214-binutils-contains-empty-man-pages/runtest.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages -# Description: Test for BZ#916214 (binutils contains empty man pages) -# Author: Miroslav Franc -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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 - - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm binutils - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rpm -qd binutils | grep 'man' | while read -r m - do - rlLog "$m" - man "$m" | col -b > man.txt - rlRun "[[ $(wc -c > sums.log - done - rlLog "Do we have enough man pages?" - rlRun "[[ $(wc -l -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2014 Red Hat, Inc. -# -# 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/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE ld-fail.c - -.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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#959422 (TLS variable wrongly relocated on .debug_info)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Architectures: s390x" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 959422" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/PURPOSE b/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/PURPOSE deleted file mode 100644 index c7aad99..0000000 --- a/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info -Description: Test for BZ#959422 (TLS variable wrongly relocated on .debug_info) -Author: Milos Prchlik -Bug summary: TLS variable wrongly relocated on .debug_info -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=959422 diff --git a/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/ld-fail.c b/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/ld-fail.c deleted file mode 100644 index 8dcc1eb..0000000 --- a/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/ld-fail.c +++ /dev/null @@ -1,8 +0,0 @@ -#include - -__thread const char *tls_var = "hello"; - -int main () -{ - return 0; -} diff --git a/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/main.fmf b/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/main.fmf deleted file mode 100644 index 7714e4f..0000000 --- a/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/main.fmf +++ /dev/null @@ -1,18 +0,0 @@ -summary: Test for BZ#959422 (TLS variable wrongly relocated on .debug_info) -description: | - Bug summary: TLS variable wrongly relocated on .debug_info - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=959422 -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- gcc -- gdb -duration: 5m -link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=959422 -extra-summary: /CoreOS/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info -extra-task: /CoreOS/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info diff --git a/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/runtest.sh b/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/runtest.sh deleted file mode 100755 index 1535d54..0000000 --- a/tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/runtest.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info -# Description: Test for BZ#959422 (TLS variable wrongly relocated on .debug_info) -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2014 Red Hat, Inc. -# -# 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="binutils" - -GCC=${GCC:-"gcc"} -GDB=${GDB:-"gdb"} - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "cp ld-fail.c $TmpDir/" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "$GCC -lpthread -g3 -O0 ld-fail.c -o ld-fail" - rlRun "$GDB ./ld-fail -q -ex start -ex 'print tls_var' -ex cont -ex quit &> gdb.log" - rlLogInfo "$(cat gdb.log)" - rlRun "grep -P '\\\$1 = 0x[0-9a-f]{1,16} \"hello\"' gdb.log" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Sanity/dts-probe-binaries/Makefile b/tests/Sanity/dts-probe-binaries/Makefile deleted file mode 100644 index 91e4e34..0000000 --- a/tests/Sanity/dts-probe-binaries/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Sanity/dts-probe-binaries -# Description: Toolset binutils on system/toolset/built binaries. -# Author: Marek Polacek -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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=/tools/binutils/Sanity/dts-probe-binaries -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE check-localplt.c m.c popcnt.c virtual2.C - -.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: Marek Polacek " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Toolset binutils on system/toolset/built binaries." >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 120m" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils ed gcc glibc glibc-headers grep gdb gcc-c++ gawk" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Sanity/dts-probe-binaries/PURPOSE b/tests/Sanity/dts-probe-binaries/PURPOSE deleted file mode 100644 index d7ed635..0000000 --- a/tests/Sanity/dts-probe-binaries/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /tools/binutils/Sanity/dts-probe-binaries -Description: Toolset binutils on system/toolset/built binaries. -Author: Marek Polacek diff --git a/tests/Sanity/dts-probe-binaries/check-localplt.c b/tests/Sanity/dts-probe-binaries/check-localplt.c deleted file mode 100644 index edab1d2..0000000 --- a/tests/Sanity/dts-probe-binaries/check-localplt.c +++ /dev/null @@ -1,298 +0,0 @@ -/* Show local PLT use in DSOs. - Copyright (C) 2006 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contribute by Ulrich Drepper . 2006. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#ifdef BITS - -# define AB(name) _AB (name, BITS) -# define _AB(name, bits) __AB (name, bits) -# define __AB(name, bits) name##bits -# define E(name) _E (name, BITS) -# define _E(name, bits) __E (name, bits) -# define __E(name, bits) Elf##bits##_##name -# define EE(name) _EE (name, BITS) -# define _EE(name, bits) __EE (name, bits) -# define __EE(name, bits) ELF##bits##_##name -# define SWAP(val) \ - ({ __typeof (val) __res; \ - if (((ehdr.e_ident[EI_DATA] == ELFDATA2MSB \ - && BYTE_ORDER == LITTLE_ENDIAN) \ - || (ehdr.e_ident[EI_DATA] == ELFDATA2LSB \ - && BYTE_ORDER == BIG_ENDIAN)) \ - && sizeof (val) != 1) \ - { \ - if (sizeof (val) == 2) \ - __res = bswap_16 (val); \ - else if (sizeof (val) == 4) \ - __res = bswap_32 (val); \ - else \ - __res = bswap_64 (val); \ - } \ - else \ - __res = (val); \ - __res; }) - - -static int -AB(handle_file) (const char *fname, int fd) -{ - E(Ehdr) ehdr; - - if (pread (fd, &ehdr, sizeof (ehdr), 0) != sizeof (ehdr)) - { - read_error: - printf ("%s: read error: %m\n", fname); - return 1; - } - - const size_t phnum = SWAP (ehdr.e_phnum); - const size_t phentsize = SWAP (ehdr.e_phentsize); - - /* Read the program header. */ - E(Phdr) *phdr = alloca (phentsize * phnum); - if (pread (fd, phdr, phentsize * phnum, SWAP (ehdr.e_phoff)) - != phentsize * phnum) - goto read_error; - - /* Search for the PT_DYNAMIC entry. */ - size_t cnt; - E(Phdr) *dynphdr = NULL; - for (cnt = 0; cnt < phnum; ++cnt) - if (SWAP (phdr[cnt].p_type) == PT_DYNAMIC) - { - dynphdr = &phdr[cnt]; - break; - } - - if (dynphdr == NULL) - { - printf ("%s: no DYNAMIC segment found\n", fname); - return 1; - } - - /* Read the dynamic segment. */ - size_t pmemsz = SWAP(dynphdr->p_memsz); - E(Dyn) *dyn = alloca (pmemsz); - if (pread64 (fd, dyn, pmemsz, SWAP(dynphdr->p_offset)) != pmemsz) - goto read_error; - - /* Search for an DT_PLTREL, DT_JMPREL, DT_PLTRELSZ, DT_STRTAB, - DT_STRSZ, and DT_SYMTAB entries. */ - size_t pltrel_idx = SIZE_MAX; - size_t jmprel_idx = SIZE_MAX; - size_t pltrelsz_idx = SIZE_MAX; - size_t strtab_idx = SIZE_MAX; - size_t strsz_idx = SIZE_MAX; - size_t symtab_idx = SIZE_MAX; - for (cnt = 0; (cnt + 1) * sizeof (E(Dyn)) - 1 < pmemsz; ++cnt) - { - unsigned int tag = SWAP (dyn[cnt].d_tag); - - if (tag == DT_NULL) - /* We reached the end. */ - break; - - if (tag == DT_PLTREL) - pltrel_idx = cnt; - else if (tag == DT_JMPREL) - jmprel_idx = cnt; - else if (tag == DT_PLTRELSZ) - pltrelsz_idx = cnt; - else if (tag == DT_STRTAB) - strtab_idx = cnt; - else if (tag == DT_STRSZ) - strsz_idx = cnt; - else if (tag == DT_SYMTAB) - symtab_idx = cnt; - } - - if (pltrel_idx == SIZE_MAX || jmprel_idx == SIZE_MAX - || pltrelsz_idx == SIZE_MAX || strtab_idx == SIZE_MAX - || strsz_idx == SIZE_MAX || symtab_idx == SIZE_MAX) - { - puts ("not all PLT information found"); - return 1; - } - - E(Xword) relsz = SWAP (dyn[pltrelsz_idx].d_un.d_val); - - void *relmem = NULL; - char *strtab = NULL; - E(Xword) symtab_offset = 0; - - /* Find the offset of DT_JMPREL and load the data. */ - for (cnt = 0; cnt < phnum; ++cnt) - if (SWAP (phdr[cnt].p_type) == PT_LOAD) - { - E(Addr) vaddr = SWAP (phdr[cnt].p_vaddr); - E(Xword) memsz = SWAP (phdr[cnt].p_memsz); - - if (vaddr <= SWAP (dyn[jmprel_idx].d_un.d_val) - && vaddr + memsz >= SWAP (dyn[jmprel_idx].d_un.d_val) + relsz) - { - relmem = alloca (SWAP (dyn[pltrelsz_idx].d_un.d_val)); - if (pread64 (fd, relmem, relsz, - SWAP (phdr[cnt].p_offset) - + SWAP (dyn[jmprel_idx].d_un.d_val) - vaddr) - != relsz) - { - puts ("cannot read JMPREL"); - return 1; - } - } - - if (vaddr <= SWAP (dyn[symtab_idx].d_un.d_val) - && vaddr + memsz > SWAP (dyn[symtab_idx].d_un.d_val)) - symtab_offset = (SWAP (phdr[cnt].p_offset) - + SWAP (dyn[symtab_idx].d_un.d_val) - vaddr); - - if (vaddr <= SWAP (dyn[strtab_idx].d_un.d_val) - && vaddr + memsz >= (SWAP (dyn[strtab_idx].d_un.d_val) - + SWAP(dyn[strsz_idx].d_un.d_val))) - { - strtab = alloca (SWAP(dyn[strsz_idx].d_un.d_val)); - if (pread64 (fd, strtab, SWAP(dyn[strsz_idx].d_un.d_val), - SWAP (phdr[cnt].p_offset) - + SWAP (dyn[strtab_idx].d_un.d_val) - vaddr) - != SWAP(dyn[strsz_idx].d_un.d_val)) - { - puts ("cannot read STRTAB"); - return 1; - } - } - } - - if (relmem == NULL || strtab == NULL || symtab_offset == 0) - { - puts ("couldn't load PLT data"); - return 1; - } - - if (SWAP (dyn[pltrel_idx].d_un.d_val) == DT_RELA) - for (E(Rela) *rela = relmem; (char *) rela - (char *) relmem < relsz; - ++rela) - { - E(Sym) sym; - - if (pread64 (fd, &sym, sizeof (sym), - symtab_offset - + EE(R_SYM) (SWAP (rela->r_info)) * sizeof (sym)) - != sizeof (sym)) - { - puts ("cannot read symbol"); - return 1; - } - - if (sym.st_value != 0) - /* This symbol is locally defined. */ - printf ("%s: %s\n", basename (fname), strtab + SWAP (sym.st_name)); - } - else - for (E(Rel) *rel = relmem; (char *) rel - (char *) relmem < relsz; ++rel) - { - E(Sym) sym; - - if (pread64 (fd, &sym, sizeof (sym), - symtab_offset - + EE(R_SYM) (SWAP (rel->r_info)) * sizeof (sym)) - != sizeof (sym)) - { - puts ("cannot read symbol"); - return 1; - } - - if (sym.st_value != 0) - /* This symbol is locally defined. */ - printf ("%s: %s\n", basename (fname), strtab + SWAP (sym.st_name)); - } - - return 0; -} - -# undef BITS -#else - -# define BITS 32 -# include "check-localplt.c" - -# define BITS 64 -# include "check-localplt.c" - - -static int -handle_file (const char *fname) -{ - int fd = open (fname, O_RDONLY); - if (fd == -1) - { - printf ("cannot open %s: %m\n", fname); - return 1; - } - - /* Read was is supposed to be the ELF header. Read the initial - bytes to determine whether this is a 32 or 64 bit file. */ - char ident[EI_NIDENT]; - if (read (fd, ident, EI_NIDENT) != EI_NIDENT) - { - printf ("%s: read error: %m\n", fname); - close (fd); - return 1; - } - - if (memcmp (&ident[EI_MAG0], ELFMAG, SELFMAG) != 0) - { - printf ("%s: not an ELF file\n", fname); - close (fd); - return 1; - } - - int result; - if (ident[EI_CLASS] == ELFCLASS64) - result = handle_file64 (fname, fd); - else - result = handle_file32 (fname, fd); - - close (fd); - - return result; -} - - -int -main (int argc, char *argv[]) -{ - int cnt; - int result = 0; - - for (cnt = 1; cnt < argc; ++cnt) - result |= handle_file (argv[cnt]); - - return result; -} -#endif diff --git a/tests/Sanity/dts-probe-binaries/m.c b/tests/Sanity/dts-probe-binaries/m.c deleted file mode 100644 index 3ed0f66..0000000 --- a/tests/Sanity/dts-probe-binaries/m.c +++ /dev/null @@ -1,6 +0,0 @@ -int a (int), b (int), c (int); -int -main (void) -{ - return a (6) + b (4) - c (2); -} diff --git a/tests/Sanity/dts-probe-binaries/main.fmf b/tests/Sanity/dts-probe-binaries/main.fmf deleted file mode 100644 index 65e429a..0000000 --- a/tests/Sanity/dts-probe-binaries/main.fmf +++ /dev/null @@ -1,20 +0,0 @@ -summary: Toolset binutils on system/toolset/built binaries. -description: '' -contact: Marek Polacek -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- ed -- gcc -- glibc -- glibc-headers -- grep -- gdb -- gcc-c++ -- gawk -duration: 120m -extra-summary: /tools/binutils/Sanity/dts-probe-binaries -extra-task: /tools/binutils/Sanity/dts-probe-binaries diff --git a/tests/Sanity/dts-probe-binaries/popcnt.c b/tests/Sanity/dts-probe-binaries/popcnt.c deleted file mode 100644 index 0ba30c5..0000000 --- a/tests/Sanity/dts-probe-binaries/popcnt.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -int -main (int argc, char *argv[] __attribute__((unused))) -{ - printf ("%p\n", main); - return __builtin_popcount (argc); -} diff --git a/tests/Sanity/dts-probe-binaries/runtest.sh b/tests/Sanity/dts-probe-binaries/runtest.sh deleted file mode 100755 index 3e40d41..0000000 --- a/tests/Sanity/dts-probe-binaries/runtest.sh +++ /dev/null @@ -1,388 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Sanity/dts-probe-binaries -# Description: Toolset binutils on system/toolset built binaries. -# Author: Marek Polacek -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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 - -PACKAGES=(gdb gcc gcc-c++ binutils gawk grep) - -# Choose the binaries. -GCC=${GCC:-gcc} -GXX=${GXX:-g++} -GDB=${GDB:-gdb} -AR=${AR:-ar} -ADDR2LINE=${ADDR2LINE:-addr2line} -CXXFILT=${CXXFILT:-c++filt} -ELFEDIT=${ELFEDIT:-elfedit} -NM=${NM:-nm} -OBJCOPY=${OBJCOPY:-objcopy} -OBJDUMP=${OBJDUMP:-objdump} -READELF=${READELF:-readelf} -SIZE=${SIZE:-size} -STRINGS=${STRINGS:-strings} - -rlJournalStart - rlPhaseStartSetup - for p in "${PACKAGES[@]}"; do - rlAssertRpm "$p" - done; unset p - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - # Copy the GDB commands file and testcase. - rlRun "cp -v check-localplt.c m.c popcnt.c virtual2.C $TmpDir" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest "Prepare a binary." - # Compile a test case. - rlRun "$GCC -O2 -g -std=gnu99 check-localplt.c -o localplt" - rlAssertExists "localplt" - rlPhaseEnd - - rlPhaseStartTest "Test ar." - # Test --help. - rlRun "$AR --help" - - # We need a few ET_RELs. - rlRun "$GCC -O2 -g -std=gnu99 -c -o a.o -xc - <<< 'int a(int a){return a^2;}'" - rlAssertExists "a.o" - rlRun "$GCC -O2 -g -std=gnu99 -c -o b.o -xc - <<< 'int b(int a){return a&2;}'" - rlAssertExists "b.o" - rlRun "$GCC -O2 -g -std=gnu99 -c -o c.o -xc - <<< 'int c(int a){return a|2;}'" - rlAssertExists "c.o" - rlRun "$GCC -O2 -g -std=gnu99 -c -o d.o -xc - <<< 'int d(int a){return a%2;}'" - rlAssertExists "d.o" - - # Test that we can create a static library. - rlRun "$AR crsv abc.a a.o b.o c.o" - rlAssertExists "abc.a" - - # ...and use this library. - rlRun "$GCC -O2 -Wall -std=gnu99 m.c abc.a -o abc" - rlRun "./abc" 2 - - # Test -t option. - rlRun "$AR t abc.a > ar-t.out" - printf "a.o\nb.o\nc.o\n" > ar-t - rlAssertNotDiffer ar-t ar-t.out - - # Test -d option. - rlRun "$AR d abc.a c.o" - rlRun "$AR t abc.a > ar-t.out" - printf "a.o\nb.o\n" > ar-t - rlAssertNotDiffer ar-t ar-t.out - - # Test -r option. - rlRun "$AR r abc.a d.o" - rlRun "$AR t abc.a > ar-t.out" - printf "a.o\nb.o\nd.o\n" > ar-t - rlAssertNotDiffer ar-t ar-t.out - rlPhaseEnd - - rlPhaseStartTest "Test addr2line." - rlRun "$ADDR2LINE --help" - # Compile a testcase. - rlRun "$GCC -g3 -Wall -O2 -o popcnt popcnt.c" - # Save the address where main resides. - ./popcnt > a - rlRun "$ADDR2LINE -e popcnt $(cat a) > r" - # We know that main is at line 4. But on PPC we get ??:0... -if test ! $(uname -i) = "ppc64"; then - rlAssertGrep "popcnt.c:4" r -fi - rm -vf [ra] - rlPhaseEnd - - rlPhaseStartTest "Test c++filt." - rlRun "$CXXFILT --help" - # Compile a testcase. - rlRun "$GXX -g -O0 virtual2.C -o virt" - rlRun "$NM virt | $CXXFILT &> f" - rlLogInfo "===== f" - rlLogInfo "$(cat f)" - rlLogInfo "=====" - rlAssertGrep "A::~A()" f - rlAssertGrep "B::~B()" f - rlAssertGrep "typeinfo for A" f - rlAssertGrep "typeinfo for B" f - rlAssertGrep "typeinfo name for A" f - rlAssertGrep "typeinfo name for B" f - rlAssertGrep "vtable for A" f - rlAssertGrep "vtable for B" f - rlAssertGrep "operator delete(void\*)" f - rlRun "grep -E 'operator new\(unsigned (long|int)\)' f" - rlRun "$CXXFILT -n _Z1ft > f" - # Create test file. - echo "f(unsigned short)" > F - rlAssertNotDiffer F f - rm -vf [Ff] - rlPhaseEnd - - rlPhaseStartTest "Test elfedit." - rlRun "$ELFEDIT --help" - # Change the Ehdr somewhat. - rlRun "$ELFEDIT --output-osabi=TRU64 virt" - rlRun "$ELFEDIT --output-type=rel virt" - rlRun "$READELF -Wh virt > r" - rlAssertGrep "UNIX - TRU64" r - rlAssertGrep "REL (Relocatable file)" r - # Ok, back to normal. - rlRun "$ELFEDIT --output-osabi=none virt" - rlRun "$ELFEDIT --output-type=exec virt" - rlRun "$READELF -Wh virt > r" - rlAssertGrep "UNIX - System V" r - rlAssertGrep "EXEC (Executable file)" r - rm -vf r - rlPhaseEnd - - rlPhaseStartTest "Test nm." - rlRun "$NM --help" - # Try --debug-syms. - rlRun "$NM --debug-syms virt | gawk '{ print \$2 \" \" \$3 }' > o" - rlLogInfo "$(cat o)" - rlAssertGrep "completed" o - if [ "`rlGetPrimaryArch`" != "s390x" ] || [ ! rlIsRHEL 7 ]; then - rlAssertGrep "virtual2.C" o - fi - rlAssertGrep "_ZN1BD1Ev" o - # On PPC, we have .toc instead. - if [ "$(rlGetPrimaryArch)" != "ppc64" ] && [ "$(rlGetPrimaryArch)" != "ppc64le" ]; then - rlAssertGrep "_GLOBAL_OFFSET_TABLE_" o - fi - # Try -u. - rlRun "$NM -u popcnt > u" - rlAssertGrep "printf@GLIBC" u - if [ "`rlGetPrimaryArch`" != "ppc64" ] || [ ! rlIsRHEL 7 ]; then - rlAssertGrep "__gmon_start__" u - fi - rlAssertGrep "__libc_start_main@GLIBC" u - # Try -P --size-sort. - rlRun "$NM -P --size-sort localplt > p" -if test $(uname -i) = "ppc64" -a $(rlGetDistroRelease) -gt 5; then - rlAssertGrep "main D" p -else - rlAssertGrep "main T" p -fi - rlAssertGrep "completed.* b" p - rlAssertGrep "_IO_stdin_used R" p - # Try --defined-only --print-size. - rlRun "$NM --defined-only --print-size localplt > d" - rm -vf [oupd] - rlPhaseEnd - - rlPhaseStartTest "Test objcopy." - rlRun "$OBJCOPY --help" - - cp -v virt xvirt - rlRun "$OBJCOPY --only-section=.shstrtab xvirt" - rlRun "$READELF -WS xvirt > x" - rlAssertGrep ".shstrtab" x - - # Try to delete .interp section. - cp -v virt virt2 - rlRun "$OBJCOPY -R .interp virt2" - rlRun "$READELF -WS virt2 > i" - rlAssertNotGrep ".interp" i - - rm -vf [vcx] xvirt zvirt - rlPhaseEnd - - rlPhaseStartTest "Test objdump." - rlRun "$OBJDUMP --help" - # Just try to run with -f. - rlRun "$OBJDUMP -f virt" - # Just try to run with -x. - rlRun "$OBJDUMP -wx virt" - # -dr. No good way how to compare this. - rlRun "$OBJDUMP -dr virt > d" - rlAssertGrep "Disassembly of section .text:" d - rlAssertGrep "_start" d - rlAssertGrep "main" d - - # -T. - rlRun "$OBJDUMP -T virt > t" - rlAssertGrep "abort" t - - # -R. - rlRun "$OBJDUMP -R virt > R" - rlAssertGrep "abort" R - - # -Wl. - rlRun "$OBJDUMP -Wl virt > w" - rlAssertGrep "Extended opcode 2: set Address to" w - - # -dr on system binary. - rlRun "$OBJDUMP -dr /bin/true > D" - rlAssertGrep "Disassembly of section .text:" d - rlAssertGrep "_start" d - rlAssertGrep "main" d - - # -R on system binary. - rlRun "$OBJDUMP -R /bin/true > r" - rlAssertGrep "abort" r - - # -T. - rlRun "$OBJDUMP -T /bin/true > T" - rlAssertGrep "abort" T - - rm -vf [DdrtTwR] - rlPhaseEnd - - rlPhaseStartTest "Test readelf." - # Readelf is probably most important, check more things. - rlRun "$READELF --help" - - # Just run with -a. - rlRun "$READELF -Wa virt" - - # Try -h. - rlRun "$READELF -Wh virt > h" - rlAssertGrep "ELF Header:" h - rlAssertGrep "7f 45 4c 46" h - rlAssertGrep "EXEC (Executable file)" h - rlAssertGrep "Section header string table index:" h - rlAssertGrep "ABI Version:" h - - # Try -l. - rlRun "$READELF -Wl virt > l" - rlAssertGrep "There are .* program headers, starting at offset" l - rlAssertGrep "Section to Segment mapping:" l - rlAssertGrep "[Requesting program interpreter: /lib*]" l - - # Try -S. - rlRun "$READELF -WS virt > S" - rlAssertGrep "There are .* section headers, starting at offset" S - # I don't like rlAssertGrep. - rlRun "grep -E '\[[0-9]*\] \.(got|ctors|text|plt|init|symtab|bss|strtab|eh_*)' S" - - # Try -s. - rlRun "$READELF -Ws virt > s" - rlAssertGrep "Symbol table '.symtab' contains .* entries:" s - rlRun "grep -E '[0-9]*\: [0-9a-f]*[\ \t]*[0-9]* (FUNC|OBJECT|NOTYPE)[\ \t]*(WEAK|GLOBAL)[\ \t]*(DEFAULT|HIDDEN)[\ \t]*([0-9]*|UND|ABS).*' s" - - # Try -n. - rlRun "$READELF -Wn virt > n" - rlRun "grep -qE '[Nn]otes.*at.*offset .* with length .*:|Displaying notes found in: .note.ABI-tag' n" - - # Try -r. - rlRun "$READELF -Wr virt > r" - rlRun "grep -E 'Relocation section .\.rela?.(dyn|plt). at offset 0x[0-9a-f]+ contains [0-9]+ entries\:' r" - - # Try -d. - rlRun "$READELF -Wd virt > d" - rlAssertGrep "Dynamic section at offset .* contains .* entries:" d - rlRun "grep -E '0x[0-9a-f]+ \((JMPREL|STRSZ|INIT|NEEDED|VERSYM|RELA|DEBUG|SYMENT|GNU_HASH|STRTAB)\)[\ \t]*(Shared|0x|[0-9]*)' d" - - # Try -I. - rlRun "$READELF -I virt > I" - # PPC64 produces no output (?). - if [ "$(rlGetPrimaryArch)" != "ppc64" ] && [ "$(rlGetPrimaryArch)" != "ppc64le" ]; then - rlAssertGrep "Histogram for .* bucket list length (total of .* buckets):" I - fi - - # Try hex dump. - rlRun "$READELF -x .strtab virt > x" - rlAssertGrep "Hex dump of section '.strtab':" x - - # Dump .debug_info. - rlRun "$READELF -wi virt > w" - rlAssertGrep "Compilation Unit @ offset .*:" w - rlAssertGrep "DW_AT_producer" w - rlAssertGrep "DW_AT_comp_dir" w - rlAssertGrep "DW_TAG_structure_type" w - rlRun "grep -E '<[0-9]+><[0-9a-f]+>\: Abbrev Number\: [0-9]+ \(DW_TAG_.*\)' w" - rlRun "grep -E '<[0-9]+>[\ \t]+DW_AT_.*\:' w" - - # Version info. - rlRun "$READELF -V virt > V" - rlAssertGrep "Version symbols section '.gnu.version' contains .* entries:" V - rlRun "grep -E '(0x)?[0-9a-f]*\: Version\:.*File\:.*Cnt\: [0-9]+' V" - - # Try -h on /bin/true. - rlRun "$READELF -Wh /bin/true > H" - rlAssertGrep "ELF Header:" H - rlAssertGrep "7f 45 4c 46" H - rlAssertGrep "DYN (Position-Independent Executable file)" H - rlAssertGrep "Section header string table index:" H - rlAssertGrep "ABI Version:" H - - # Try -l on /bin/true. - rlRun "$READELF -Wl /bin/true > L" - rlAssertGrep "There are .* program headers, starting at offset" L - rlAssertGrep "Section to Segment mapping:" L - rlAssertGrep "[Requesting program interpreter: /lib*]" L - - # Try -S on /bin/true. - rlRun "$READELF -WS /bin/true > F" - rlAssertGrep "There are .* section headers, starting at offset" F - rlRun "grep -E '\[[0-9]*\] \.(got|ctors|text|plt|init|symtab|bss|strtab|eh_*)' F" - - # Try -r on /bin/true. - rlRun "$READELF -Wr /bin/true > c" - rlRun "grep -E 'Relocation section .\.rela?.(dyn|plt). at offset 0x[0-9a-f]+ contains [0-9]+ entries\:' c" - - rm -vf [HIwhnSLslcrxVdF] - rlPhaseEnd - - rlPhaseStartTest "Test size." - rlRun "$SIZE --help" - - rlRun "$SIZE -dB virt > s" - rlAssertGrep "text.*data.*bss.*dec.*hex.*filename" s - - rlRun "$SIZE -dB /bin/ed > S" - rlAssertGrep "text.*data.*bss.*dec.*hex.*filename" S - - rm -vf [Ss] - rlPhaseEnd - - rlPhaseStartTest "Test strings." - rlRun "$STRINGS --help" - - # Try on our binary. - rlRun "$STRINGS virt > s" - rlAssertGrep "__gmon_start__" s - rlAssertGrep "libc.so.6" s - rlAssertGrep "abort" s - rlAssertGrep "libm.so.6" s - - # Try on system binary. - rlRun "$STRINGS /bin/echo > S" - rlAssertGrep "abort" S - rlAssertGrep "echo" S - rlAssertGrep "POSIXLY_CORRECT" S - rlAssertGrep "libc.so.6" S - - rm -vf [Ss] - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Sanity/dts-probe-binaries/virtual2.C b/tests/Sanity/dts-probe-binaries/virtual2.C deleted file mode 100644 index c93ba9e..0000000 --- a/tests/Sanity/dts-probe-binaries/virtual2.C +++ /dev/null @@ -1,31 +0,0 @@ -// PR c++/52746 -// { dg-do run } - -extern "C" int printf(const char*,...); -extern "C" void abort(); -bool db; - -struct A -{ - virtual ~A() {} -}; - -struct B : public A -{ - virtual ~B() { db = true; } -}; - -template void test() -{ - B * b = new B; - A * a = b; - a->~A(); - ::operator delete(b); -} - -int main() -{ - test<0>(); - if (!db) - abort(); -} diff --git a/tests/Sanity/rebuild-coreutils/Makefile b/tests/Sanity/rebuild-coreutils/Makefile deleted file mode 100644 index 94e48e9..0000000 --- a/tests/Sanity/rebuild-coreutils/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Sanity/rebuild-coreutils -# Description: Rebuild coreutils -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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=/tools/binutils/Sanity/rebuild-coreutils -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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Rebuild coreutils" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 1h" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Sanity/rebuild-coreutils/PURPOSE b/tests/Sanity/rebuild-coreutils/PURPOSE deleted file mode 100644 index 15bec7c..0000000 --- a/tests/Sanity/rebuild-coreutils/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /tools/binutils/Sanity/rebuild-coreutils -Description: Rebuild coreutils -Author: Milos Prchlik diff --git a/tests/Sanity/rebuild-coreutils/main.fmf b/tests/Sanity/rebuild-coreutils/main.fmf deleted file mode 100644 index b11ef5e..0000000 --- a/tests/Sanity/rebuild-coreutils/main.fmf +++ /dev/null @@ -1,14 +0,0 @@ -summary: Rebuild coreutils -description: '' -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- koji -- rpm-build -duration: 1h -extra-summary: /tools/binutils/Sanity/rebuild-coreutils -extra-task: /tools/binutils/Sanity/rebuild-coreutils diff --git a/tests/Sanity/rebuild-coreutils/runtest.sh b/tests/Sanity/rebuild-coreutils/runtest.sh deleted file mode 100755 index d07b662..0000000 --- a/tests/Sanity/rebuild-coreutils/runtest.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Sanity/rebuild-coreutils -# Description: Rebuild coreutils -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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 - -PACKAGES="binutils" -REQUIRES="${REQUIRES:-coreutils}" -TEST_USER="${TEST_USER:-jouda}" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm --all - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun 'dnf -y update coreutils' 0-255 - - rlRun "koji download-build --arch=src $(rpm -q coreutils)" - rlRun "SRPM=`find . -name 'coreutils-*.src.rpm'`" - rlRun "dnf builddep -y $SRPM" - - rlRun "userdel -r $TEST_USER" 0,6 - rlRun "useradd -m -d /home/$TEST_USER $TEST_USER" - rlRun "cp $SRPM /home/$TEST_USER" - rlRun "su - $TEST_USER -c 'rpm -Uvh $SRPM'" - rlPhaseEnd - - rlPhaseStartTest - rlRun "su - $TEST_USER -c 'rpmbuild -bc --clean \$(rpm --eval=%_specdir)/coreutils.spec'" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "userdel -r $TEST_USER" - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Sanity/rebuild-emacs/Makefile b/tests/Sanity/rebuild-emacs/Makefile deleted file mode 100644 index 71112f0..0000000 --- a/tests/Sanity/rebuild-emacs/Makefile +++ /dev/null @@ -1,67 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Regression/rebuild-emacs -# Description: rebuild-emacs -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 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=/tools/binutils/Regression/rebuild-emacs -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) - -requires = alsa-lib-devel atk-devel binutils cairo-devel dbus-devel emacs fontconfig-devel freetype-devel \ - GConf2-devel giflib-devel gnutls-devel gpm-devel gtk3-devel ImageMagick-devel libjpeg-devel \ - liblockfile-devel libotf-devel libpng-devel librsvg2-devel libselinux-devel libtiff-devel \ - libX11-devel libXau-devel libXdmcp-devel libXpm-devel libXrender-devel libXt-devel m17n-lib-devel \ - ncurses-devel python2-devel texinfo xorg-x11-proto-devel pango pango-devel yum-utils - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: rebuild-emacs" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 24h" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - $(foreach package, $(requires), echo "Requires: $(package)" >> $(METADATA);) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Sanity/rebuild-emacs/PURPOSE b/tests/Sanity/rebuild-emacs/PURPOSE deleted file mode 100644 index 3c41ea0..0000000 --- a/tests/Sanity/rebuild-emacs/PURPOSE +++ /dev/null @@ -1,21 +0,0 @@ -PURPOSE of /tools/binutils/Regression/rebuild-emacs -Description: rebuild-emacs -Author: Martin Cermak - - -From: Jeff Law - -... stuff deleted ... - -emacs is highly sensitive to the order and structure of executables -produced by the linker. This is an artifact of its undumping mechanism -(essentially starts emacs, loads a bunch of stuff, core dumps, then -turns the core dump into a new executable). - -We've seen a lot of pain around this for ppc64le as well as after the -RELRO improvements we made to binutils/ld over the last 6 months. - -ISTM that the testing plans for RHEL going forward ought to include a -test build of emacs with the new binutils installed. No further tests -are necessary since the build process for emacs exercises the -problematic bits. diff --git a/tests/Sanity/rebuild-emacs/main.fmf b/tests/Sanity/rebuild-emacs/main.fmf deleted file mode 100644 index a2c8619..0000000 --- a/tests/Sanity/rebuild-emacs/main.fmf +++ /dev/null @@ -1,64 +0,0 @@ -summary: rebuild-emacs -description: | - From: Jeff Law - - ... stuff deleted ... - - emacs is highly sensitive to the order and structure of executables - produced by the linker. This is an artifact of its undumping mechanism - (essentially starts emacs, loads a bunch of stuff, core dumps, then - turns the core dump into a new executable). - - We've seen a lot of pain around this for ppc64le as well as after the - RELRO improvements we made to binutils/ld over the last 6 months. - - ISTM that the testing plans for RHEL going forward ought to include a - test build of emacs with the new binutils installed. No further tests - are necessary since the build process for emacs exercises the - problematic bits. -contact: Martin Cermak -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- alsa-lib-devel -- atk-devel -- binutils -- cairo-devel -- dbus-devel -- emacs -- fontconfig-devel -- freetype-devel -- GConf2-devel -- giflib-devel -- gnutls-devel -- gpm-devel -- gtk3-devel -- ImageMagick-devel -- libjpeg-devel -- liblockfile-devel -- libotf-devel -- libpng-devel -- librsvg2-devel -- libselinux-devel -- libtiff-devel -- libX11-devel -- libXau-devel -- libXdmcp-devel -- libXpm-devel -- libXrender-devel -- libXt-devel -- m17n-lib-devel -- ncurses-devel -- python2-devel -- texinfo -- xorg-x11-proto-devel -- pango -- pango-devel -- yum-utils -- koji -- rpm-build -duration: 24h -extra-summary: /tools/binutils/Regression/rebuild-emacs -extra-task: /tools/binutils/Regression/rebuild-emacs diff --git a/tests/Sanity/rebuild-emacs/runtest.sh b/tests/Sanity/rebuild-emacs/runtest.sh deleted file mode 100755 index bce7de7..0000000 --- a/tests/Sanity/rebuild-emacs/runtest.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Regression/rebuild-emacs -# Description: rebuild-emacs -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 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 - -PACKAGES="${PACKAGES:-binutils}" -REQUIRES="${REQUIRES:-emacs}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "TMPD=$(mktemp -d)" - rlRun "pushd $TMPD" - rlRun "koji download-build --arch=src $(rpm -q emacs)" - rlRun "rpm --define='_topdir $TMPD' -Uvh *src.rpm" - - rlRun "saved_randomize_va_space=$(cat /proc/sys/kernel/randomize_va_space)" - rlRun "echo '1' > /proc/sys/kernel/randomize_va_space" - rlPhaseEnd - - rlPhaseStartTest - rlRun "dnf builddep -y SPECS/emacs.spec" - rlRun "rpmbuild --define='_topdir $TMPD' -bc SPECS/emacs.spec" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "echo \"$saved_randomize_va_space\" > /proc/sys/kernel/randomize_va_space" - - rlRun "popd" - rlRun "rm -r $TMPD" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Sanity/rebuild-wget/Makefile b/tests/Sanity/rebuild-wget/Makefile deleted file mode 100644 index 12427cb..0000000 --- a/tests/Sanity/rebuild-wget/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Sanity/rebuild-wget -# Description: Rebuild wget -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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=/tools/binutils/Sanity/rebuild-wget -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: Milos Prchlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Rebuild wget" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 1h" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils" >> $(METADATA) - @echo "Requires: wget rpm-build gcc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Sanity/rebuild-wget/PURPOSE b/tests/Sanity/rebuild-wget/PURPOSE deleted file mode 100644 index cc87a45..0000000 --- a/tests/Sanity/rebuild-wget/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /tools/binutils/Sanity/rebuild-wget -Description: Rebuild wget -Author: Milos Prchlik diff --git a/tests/Sanity/rebuild-wget/main.fmf b/tests/Sanity/rebuild-wget/main.fmf deleted file mode 100644 index ce54e36..0000000 --- a/tests/Sanity/rebuild-wget/main.fmf +++ /dev/null @@ -1,16 +0,0 @@ -summary: Rebuild wget -description: '' -contact: Milos Prchlik -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- wget -- koji -- rpm-build -- gcc -duration: 1h -extra-summary: /tools/binutils/Sanity/rebuild-wget -extra-task: /tools/binutils/Sanity/rebuild-wget diff --git a/tests/Sanity/rebuild-wget/runtest.sh b/tests/Sanity/rebuild-wget/runtest.sh deleted file mode 100755 index 2016bf5..0000000 --- a/tests/Sanity/rebuild-wget/runtest.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Sanity/rebuild-wget -# Description: Rebuild wget -# Author: Milos Prchlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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 - -LD="${LD:-$(which ld)}" -GCC="${GCC:-$(which gcc)}" - -BINUTILS_PACKAGE="$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)" -GCC_PACKAGE="$(rpm --qf '%{name}\n' -qf $(which $GCC) | head -1)" - -PACKAGES="${PACKAGES:-$BINUTILS_PACKAGE}" -REQUIRES="${REQUIRES:-$GCC_PACKAGE wget}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "LD=$LD" - rlLogInfo "GCC=$GCC" - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "koji download-build --arch=src $(rpm -q wget)" - rlRun "SRPM=`find . -name 'wget-*.src.rpm'`" - rlRun "SRPM_SPECDIR=`rpm --eval=%_specdir`" - rlRun "rpm -Uvh $SRPM" - rlRun "dnf builddep -y $SRPM" - rlPhaseEnd - - rlPhaseStartTest - rlRun "rpmbuild -bb --clean $SRPM_SPECDIR/wget.spec" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/tests/Sanity/testsuite/Makefile b/tests/Sanity/testsuite/Makefile deleted file mode 100644 index ee7d12f..0000000 --- a/tests/Sanity/testsuite/Makefile +++ /dev/null @@ -1,68 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /tools/binutils/Sanity/testsuite -# Description: The test rebuilds binutils.src.rpm and runs the suite. -# Author: Michael Petlan -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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=/tools/binutils/Sanity/testsuite -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE \ - expected-fails-8.0.0-aarch64.txt \ - expected-fails-8.0.0-s390x.txt \ - expected-fails-8.2.0-aarch64.txt \ - expected-fails-8.2.0-s390x.txt - -.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: Michael Petlan " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: The test rebuilds binutils.src.rpm and runs the suite." >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 3h" >> $(METADATA) - @echo "RunFor: binutils" >> $(METADATA) - @echo "Requires: binutils texinfo glibc-static dejagnu bison flex zlib-static sharutils yum-utils libstdc++-static rpm-build gcc-c++ annobin" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/Sanity/testsuite/PURPOSE b/tests/Sanity/testsuite/PURPOSE deleted file mode 100644 index 21f029d..0000000 --- a/tests/Sanity/testsuite/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /tools/binutils/Sanity/testsuite -Description: The test rebuilds binutils.src.rpm and runs the suite. -Author: Michael Petlan diff --git a/tests/Sanity/testsuite/main.fmf b/tests/Sanity/testsuite/main.fmf deleted file mode 100644 index c54a6a0..0000000 --- a/tests/Sanity/testsuite/main.fmf +++ /dev/null @@ -1,25 +0,0 @@ -summary: The test rebuilds binutils.src.rpm and runs the suite. -description: '' -contact: Michael Petlan -component: -- binutils -test: ./runtest.sh -framework: beakerlib -recommend: -- binutils -- texinfo -- glibc-static -- dejagnu -- bison -- flex -- zlib-static -- sharutils -- yum-utils -- libstdc++-static -- rpm-build -- gcc-c++ -- annobin -- koji -duration: 3h -extra-summary: /tools/binutils/Sanity/testsuite -extra-task: /tools/binutils/Sanity/testsuite diff --git a/tests/Sanity/testsuite/runtest.sh b/tests/Sanity/testsuite/runtest.sh deleted file mode 100755 index 7682fd2..0000000 --- a/tests/Sanity/testsuite/runtest.sh +++ /dev/null @@ -1,148 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /tools/binutils/Sanity/testsuite -# -# Description: The test rebuilds binutils.src.rpm and runs the suite. -# The test is based on /tools/binutils/testsuite, but it had to be -# rewritten. -# -# Author: Michael Petlan -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 Red Hat, Inc. -# -# 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 - -LD="${LD:-$(which ld)}" -GCC="${GCC:-$(which gcc)}" -BUILT_BY="${BUILT_BY:-$(which built-by)}" - -PACKAGE="${PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)}" -NVR="$(rpm -q --qf='%{NAME}-%{VERSION}-%{RELEASE}' $PACKAGE)" -GCC_PACKAGE="${GCC_PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $GCC) | head -1)}" -ANNOBIN_PACKAGE="${ANNOBIN_PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $BUILT_BY) | head -1)}" - -PACKAGES="${PACKAGES:-$PACKAGE}" -REQUIRES="${REQUIRES:-$GCC_PACKAGE $ANNOBIN_PACKAGE}" - -rlJournalStart - rlPhaseStartSetup - rlLogInfo "PACKAGES=$PACKAGES" - rlLogInfo "REQUIRES=$REQUIRES" - rlLogInfo "COLLECTIONS=$COLLECTIONS" - rlLogInfo "PACKAGE=$PACKAGE" - rlLogInfo "NVR=$NVR" - rlLogInfo "LD=$LD" - rlLogInfo "GCC=$GCC" - rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK" - - # We optionally need to skip checking for the presence of the metapackage - # because that would pull in all the dependent toolset subrpms. We do not - # always want that, especially in CI. - _COLLECTIONS="$COLLECTIONS" - if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then - for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do - rlLogInfo "ignoring metapackage check for collection $c" - export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/}) - done - fi - - rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS" - - rlAssertRpm --all - - export COLLECTIONS="$_COLLECTIONS" - - # temp dir - rlRun "TESTDIR=$PWD" - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlRun "mkdir LOGS" - rlRun "LOGDIR=$TmpDir/LOGS" - - # fetch'n'build the source - rlRun "dnf download --disablerepo='*' --enablerepo=test-artifacts --source $NVR || cp /var/share/test-artifacts/$NVR.src.rpm ." - rlRun "dnf builddep -y $NVR.src.rpm" - rlRun "rpm -i $NVR.src.rpm" - export SPECDIR=`rpm --eval=%_specdir` - export BUILDDIR=`rpm --eval=%_builddir` - export CURRENT_BUILD=${BUILDDIR}/binutils-`rpmquery $PACKAGE --queryformat=%{VERSION}` - rlRun "rpmbuild -bc $SPECDIR/binutils.spec" - - rlRun "cp $CURRENT_BUILD/binutils/binutils.log $CURRENT_BUILD/binutils/binutils.sum $LOGDIR/" - rlRun "cp $CURRENT_BUILD/ld/ld.log $CURRENT_BUILD/ld/ld.sum $LOGDIR/" - rlRun "cp $CURRENT_BUILD/gas/testsuite/gas.log $CURRENT_BUILD/gas/testsuite/gas.sum $LOGDIR/" - rlPhaseEnd - - if [ "$(arch)" = "x86_64" ]; then - rlPhaseStartTest Regression-bz1614908 - rlLogInfo "Checking if bz#1614908 is reproducible" - rlRun "gold_test_binary=$(find $CURRENT_BUILD -iname gnu_property_test -type f -executable)" 0 "Looking for binary from gold testsuite" - rlAssertExists $gold_test_binary - rlAssertEquals 'Just one .note.gnu.property section' "$(readelf --wide --sections $gold_test_binary | grep -c -F .note.gnu.property)" 1 - rlAssertEquals 'The .note.gnu.property section is aligned to 8' "$(readelf --wide --sections $gold_test_binary | awk '/\.note\.gnu\.property/ {print $NF}')" 8 - rlAssertEquals 'First NOTE segment is aligned to 8' "$(readelf --wide --segments $gold_test_binary | awk '/NOTE/ {print $NF; exit}')" '0x8' - rlPhaseEnd - fi - - for TOOL in binutils ld gas; do - rlPhaseStartTest "$TOOL" - rlLogInfo "$TOOL Summary" - rlLogInfo "$(grep -A 50 '=== .* Summary ===' $LOGDIR/$TOOL.sum)" - - # Store list of failed test cases - rlRun "egrep '^FAIL: ' $LOGDIR/$TOOL.sum |& sort | tee $LOGDIR/$TOOL.failed" 0,1 - - rlRun "grep '# of unexpected failures' $LOGDIR/$TOOL.sum" 0,1 "Checking number of unexpected failures" - - # Handle expected failures - if [ "$?" = "0" ]; then - expected_fails_file="" # here we define expected failures if needed - if [ "$expected_fails_file" = "" ]; then - rlFail "No list of expected failures exists for this environment: release=$(cat /etc/redhat-release), arch=$(arch), tool=$TOOL" - rlFail "Unexpected failures found" - else - rlRun "diff $expected_fails_file $LOGDIR/$TOOL.failed" 0,1 - if [ "$?" != "0" ]; then - rlFail "Unexpected failures found" - else - rlPass "No unexpected failures found" - fi - fi - else - rlPass "No unexpected failures found" - fi - rlPhaseEnd - done - - rlPhaseStartCleanup - rlRun "tar czf $TmpDir/logs.tgz $LOGDIR/*.sum $LOGDIR/*.log" - rlRun "tar czf $TmpDir/buildroot.tgz $CURRENT_BUILD/" - rlFileSubmit logs.tar.gz - rlFileSubmit buildroot.tgz - rlRun "popd" # $TmpDir - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd