#18 Import a first subset of RHEL's regression tests
Closed 2 years ago by vkadlcik. Opened 2 years ago by vkadlcik.
Unknown source rawhide  into  rawhide

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

      how: fmf

      directory: tests

  execute:

-     how: beakerlib

+     how: tmt

@@ -0,0 +1,12 @@

+ summary: Test for BZ#1815504 (Regression in the line information debug)

+ description: |

+     Bug summary: Regression in the line information debug information generated by gcc

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

+ recommend:

+ - gcc

+ - valgrind

+ duration: 5m

+ link:

+ -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1815504

+ extra-summary: /tools/gcc/Regression/bz1815504-Regression-in-the-line-information-debug

+ extra-task: /tools/gcc/Regression/bz1815504-Regression-in-the-line-information-debug

@@ -0,0 +1,50 @@

+ #!/bin/bash

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

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

+ #

+ #   runtest.sh of /tools/gcc/Regression/bz1815504-Regression-in-the-line-information-debug

+ #   Description: Test for BZ#1815504 (Regression in the line information debug)

+ #   Author: Alexandra Hájková <ahajkova@redhat.com>

+ #

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

+ #

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

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

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

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "valgrind -q date &> log" 0

+         rlAssertNotGrep "Can't handle inlined call info entry with line number" log

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

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

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,17 @@

+ summary: Test for BZ#1852781 (Compiling with -flto and -g removes CET support)

+ description: |

+     Bug summary: Compiling with -flto and -g removes CET support

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

+ contact: Alexandra Hájková <ahajkova@redhat.com>

+ component:

+ - gcc

+ test: ./runtest.sh

+ framework: beakerlib

+ recommend:

+ - gcc

+ - binutils

+ duration: 15m

+ link:

+ -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1852781

+ extra-summary: /tools/gcc/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support

+ extra-task: /tools/gcc/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support

@@ -0,0 +1,55 @@

+ #!/bin/bash

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

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

+ #

+ #   runtest.sh of /tools/gcc/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support

+ #   Description: Test for BZ#1852781 (Compiling with -flto and -g removes CET support)

+ #   Author: Alexandra Hájková <ahajkova@redhat.com>

+ #

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

+ #

+ #   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

+ 

+ PACKAGE="gcc"

+ TESTPROG="x"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

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

+         rlRun "cp $TESTPROG.c $TmpDir"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "gcc -flto -c -fcf-protection -g $TESTPROG.c"

+         rlRun "gcc -flto -Wl,-z,cet-report=error -fcf-protection -g $TESTPROG.o &> log"

+         rlAssertNotGrep " missing IBT and SHSTK properties" log

+         rlRun "readelf --wide --notes a.out | grep IBT &> log"

+         rlAsserGrep "IBT, SHSTK" log

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

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

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

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

+ #include <stdio.h>

+ 

+ int

+ main ()

+ {

+   printf ("hello\n");

+   return 0;

+ }

@@ -0,0 +1,17 @@

+ summary: Test for BZ#1853900 (typeinfo for stdcodecvt_utf8<wchar_t, 1114111ul,)

+ description: |

+     Bug summary: typeinfo for std::codecvt_utf8<wchar_t, 1114111ul, (std::codecvt_mode)0> not found

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

+ contact: Alexandra Hájková <ahajkova@redhat.com>

+ component:

+ - gcc

+ test: ./runtest.sh

+ framework: beakerlib

+ recommend:

+ - gcc

+ - gcc-c++

+ duration: 10m

+ link:

+ -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1853900

+ extra-summary: /tools/gcc/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul

+ extra-task: /tools/gcc/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul

@@ -0,0 +1,52 @@

+ #!/bin/bash

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

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

+ #

+ #   runtest.sh of /tools/gcc/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul

+ #   Description: Test for BZ#1853900 (typeinfo for stdcodecvt_utf8<wchar_t, 1114111ul,)

+ #   Author: Alexandra Hájková <ahajkova@redhat.com>

+ #

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

+ #

+ #   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

+ 

+ PACKAGE="gcc"

+ TESTPROG="test.cc"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

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

+         rlRun "cp $TESTPROG $TmpDir"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "g++ -std=c++17 $TESTPROG &> log"

+         rlAssertNotGrep "hidden symbol " log

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

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

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,7 @@

+ #include <filesystem>

+ 

+ namespace fs = std::filesystem;

+ int main() {

+     fs::create_directory("sandbox");

+     fs::remove_all("sandbox");

+ }

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

+ summary: Test for BZ#1878841 (GOMP_parallel_loop_nonmonotonic_dynamic and)

+ description: |

+     Bug summary: GOMP_parallel_loop_nonmonotonic_dynamic and GOMP_loop_nonmonotonic_dynamic_next missing

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

+ contact: Alexandra Hájková <ahajkova@redhat.com>

+ component:

+ - gcc

+ test: ./runtest.sh

+ framework: beakerlib

+ recommend:

+ - gcc

+ duration: 5m

+ link:

+ -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1878841

+ extra-summary: /tools/gcc/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and

+ extra-task: /tools/gcc/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and

@@ -0,0 +1,52 @@

+ #!/bin/bash

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

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

+ #

+ #   runtest.sh of /tools/gcc/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and

+ #   Description: Test for BZ#1878841 (GOMP_parallel_loop_nonmonotonic_dynamic and)

+ #   Author: Alexandra Hájková <ahajkova@redhat.com>

+ #

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

+ #

+ #   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

+ 

+ PACKAGE="gcc"

+ TESTPROG="tst"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

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

+         rlRun "cp $TESTPROG.c $TmpDir"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "gcc -fopenmp $TESTPROG.c &> log"

+         rlAssertNotGrep "undefined reference to `GOMP_parallel_loop_nonmonotonic_dynamic`" log

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

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

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,6 @@

+ #include <omp.h>

+ int main ()

+ {

+   #pragma omp parallel for schedule(dynamic)

+   for (int i = 0; i < 10; i++);

+ }

@@ -0,0 +1,17 @@

+ summary: Test for BZ#1893340 (Variadic arguments are missing from debugging data)

+ description: |

+     Bug summary: Variadic arguments are missing from debugging data when building with -flto

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

+ contact: Alexandra Hájková <ahajkova@redhat.com>

+ component:

+ - gcc

+ test: ./runtest.sh

+ framework: beakerlib

+ recommend:

+ - gcc

+ - gdb

+ duration: 5m

+ link:

+ -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1893340

+ extra-summary: /tools/gcc/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data

+ extra-task: /tools/gcc/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data

@@ -0,0 +1,52 @@

+ #!/bin/bash

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

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

+ #

+ #   runtest.sh of /tools/gcc/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data

+ #   Description: Test for BZ#1893340 (Variadic arguments are missing from debugging data)

+ #   Author: Alexandra Hájková <ahajkova@redhat.com>

+ #

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

+ #

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

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

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

+         rlRun "cp test.c b.gdb $TmpDir"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+     rlRun "gcc -fPIC -shared -o libtest.so -O0 -g test.c"

+     rlRun "gdb -x b.gdb libtest.so > gdb.log"

+     rlAssertGrep "void foo(int, ...);" gdb.log

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

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

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,6 @@

+ #include <stdarg.h>

+ void foo(int args, ...) {

+     va_list ap;

+     va_start(ap, args);

+     va_end(ap);

+ }

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

+ summary: Test for BZ#1896093 (Compiling with -flto=auto fails if make is not)

+ description: |

+     Bug summary: Compiling with -flto=auto fails if make is not installed

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

+ contact: Alexandra Hájková <ahajkova@redhat.com>

+ component:

+ - gcc

+ test: ./runtest.sh

+ framework: beakerlib

+ recommend:

+ - gcc

+ duration: 5m

+ link:

+ -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1896093

+ extra-summary: /tools/gcc/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not

+ extra-task: /tools/gcc/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not

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

+ #!/bin/bash

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

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

+ #

+ #   runtest.sh of /tools/gcc/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not

+ #   Description: Test for BZ#1896093 (Compiling with -flto=auto fails if make is not)

+ #   Author: Alexandra Hájková <ahajkova@redhat.com>

+ #

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

+ #

+ #   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

+ 

+ PACKAGE="gcc"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         MAKE_WAS_PRESENT=false

+         rpm -q make &>/dev/null && MAKE_WAS_PRESENT=true

+         rlAssertRpm $PACKAGE

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

+         rlRun "pushd $TmpDir"

+         rlRun "rpm -e --nodeps make" 0,1

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         echo "void main() { }" | gcc -x c -flto=auto - &> log

+         rlAssertNotGrep "lto-wrapper: fatal error: execvp: No such file or directory" log

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         if $MAKE_WAS_PRESENT; then

+             rpm -q make &>/dev/null || rlRun "yum -y install make"

+         fi

+         rlRun "popd"

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

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

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

+ program test_allocated

+   integer :: i = 4

+   real(4), allocatable :: x(:)

+   if (.not. allocated(x)) allocate(x(i))

+ end program test_allocated

@@ -0,0 +1,17 @@

+ summary: Test for BZ#1927579 (libgfortran seems to be missing)

+ description: |

+     Bug summary: libgfortran seems to be missing _gfortran_os_error_at

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

+ contact: Alexandra Hájková <ahajkova@redhat.com>

+ component:

+ - gcc

+ test: ./runtest.sh

+ framework: beakerlib

+ recommend:

+ - gcc

+ - gcc-gfortran

+ duration: 5m

+ link:

+ -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1927579

+ extra-summary: /tools/gcc/Regression/bz1927579-libgfortran-seems-to-be-missing

+ extra-task: /tools/gcc/Regression/bz1927579-libgfortran-seems-to-be-missing

@@ -0,0 +1,51 @@

+ #!/bin/bash

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

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

+ #

+ #   runtest.sh of /tools/gcc/Regression/bz1927579-libgfortran-seems-to-be-missing

+ #   Description: Test for BZ#1927579 (libgfortran seems to be missing)

+ #   Author: Alexandra Hájková <ahajkova@redhat.com>

+ #

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

+ #

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

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

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

+         rlRun "cp alloc1.f90 $TmpDir"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+     rlRun "gfortran alloc1.f90" &> log

+     rlAssertNotGrep "alloc1.f90:(.text+0x131): undefined reference" log

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

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

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,17 @@

+ summary: Test for BZ#1939638 (gcc-toolset-10-libasan-devel depends on the wrong)

+ description: |

+     Bug summary: gcc-toolset-10-libasan-devel depends on the wrong libasan

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

+ contact: Alexandra Hájková <ahajkova@redhat.com>

+ component:

+ - gcc

+ test: ./runtest.sh

+ framework: beakerlib

+ recommend:

+ - gcc

+ - libasan

+ duration: 5m

+ link:

+ -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1939638

+ extra-summary: /tools/gcc/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong

+ extra-task: /tools/gcc/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong

@@ -0,0 +1,50 @@

+ #!/bin/bash

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

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

+ #

+ #   runtest.sh of /tools/gcc/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong

+ #   Description: Test for BZ#1939638 (gcc-toolset-10-libasan-devel depends on the wrong)

+ #   Author: Alexandra Hájková <ahajkova@redhat.com>

+ #

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

+ #

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

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

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

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "echo 'int main () { return 0; }' | gcc -xc -fsanitize=address -" &> log

+         rlAssertNotGrep "cannot find /usr/lib64/libasan" log

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

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

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

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

+ summary: Test for BZ#1960701 (Wrong-code regression starting with gcc 8.2)

+ description: |

+     Bug summary: Wrong-code regression starting with gcc 8.2

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

+ contact: Vaclav Kadlcik <vkadlcik@redhat.com>

+ component:

+ - gcc

+ test: ./runtest.sh

+ framework: beakerlib

+ recommend:

+ - gcc-c++

+ duration: 15m

+ link:

+ -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1960701

+ extra-summary: /tools/gcc/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2

+ extra-task: /tools/gcc/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2

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

+ #include <vector>

+ 

+ struct T {

+   unsigned a;

+   float b {8.};

+ };

+ 

+ int main()

+ {

+   T t = {1};

+   std::vector<T> tt = {{1}, {2}};

+   if (t.a != 1 || t.b != 8.0f || tt[0].a != 1 || tt[0].b != 8.0f || tt[1].a != 2 || tt[1].b != 8.0f)

+     __builtin_abort ();

+ }

@@ -0,0 +1,55 @@

+ #!/usr/bin/env bash

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

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

+ #

+ #   runtest.sh of /tools/gcc/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2

+ #   Description: Test for BZ#1960701 (Wrong-code regression starting with gcc 8.2)

+ #   Author: Vaclav Kadlcik <vkadlcik@redhat.com>

+ #

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

+ #

+ #   Copyright (c) 2021 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

+ 

+ GCC="${GCC:-$(type -P gcc)}"

+ PACKAGE=$(rpm --qf '%{name}\n' -qf $GCC | head -1)

+ PACKAGES="${PACKAGE} ${PACKAGE}-c++"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlLogInfo "PACKAGES=$PACKAGES"

+         rlRun "dnf -y install $PACKAGES" 0-255

+         rlAssertRpm --all

+         rlRun "TmpDir=\$(mktemp -d)"

+         rlRun "cp reproducer.cc $TmpDir"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun 'g++ -o reproducer -Wall -Wextra -std=c++17 reproducer.cc'

+         rlRun './reproducer'

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun 'popd'

+         rlRun "rm -r $TmpDir"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

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

+ summary: Test for BZ#1965951 (Wrong-code regression starting with gcc 8.5)

+ description: |

+     Bug summary: Wrong-code regression starting with gcc 8.5

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

+ contact: Vaclav Kadlcik <vkadlcik@redhat.com>

+ component:

+ - gcc

+ test: ./runtest.sh

+ framework: beakerlib

+ recommend:

+ - gcc-c++

+ duration: 15m

+ link:

+ -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1965951

+ extra-summary: /tools/gcc/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5

+ extra-task: /tools/gcc/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5

@@ -0,0 +1,12 @@

+ #include <iostream>

+ struct S1 { virtual ~S1() = default; };

+ struct S2 { virtual void f1() = 0; };

+ struct S3: S1, S2 {

+     void f1() { f2(); }

+     virtual void f2() = 0;

+ };

+ struct S4: S3 {

+     void f2() { std::cout << "called\n"; }

+     using S2::f1;

+ };

+ int main() { S4().f1(); }

@@ -0,0 +1,55 @@

+ #!/usr/bin/env bash

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

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

+ #

+ #   runtest.sh of /tools/gcc/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5

+ #   Description: Test for BZ#1965951 (Wrong-code regression starting with gcc 8.5)

+ #   Author: Vaclav Kadlcik <vkadlcik@redhat.com>

+ #

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

+ #

+ #   Copyright (c) 2021 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

+ 

+ GCC="${GCC:-$(type -P gcc)}"

+ PACKAGE=$(rpm --qf '%{name}\n' -qf $GCC | head -1)

+ PACKAGES="${PACKAGE} ${PACKAGE}-c++"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlLogInfo "PACKAGES=$PACKAGES"

+         rlRun "dnf -y install $PACKAGES" 0-255

+         rlAssertRpm --all

+         rlRun "TmpDir=\$(mktemp -d)"

+         rlRun "cp reproducer.cc $TmpDir"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun 'g++ -o reproducer reproducer.cc'

+         rlRun './reproducer'

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun 'popd'

+         rlRun "rm -r $TmpDir"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

no initial comment

Pull-Request has been closed by vkadlcik

2 years ago
Metadata
Changes Summary 29
+1 -1
file changed
plans/ci.fmf
+12
file added
tests/Regression/bz1815504-Regression-in-the-line-information-debug/main.fmf
+50
file added
tests/Regression/bz1815504-Regression-in-the-line-information-debug/runtest.sh
+17
file added
tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/main.fmf
+55
file added
tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/runtest.sh
+8
file added
tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/x.c
+17
file added
tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/main.fmf
+52
file added
tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/runtest.sh
+7
file added
tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/test.cc
+16
file added
tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/main.fmf
+52
file added
tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/runtest.sh
+6
file added
tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/tst.c
+2
file added
tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/b.gdb
+17
file added
tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/main.fmf
+52
file added
tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/runtest.sh
+6
file added
tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/test.c
+16
file added
tests/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not/main.fmf
+56
file added
tests/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not/runtest.sh
+5
file added
tests/Regression/bz1927579-libgfortran-seems-to-be-missing/alloc1.f90
+17
file added
tests/Regression/bz1927579-libgfortran-seems-to-be-missing/main.fmf
+51
file added
tests/Regression/bz1927579-libgfortran-seems-to-be-missing/runtest.sh
+17
file added
tests/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong/main.fmf
+50
file added
tests/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong/runtest.sh
+16
file added
tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/main.fmf
+14
file added
tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/reproducer.cc
+55
file added
tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/runtest.sh
+16
file added
tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/main.fmf
+12
file added
tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/reproducer.cc
+55
file added
tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/runtest.sh