From 11f0beafa6fcb7ffbd987da5ee63b06160150fb1 Mon Sep 17 00:00:00 2001 From: Frantisek Hrdina Date: Fri, 1 Apr 2022 10:54:03 +0200 Subject: [PATCH 01/21] Adding /CoreOS/net-tools/Sanity/hostname-s-not-dependent-on-DNS --- .../hostname-s-not-dependent-on-DNS/main.fmf | 28 ++++++++++ .../runtest.sh | 51 +++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 Sanity/hostname-s-not-dependent-on-DNS/main.fmf create mode 100755 Sanity/hostname-s-not-dependent-on-DNS/runtest.sh diff --git a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf new file mode 100644 index 0000000..661bbac --- /dev/null +++ b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf @@ -0,0 +1,28 @@ +summary: hostname -s should work even for hostnames that don't resolve via DNS +description: | + Bug summary: hostname -s gives hostname: Unknown host when the FQDN does not resolve + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=319981 +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 10m +enabled: true +tag: + - NoRHEL7 + - TIPfail_infra + - TIPpass + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=319981 +adjust: + - enabled: false + when: distro == rhel-7, rhel-8 + continue: false +extra-nitrate: TC#0128706 +extra-summary: /CoreOS/net-tools/Sanity/hostname-s-not-dependent-on-DNS +extra-task: /CoreOS/net-tools/Sanity/hostname-s-not-dependent-on-DNS diff --git a/Sanity/hostname-s-not-dependent-on-DNS/runtest.sh b/Sanity/hostname-s-not-dependent-on-DNS/runtest.sh new file mode 100755 index 0000000..9281603 --- /dev/null +++ b/Sanity/hostname-s-not-dependent-on-DNS/runtest.sh @@ -0,0 +1,51 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Sanity/hostname-s-not-dependent-on-DNS +# Description: hostname -s should work even for hostnames that don't resolve via DNS +# Author: Ales Zelinka +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" + +rlJournalStart +rlPhaseStartSetup + rlAssertRpm $PACKAGE + OLD_HOSTNAME=`hostname` + rlRun "hostname some.random.hostname" 0 "setting hostname to some.random.hostname" + sleep 5 +rlPhaseEnd + +rlPhaseStartTest + rlRun "hostname" + rlRun "hostname -s | grep some" 0 "hostname -s works (returns 'some')" +rlPhaseEnd + +rlPhaseStartCleanup + rlRun "hostname $OLD_HOSTNAME" 0 "setting hostname to the original value" +rlPhaseEnd +rlJournalPrintText +rlJournalEnd From 575dd7a5e2ea68d8e178f6b6f9174a3f418cf019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Wed, 9 Nov 2022 14:00:28 +0100 Subject: [PATCH 02/21] Moving tests to fedora repo /CoreOS/net-tools/Sanity/netstat-notrim-option /CoreOS/net-tools/Regression/bz234045-missing-causes-netstat-I-and-netstat --- .../main.fmf | 21 ++++++ .../runtest.sh | 48 ++++++++++++++ Sanity/netstat-notrim-option/main.fmf | 24 +++++++ Sanity/netstat-notrim-option/runtest.sh | 66 +++++++++++++++++++ 4 files changed, 159 insertions(+) create mode 100644 Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf create mode 100755 Regression/bz234045-missing-causes-netstat-I-and-netstat/runtest.sh create mode 100644 Sanity/netstat-notrim-option/main.fmf create mode 100755 Sanity/netstat-notrim-option/runtest.sh diff --git a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf new file mode 100644 index 0000000..2be21c1 --- /dev/null +++ b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf @@ -0,0 +1,21 @@ +summary: Test for BZ#234045 (missing '=' causes "netstat -I" and "netstat) +description: | + Bug summary: missing '=' causes "netstat -I" and "netstat --interfaces" to segfault + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=234045 +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=234045 +extra-nitrate: TC#0174619 +extra-summary: /CoreOS/net-tools/Regression/bz234045-missing-causes-netstat-I-and-netstat +extra-task: /CoreOS/net-tools/Regression/bz234045-missing-causes-netstat-I-and-netstat diff --git a/Regression/bz234045-missing-causes-netstat-I-and-netstat/runtest.sh b/Regression/bz234045-missing-causes-netstat-I-and-netstat/runtest.sh new file mode 100755 index 0000000..d2324d0 --- /dev/null +++ b/Regression/bz234045-missing-causes-netstat-I-and-netstat/runtest.sh @@ -0,0 +1,48 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz234045-missing-causes-netstat-I-and-netstat +# Description: Test for BZ#234045 (missing '=' causes "netstat -I" and "netstat) +# Author: Alex Sersen +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2012 Red Hat, Inc. All rights reserved. +# +# This copyrighted material is made available to anyone wishing +# to use, modify, copy, or redistribute it subject to the terms +# and conditions of the GNU General Public License version 2. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Include Beaker environment +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +PACKAGE="net-tools" + +DEF_ETH=`ip route show | grep default | awk '{print $5}' | head -1` + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlPhaseEnd + + rlPhaseStartTest + rlRun "netstat -i" 0 + rlRun "netstat -I" 0 + rlRun "netstat --interfaces=$DEF_ETH" 0 + rlPhaseEnd +rlJournalPrintText +rlJournalEnd + diff --git a/Sanity/netstat-notrim-option/main.fmf b/Sanity/netstat-notrim-option/main.fmf new file mode 100644 index 0000000..33ed971 --- /dev/null +++ b/Sanity/netstat-notrim-option/main.fmf @@ -0,0 +1,24 @@ +summary: Test for bz732984 (netstat truncates IPV6 UDP sockets even with) +description: | + Bug summary: netstat truncates IPV6 UDP sockets even with --notrim specifed + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=732984 +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools + - nmap-ncat + - nc + - iproute +duration: 10m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=732984 +extra-nitrate: TC#0111106 +extra-summary: /CoreOS/net-tools/Sanity/netstat-notrim-option +extra-task: /CoreOS/net-tools/Sanity/netstat-notrim-option diff --git a/Sanity/netstat-notrim-option/runtest.sh b/Sanity/netstat-notrim-option/runtest.sh new file mode 100755 index 0000000..715ca33 --- /dev/null +++ b/Sanity/netstat-notrim-option/runtest.sh @@ -0,0 +1,66 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Sanity/netstat-notrim-option +# Description: Test for bz732984 (netstat truncates IPV6 UDP sockets even with) +# Author: Ales Zelinka +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" +def_PORT="15151" + +rlJournalStart +rlPhaseStartTest + rlAssertRpm $PACKAGE + #starting with rhel7 the option changed. feature, not a bug. + if rlIsRHEL 5 6 ; then + OPTION="T" + else + OPTION="W" + fi + + DEFAULT_IF=`ip r | grep default | awk '{print $5}' | head -1` + IPV6_DEF_ADDR="$(ip a l dev $DEFAULT_IF | grep 'inet6 ' | grep -v 'scope link' | awk NR\=\=1 | sed 's/.* inet6 \s*\([^/]*\).*/\1/')" + rlLog "DEFAULT_IF: \"$DEFAULT_IF\"" # default interface + rlLog "IPV6_DEF_ADDR: \"$IPV6_DEF_ADDR\"" # first global IPv6 addr. of default interface + + # run udp6 NC server on IPv6 address of default interface + # to make sure there is at least 1 ipv6/udp server listening + rlRun "nc -6ul $IPV6_DEF_ADDR $def_PORT &" + sleep 10 + echo "######################## jobs ########################"; jobs # debug + echo "#################### netstat -tulen ##################"; netstat -tulen # debug + echo "#################### ss -tulen ##################"; ss -tulen # debug (netstat not showing new job on s390x sometimes - try "ss" also) + + ip a l dev "$DEFAULT_IF" | grep 'inet6 ' | grep -v 'scope link' | sed 's/.* inet6 \s*\([^/]*\).*/\1/' | \ + while read ADDRESS ; do + rlRun "netstat -A inet6 -an$OPTION |grep udp|grep $ADDRESS" 0 "netstat listed untrimmed address $ADDRESS" + done + rlLog "echo 'Why was it empty?'" + pkill nc # kill nc server +rlPhaseEnd +rlJournalPrintText +rlJournalEnd From ad70489f0b16deaca0d00806c534cd63d194310f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Mon, 20 Mar 2023 08:14:29 +0100 Subject: [PATCH 03/21] Adding test /CoreOS/net-tools/Sanity/ifconfig-inaccurately-rounds-exabytes --- .../data | 6 ++ .../ifconfig-inaccurately-rounds-exabytes/dev | 3 + .../main.fmf | 28 ++++++++ .../runtest.sh | 66 +++++++++++++++++++ 4 files changed, 103 insertions(+) create mode 100644 Sanity/ifconfig-inaccurately-rounds-exabytes/data create mode 100644 Sanity/ifconfig-inaccurately-rounds-exabytes/dev create mode 100644 Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf create mode 100755 Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/data b/Sanity/ifconfig-inaccurately-rounds-exabytes/data new file mode 100644 index 0000000..c91f3d7 --- /dev/null +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/data @@ -0,0 +1,6 @@ +431640404764:401.9 GiB +1125899906842624:1024.0 TiB +1125899906842625:1.0 PiB +2154408931384050514:1.8 EiB +9223372036854775807:8.0 EiB +9999999999999999999999999999992154408931384050514:16.0 EiB diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/dev b/Sanity/ifconfig-inaccurately-rounds-exabytes/dev new file mode 100644 index 0000000..cfb7bba --- /dev/null +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/dev @@ -0,0 +1,3 @@ +Inter-| Receive | Transmit + face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed + lo: XXX 690 0 0 0 0 0 0 0 0 0 0 0 0 0 0 diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf new file mode 100644 index 0000000..91d5f4b --- /dev/null +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf @@ -0,0 +1,28 @@ +summary: Test for BZ#1177980 (ifconfig inaccurately rounds exabytes) +description: | + Bug summary: ifconfig inaccurately rounds exabytes + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1177980 +enabled: true +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1177980 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1592732 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1414765 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1392910 +tag: + - Tier1 +tier: '1' +adjust: + - enabled: false + when: distro < rhel-6 + continue: false +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 20m +extra-nitrate: TC#0539000 +extra-summary: /CoreOS/net-tools/Sanity/ifconfig-inaccurately-rounds-exabytes +extra-task: /CoreOS/net-tools/Sanity/ifconfig-inaccurately-rounds-exabytes diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh b/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh new file mode 100755 index 0000000..159d110 --- /dev/null +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh @@ -0,0 +1,66 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Sanity/ifconfig-inaccurately-rounds-exabytes +# Description: Test for BZ#1177980 (ifconfig inaccurately rounds exabytes) +# Author: Petr Sklenar +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + chrootd=`mktemp -d` + rlIsFedora && rlRun "dnf -y --installroot=$chrootd --releasever=`rlGetDistroRelease` install net-tools" + rlIsFedora && dnf -y --installroot=$chrootd --releasever=rawhide upgrade net-tools --nogpg + rlIsRHEL && rlRun "yum -y --installroot=$chrootd install net-tools --nogpgcheck" + rlRun "mkdir $chrootd/proc/net -p" + rlPhaseEnd + + + rlPhaseStartTest + old="$IFS" + #IFS = delimiter: + IFS=' +' + for i in $( $chrootd/proc/net/dev + chroot $chrootd /bin/bash -c "ifconfig" | grep "$iB" + rlAssert0 "$iB" $? + chroot $chrootd /bin/bash -c "ifconfig" + echo =========== + done + IFS="$old" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "rm -r $chrootd" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd From 40e7c7481fb82be796088ef09f1cfe8f22b91143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Mon, 20 Mar 2023 10:45:39 +0100 Subject: [PATCH 04/21] Updating metadata of tests --- .../main.fmf | 1 + .../hostname-s-not-dependent-on-DNS/main.fmf | 1 + .../main.fmf | 1 + Sanity/netstat-notrim-option/main.fmf | 1 + Sanity/sanity-test/main.fmf | 29 ++++++++++--------- 5 files changed, 19 insertions(+), 14 deletions(-) diff --git a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf index 2be21c1..26d087b 100644 --- a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf +++ b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf @@ -19,3 +19,4 @@ link: extra-nitrate: TC#0174619 extra-summary: /CoreOS/net-tools/Regression/bz234045-missing-causes-netstat-I-and-netstat extra-task: /CoreOS/net-tools/Regression/bz234045-missing-causes-netstat-I-and-netstat +id: f0378c2d-b7d1-48c5-8aaf-74595794b67e diff --git a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf index 661bbac..8df42f5 100644 --- a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf +++ b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf @@ -26,3 +26,4 @@ adjust: extra-nitrate: TC#0128706 extra-summary: /CoreOS/net-tools/Sanity/hostname-s-not-dependent-on-DNS extra-task: /CoreOS/net-tools/Sanity/hostname-s-not-dependent-on-DNS +id: 2dd8101c-60c6-4b12-89ea-b2a107cf38dc diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf index 91d5f4b..ac7d74b 100644 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf @@ -26,3 +26,4 @@ duration: 20m extra-nitrate: TC#0539000 extra-summary: /CoreOS/net-tools/Sanity/ifconfig-inaccurately-rounds-exabytes extra-task: /CoreOS/net-tools/Sanity/ifconfig-inaccurately-rounds-exabytes +id: 54a46fd1-226c-4a9c-ab1d-c8ca1b175589 diff --git a/Sanity/netstat-notrim-option/main.fmf b/Sanity/netstat-notrim-option/main.fmf index 33ed971..f53f84e 100644 --- a/Sanity/netstat-notrim-option/main.fmf +++ b/Sanity/netstat-notrim-option/main.fmf @@ -22,3 +22,4 @@ link: extra-nitrate: TC#0111106 extra-summary: /CoreOS/net-tools/Sanity/netstat-notrim-option extra-task: /CoreOS/net-tools/Sanity/netstat-notrim-option +id: bbc13743-3ac6-4fb7-9762-83a6ff4e6903 diff --git a/Sanity/sanity-test/main.fmf b/Sanity/sanity-test/main.fmf index 741720f..4e661d9 100644 --- a/Sanity/sanity-test/main.fmf +++ b/Sanity/sanity-test/main.fmf @@ -7,33 +7,34 @@ description: |+ contact: fhrdina@redhat.com component: -- net-tools + - net-tools test: ./runtest.sh framework: beakerlib recommend: -- net-tools + - net-tools duration: 10m enabled: true tag: -- FedoraReady -- TIP_fedora_pass -- TIPfail_infra -- TIPpass -- Tier1 + - FedoraReady + - TIP_fedora_pass + - TIPfail_infra + - TIPpass + - Tier1 tier: '1' link: -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=673533 -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=522888 -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=537322 -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=705110 -- relates: https://bugzilla.redhat.com/show_bug.cgi?id=732984 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=673533 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=522888 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=537322 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=705110 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=732984 adjust: -- enabled: false + - enabled: false when: arch == ppc64, s390, s390x continue: false -- enabled: false + - enabled: false when: distro < rhel-6 continue: false extra-nitrate: TC#0046199 extra-summary: /CoreOS/net-tools/Sanity/sanity-test extra-task: /CoreOS/net-tools/Sanity/sanity-test +id: fa9eff84-8bd7-40af-abab-c3c962df66cd From 11012b894fb86c87dcd27623a94c4a64627531ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Wed, 29 Mar 2023 14:32:32 +0200 Subject: [PATCH 05/21] Updating metadata --- Sanity/hostname-s-not-dependent-on-DNS/main.fmf | 5 +---- Sanity/sanity-test/main.fmf | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf index 8df42f5..ed0c832 100644 --- a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf +++ b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf @@ -12,16 +12,13 @@ recommend: duration: 10m enabled: true tag: - - NoRHEL7 - - TIPfail_infra - - TIPpass - Tier1 tier: '1' link: - relates: https://bugzilla.redhat.com/show_bug.cgi?id=319981 adjust: - enabled: false - when: distro == rhel-7, rhel-8 + when: distro < rhel-7 continue: false extra-nitrate: TC#0128706 extra-summary: /CoreOS/net-tools/Sanity/hostname-s-not-dependent-on-DNS diff --git a/Sanity/sanity-test/main.fmf b/Sanity/sanity-test/main.fmf index 4e661d9..32fe001 100644 --- a/Sanity/sanity-test/main.fmf +++ b/Sanity/sanity-test/main.fmf @@ -15,10 +15,6 @@ recommend: duration: 10m enabled: true tag: - - FedoraReady - - TIP_fedora_pass - - TIPfail_infra - - TIPpass - Tier1 tier: '1' link: From fbd48a8802198646c78be93dac658e15eae18fe6 Mon Sep 17 00:00:00 2001 From: Michal Ruprich Date: Tue, 4 Apr 2023 08:40:21 +0200 Subject: [PATCH 06/21] We need basic packages in CentOS as well --- Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh b/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh index 159d110..e6cd1f0 100755 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh @@ -37,6 +37,7 @@ rlJournalStart rlIsFedora && rlRun "dnf -y --installroot=$chrootd --releasever=`rlGetDistroRelease` install net-tools" rlIsFedora && dnf -y --installroot=$chrootd --releasever=rawhide upgrade net-tools --nogpg rlIsRHEL && rlRun "yum -y --installroot=$chrootd install net-tools --nogpgcheck" + rlIsCentOS && rlRun "dnf -y --installroot=$chrootd install net-tools --nogpgcheck" rlRun "mkdir $chrootd/proc/net -p" rlPhaseEnd From a708138c2ea6723e0b5d35fa7ecabd556f50d116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Wed, 31 May 2023 10:18:40 +0200 Subject: [PATCH 07/21] Adding tests /CoreOS/net-tools/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name /CoreOS/net-tools/Sanity/bz234045-netstat-segfault-with-missing /CoreOS/net-tools/Sanity/init-scripts-LSB /CoreOS/net-tools/Regression/bz177397-netstat-i-only-works-with-first-interface /CoreOS/net-tools/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged /CoreOS/net-tools/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow /CoreOS/net-tools/Regression/bz477876-ifconfig-allmulti-warning /CoreOS/net-tools/Regression/bz634539-netstat-c-has-a-memory-leak /CoreOS/net-tools/Regression/bz1063906-netstat-abort-with-A-inet /CoreOS/net-tools/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode /CoreOS/net-tools/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on /CoreOS/net-tools/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many /CoreOS/net-tools/Regression/bz1538315-netstat-agn-only-shows-10-character-interface /CoreOS/net-tools/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name /CoreOS/net-tools/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not /CoreOS/net-tools/Regression/notrim-not-working-for-udp --- .../main.fmf | 27 ++++ .../runtest.sh | 65 +++++++++ .../main.fmf | 30 +++++ .../runtest.sh | 67 ++++++++++ .../main.fmf | 28 ++++ .../runtest.sh | 43 ++++++ .../main.fmf | 26 ++++ .../runtest.sh | 51 ++++++++ .../main.fmf | 31 +++++ .../runtest.sh | 57 ++++++++ .../main.fmf | 28 ++++ .../runtest.sh | 57 ++++++++ .../main.fmf | 35 +++++ .../runtest.sh | 123 ++++++++++++++++++ .../main.fmf | 20 +++ .../runtest.sh | 48 +++++++ .../main.fmf | 29 +++++ .../runtest.sh | 76 +++++++++++ .../main.fmf | 20 +++ .../runtest.sh | 76 +++++++++++ .../main.fmf | 21 +++ .../runtest.sh | 80 ++++++++++++ .../main.fmf | 23 ++++ .../runtest.sh | 61 +++++++++ .../notrim-not-working-for-udp/main.fmf | 30 +++++ .../notrim-not-working-for-udp/runtest.sh | 73 +++++++++++ .../main.fmf | 25 ++++ .../runtest.sh | 59 +++++++++ .../main.fmf | 21 +++ .../runtest.sh | 75 +++++++++++ .../main.fmf | 20 +++ .../runtest.sh | 46 +++++++ Sanity/init-scripts-LSB/main.fmf | 31 +++++ Sanity/init-scripts-LSB/runtest.sh | 101 ++++++++++++++ 34 files changed, 1603 insertions(+) create mode 100644 Regression/bz1063906-netstat-abort-with-A-inet/main.fmf create mode 100755 Regression/bz1063906-netstat-abort-with-A-inet/runtest.sh create mode 100644 Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf create mode 100755 Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/runtest.sh create mode 100644 Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf create mode 100755 Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/runtest.sh create mode 100644 Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf create mode 100755 Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/runtest.sh create mode 100644 Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf create mode 100755 Regression/bz1538315-netstat-agn-only-shows-10-character-interface/runtest.sh create mode 100644 Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf create mode 100755 Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/runtest.sh create mode 100644 Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf create mode 100755 Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh create mode 100644 Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf create mode 100755 Regression/bz177397-netstat-i-only-works-with-first-interface/runtest.sh create mode 100644 Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf create mode 100755 Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/runtest.sh create mode 100644 Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf create mode 100755 Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/runtest.sh create mode 100644 Regression/bz477876-ifconfig-allmulti-warning/main.fmf create mode 100755 Regression/bz477876-ifconfig-allmulti-warning/runtest.sh create mode 100644 Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf create mode 100755 Regression/bz634539-netstat-c-has-a-memory-leak/runtest.sh create mode 100644 Regression/notrim-not-working-for-udp/main.fmf create mode 100755 Regression/notrim-not-working-for-udp/runtest.sh create mode 100644 Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf create mode 100755 Regression/segfault-on-broken-proc_net_ipv6_route/runtest.sh create mode 100644 Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf create mode 100755 Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/runtest.sh create mode 100644 Sanity/bz234045-netstat-segfault-with-missing/main.fmf create mode 100755 Sanity/bz234045-netstat-segfault-with-missing/runtest.sh create mode 100644 Sanity/init-scripts-LSB/main.fmf create mode 100755 Sanity/init-scripts-LSB/runtest.sh diff --git a/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf b/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf new file mode 100644 index 0000000..3a2dad4 --- /dev/null +++ b/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf @@ -0,0 +1,27 @@ +summary: Command "netstat -A inet" should not abnormally terminate if sctp module + has not been added to kernel. +description: | + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1063906 +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools + - kmod +duration: 5m +enabled: true +tag: + - Tier2 +tier: '2' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1063906 +adjust: + - enabled: false + when: distro < rhel-6 + continue: false +extra-nitrate: TC#0340654 +extra-summary: /CoreOS/net-tools/Regression/bz1063906-netstat-abort-with-A-inet +extra-task: /CoreOS/net-tools/Regression/bz1063906-netstat-abort-with-A-inet +id: b1938694-a230-457d-b6e1-2359aeca08ed diff --git a/Regression/bz1063906-netstat-abort-with-A-inet/runtest.sh b/Regression/bz1063906-netstat-abort-with-A-inet/runtest.sh new file mode 100755 index 0000000..8d15cd8 --- /dev/null +++ b/Regression/bz1063906-netstat-abort-with-A-inet/runtest.sh @@ -0,0 +1,65 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz1063906-netstat-abort-with-A-inet +# Description: Command "netstat -A inet" should not abnormally terminate if sctp module has not been added to kernel. +# Author: Leos Pol +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" +INIT_REBOOTS="/var/tmp/local_reboots_count" +if [ ! -f $INIT_REBOOTS ]; then + touch $INIT_REBOOTS + echo "${REBOOTCOUNT:=0}" > $INIT_REBOOTS +fi + +rlJournalStart + if [ $REBOOTCOUNT -eq $(cat $INIT_REBOOTS) ]; then + rlPhaseStartSetup + rlAssertRpm $PACKAGE + (rlIsRHEL '>=7' || rlIsCentOS '>=7' || rlIsFedora) && rlAssertRpm kmod + rlPhaseEnd + + rlPhaseStartTest + rlLog "First reboot - necessary for making sure SCTP module isn't loaded (rhel7, rhel8, ...)" + rlLog "rebooting ..." + rlPhaseEnd + + rhts-reboot + elif [ $REBOOTCOUNT -gt $(cat $INIT_REBOOTS) ]; then + rlPhaseStartTest + # this should be loaded for the fisrt time, sctp shouldn't be there by default (rhel7, rhel8, ...) + rlRun "lsmod|grep ^sctp" 1 + rlRun "netstat -an -A inet" 0 "netstat works without sctp loaded" + rlRun "netstat -an -A inet6" 0 "netstat (inet6) works without sctp loaded" + rlPhaseEnd + + rlPhaseStartCleanup "after reboot, clean up only" + rlRun "rm -f $ISREBOOTED" + rlPhaseEnd + fi + +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf new file mode 100644 index 0000000..c4e411a --- /dev/null +++ b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf @@ -0,0 +1,30 @@ +summary: Test for BZ#1063913 (netstat doesn't list sctp servers in -A mode) +description: | + Bug summary: netstat doesn't list sctp servers in -A mode + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1063913 +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools + - lksctp-tools + - kernel-modules-extra +duration: 5m +enabled: true +tag: + - Tier2 +tier: '2' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1063913 +adjust: + - enabled: false + when: distro < rhel-6 + continue: false +extra-nitrate: TC#0547814 +extra-summary: + /CoreOS/net-tools/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode +extra-task: + /CoreOS/net-tools/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode +id: 3fef603d-c90b-414a-a8ac-3f9c376647e0 diff --git a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/runtest.sh b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/runtest.sh new file mode 100755 index 0000000..0e53aa5 --- /dev/null +++ b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/runtest.sh @@ -0,0 +1,67 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode +# Description: Test for BZ#1063913 (netstat doesn't list sctp servers in -A mode) +# Author: Petr Sklenar +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2017 Red Hat, Inc. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Include Beaker environment +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +PACKAGE="net-tools" +ISREBOOTED=/var/tmp/xasddsdfsddddasssa + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + echo "Reboot count: $REBOOTCOUNT" + rlPhaseEnd + + if [ $REBOOTCOUNT -eq 0 ] || ! [ -e $ISREBOOTED ]; + then + rlPhaseStartTest + # this should be loaded for the fisrt time, sctp shouldn't be there by default + rlRun "modprobe sctp --first-time" + sctp_darn -H 0 -P 2500 -l & APP_PID=$! + rlAssert0 "sctp_darn ..." $? + sleep 1 + rlRun "netstat -nl | grep 2500" + rlRun "netstat -nl -A inet,inet6 | grep 2500" + rlRun "touch $ISREBOOTED" + rlPhaseEnd + rhts-reboot + else + + rlPhaseStartTest + rlLog "after reboot, clean up only" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "/bin/rm -f $ISREBOOTED" + #rhel7 kernel defaults are without this module, remove following check if its trouble: + rlRun "lsmod|grep ^sctp" 1 + rlPhaseEnd + fi + +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf new file mode 100644 index 0000000..d730a30 --- /dev/null +++ b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf @@ -0,0 +1,28 @@ +summary: Test for BZ#1257549 (Netstat tool does not throw correct exit code on) +description: | + Bug summary: Netstat tool does not throw correct exit code on wrong parameter + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1257549 +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1257549 +adjust: + - enabled: false + when: distro < rhel-6 + continue: false +extra-nitrate: TC#0547812 +extra-summary: + /CoreOS/net-tools/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on +extra-task: + /CoreOS/net-tools/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on +id: 3bf9f1dd-7e1d-499e-ada0-43307a42698b diff --git a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/runtest.sh b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/runtest.sh new file mode 100755 index 0000000..fea92b9 --- /dev/null +++ b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/runtest.sh @@ -0,0 +1,43 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on +# Description: Test for BZ#1257549 (Netstat tool does not throw correct exit code on) +# Author: Petr Sklenar +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2017 Red Hat, Inc. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Include Beaker environment +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +PACKAGE="net-tools" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlPhaseEnd + + rlPhaseStartTest "Error code shouldn't be ZERO" + rlRun "netstat --asd" '1-255' + rlPhaseEnd + +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf new file mode 100644 index 0000000..0b8e3ec --- /dev/null +++ b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf @@ -0,0 +1,26 @@ +summary: Test for BZ#1427889 (exit code on wrong parameter is zero for many) +description: | + Bug summary: exit code on wrong parameter is zero for many net-tools binaries + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1427889 +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1427889 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1670355 +adjust: + - enabled: false + when: distro < rhel-7 + continue: false +extra-nitrate: TC#0549774 +extra-summary: + /CoreOS/net-tools/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many +extra-task: + /CoreOS/net-tools/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many +id: 7c4802eb-4c92-48c3-b149-b93fd361a5d5 diff --git a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/runtest.sh b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/runtest.sh new file mode 100755 index 0000000..bbea672 --- /dev/null +++ b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/runtest.sh @@ -0,0 +1,51 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many +# Description: Test for BZ#1427889 (exit code on wrong parameter is zero for many) +# Author: Petr Sklenar +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2017 Red Hat, Inc. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Include Beaker environment +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +PACKAGE="net-tools" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlPhaseEnd + + rlPhaseStartTest + log=$(mktemp) + for bin in $(rpm -ql net-tools | grep bin);do + for option in wrongoption --wrongoption;do + rlRun "timeout 10 $bin $option &> $log" '1-255' + done + done + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "rm -r $log" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf new file mode 100644 index 0000000..10b9192 --- /dev/null +++ b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf @@ -0,0 +1,31 @@ +summary: Test for BZ#1538315 (netstat -agn only shows 10 character interface) +description: | + Bug summary: netstat -agn only shows 10 character interface name for IPv4 addressing + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1538315 + Test creates a new virtual interface with a 15 characters long name. + Assigns an ipv4 address, runs netstat and checks for correct name. +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1538315 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1584233 +adjust: + - enabled: false + when: distro < rhel-7 + continue: false +extra-nitrate: TC#0570169 +extra-summary: + /CoreOS/net-tools/Regression/bz1538315-netstat-agn-only-shows-10-character-interface +extra-task: + /CoreOS/net-tools/Regression/bz1538315-netstat-agn-only-shows-10-character-interface +id: 1145cf51-5957-4dc5-b5bd-c857d86618d9 diff --git a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/runtest.sh b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/runtest.sh new file mode 100755 index 0000000..c174bd0 --- /dev/null +++ b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/runtest.sh @@ -0,0 +1,57 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz1538315-netstat-agn-only-shows-10-character-interface +# Description: Test for BZ#1538315 (netstat -agn only shows 10 character interface) +# Author: Ondrej Mejzlik +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" +IFACE="osmznaku9112345" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" + rlRun "pushd $TmpDir" + rlPhaseEnd + + rlPhaseStartTest + # Create new network interface with a long name and assign ipv4 address + rlRun "ip tuntap add mode tap $IFACE" 0 "Creating network interface $IFACE" + rlRun "ifconfig $IFACE 192.168.15.15" 0 "Assigning 192.168.15.15 to $IFACE" + # Check that the correct name is displayed followed by an ipv4 address + rlRun "netstat -agn | grep -wE '$IFACE[[:space:]].*\b([0-9]{1,3}\.){3}[0-9]{1,3}\b'" 0 "Looking for correct name" + rlRun "netstat -agn | grep -w 'osmznaku91'" 1 "Incorrect name should not be found" + rlPhaseEnd + + rlPhaseStartCleanup + # Remove testing interface + rlRun "ip link delete $IFACE" 0 "Removing $IFACE" + rlRun "popd" + rlRun "rm -r $TmpDir" 0 "Removing tmp directory" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf new file mode 100644 index 0000000..d81b450 --- /dev/null +++ b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf @@ -0,0 +1,28 @@ +summary: Test for BZ#1568306 (netstat -i only shows 8 characters of Iface name) +description: | + Bug summary: netstat -i only shows 8 characters of Iface name + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1568306 +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1568306 +adjust: + - enabled: false + when: distro < rhel-7 + continue: false +extra-nitrate: TC#0570231 +extra-summary: + /CoreOS/net-tools/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name +extra-task: + /CoreOS/net-tools/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name +id: 8ddff5e4-6c50-4b14-8988-9a473d93af82 diff --git a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/runtest.sh b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/runtest.sh new file mode 100755 index 0000000..883fcc9 --- /dev/null +++ b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/runtest.sh @@ -0,0 +1,57 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name +# Description: Test for BZ#1568306 (netstat -i only shows 8 characters of Iface name) +# Author: Ondrej Mejzlik +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" +IFACE="osmznaku9112345" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE || rlDie "Package installation failed" + rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" + rlRun "pushd $TmpDir" + rlPhaseEnd + + rlPhaseStartTest + # Create new network interface with a long name and assign ipv4 address + rlRun "ip tuntap add mode tap $IFACE" 0 "Creating network interface $IFACE" + rlRun "ifconfig $IFACE 192.168.15.15" 0 "Assigning 192.168.15.15 to $IFACE" + # Check the correct output of netstat -i + rlRun "netstat -i | grep -w $IFACE" 0 "Looking for correct name in netstat -i" + rlRun "netstat -i | grep -w osmznaku" 1 "Wrong name no longer present" + rlPhaseEnd + + rlPhaseStartCleanup + # Remove testing interface + rlRun "ip link delete $IFACE" 0 "Removing $IFACE" + rlRun "popd" + rlRun "rm -r $TmpDir" 0 "Removing tmp directory" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf new file mode 100644 index 0000000..7233178 --- /dev/null +++ b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf @@ -0,0 +1,35 @@ +summary: Test for BZ#1632905 ([NOKIA] The output of `route -A inet6` does not) +description: | + Bug summary: [NOKIA] The output of `route -A inet6` does not display properly when the 'Use' column output is over 6 digits + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1632905 +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools + - rpm-build + - dnf-plugins-core + - yum-utils + - gcc +duration: 60m +enabled: true +tag: + - Tier1 + - rhel8-buildroot + - rhel9-buildroot +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1632905 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1961792 +adjust: + - enabled: false + when: distro < rhel-7 + continue: false +extra-nitrate: TC#0602111 +extra-summary: + /CoreOS/net-tools/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not +extra-task: + /CoreOS/net-tools/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not +id: b30adc3b-bbea-44b7-a0ce-edd56fc10a36 diff --git a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh new file mode 100755 index 0000000..66b1ee9 --- /dev/null +++ b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh @@ -0,0 +1,123 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not +# Description: Test for BZ#1632905 ([NOKIA] The output of `route -A inet6` does not) +# Author: Patrik Mosko +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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 + +PACKAGE="net-tools" +: ${STATIC_CHECK:="NO"} + +MAX_PING_TIMEOUT=2000 #kill after 2000 seconds and just hope route shows 6-digit number +PACKETS_CNT=100100 +PING_DOMAIN="www.redhat.com" + +# reconsider using `dig $HOSTNAME AAAA`; currently only A records exist for system hostnames + +rlJournalStart + ########## SETUP PHASE ########## + rlPhaseStartSetup + rlAssertRpm $PACKAGE + + # debug info: rhel-8 seems to have slihtly different output of `route` + rlIsRHEL && DEF_IFC=`ip -6 r s | grep default | cut -d " " -f 5 | head -1` + rlIsFedora && DEF_IFC=`ip -6 r s | grep nexthop | cut -d " " -f 5 | head -1` + ip -6 r s; echo "-----" + GLOBAL_IPv6=`ip -6 a l dev $DEF_IFC | grep scope\ global | sed 's/.* inet6 \s*\([^/]*\).*/\1/'` + ip -6 a l dev $DEF_IFC + + if [ "$STATIC_CHECK" = "NO" ]; then + rlRun -l "ip a s" 0 "DEBUG: show all interfaces + IP addresses" 0-255 + rlRun -l "sudo sysctl -a | grep disable_ipv6" 0 "DEBUG: check whether IPv6 is enabled on this system" 0-255 + if [ ! -n "$GLOBAL_IPv6" ]; then + GLOBAL_IPv6=`ip -6 a | grep 'inet6.*scope global' | grep -Ev 'inet6\s+f[cd]00' | sed 's/.* inet6 \s*\([^/]*\).*/\1/'` + if [ ! -n "$GLOBAL_IPv6" ]; then + rlLogInfo "No IPv6 found OR bad parsing of 'ip -6 a' present" + rlLogInfo "Fallthrough to simple Static Check" + STATIC_CHECK="YES" + fi + fi + fi + + # KERNEL version must be lower than 4.18, otherwise run static check on srpm + KERNEL_VER_X=`uname -r | cut -d'-' -f 1 | cut -d'.' -f 1` + KERNEL_VER_Y=`uname -r | cut -d'-' -f 1 | cut -d'.' -f 2` + rlLog "kernel: X - Y: ${KERNEL_VER_X} - ${KERNEL_VER_Y}" + if ([ ${KERNEL_VER_X} -eq 4 -a ${KERNEL_VER_Y} -ge 18 ]) || [ ${KERNEL_VER_X} -gt 4 ]; then + rlLogInfo "Your kernel version doesn't store info about \"Use counter\" in /proc/net/ipv6_route already" + rlLogInfo "This counter has hard-coded \"0\" value from kernel 4.18. Fallback to static check." + STATIC_CHECK="YES" + fi + + rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" + rlRun "pushd $TmpDir" + rlPhaseEnd + + + if [ "$STATIC_CHECK" = "NO" ]; then + ##################### TEST PHASE #################### + rlPhaseStartTest "run 'route -n -A inet6' after ping harassing the routing table" + set -m + rlRun "route -n -A inet6" + rlRun "sudo timeout $MAX_PING_TIMEOUT ping6 -c $PACKETS_CNT -I $DEF_IFC -i 0.0001 $PING_DOMAIN 2>&1 >/dev/null" 0,1 \ + "send at least 100000 packets to get 6-digit \"Use\" count in route -6 output to reproduce the bug" + rlRun "route -n -A inet6" + + # Check whether "Ref" column merged with "Use" (6 columns == presume they did) + ###rlRun "route -n -A inet6 | grep $GLOBAL_IPv6 | awk '{print NF}' > columns_cnt" + rlRun "route -n -A inet6 | awk 'NR > 2 {print NF}' > columns_cnt" + # lets assume every column will be filled (not great, not terrible) + for line in `cat columns_cnt`; do + rlAssertGrep 7 <(echo $line) + rlAssertNotGrep 6 <(echo $line) + done + rlPhaseEnd + else + ##################### TEST PHASE #################### + rlPhaseStartTest "Static check - look at specific printf function in lib/inet6_gr.c" + rlFetchSrcForInstalled $PACKAGE + if rlIsRHEL '<8'; then + rlRun "yum-builddep -y *src.rpm" + else + rlRun "dnf builddep -y *src.rpm" + fi + rlRun "rpm --define='_topdir $TmpDir' -Uvh *src.rpm" + rlRun "rpmbuild --define='_topdir $TmpDir' -bp SPECS/${PACKAGE}.spec" + + TARGET_SOURCE=`find ./BUILD -name inet6_gr.c` + rlLog "Checking file '$TARGET_SOURCE'" + # this space should be here v + rlAssertGrep 'printf("%-30s %-26s %-4s %-3d %-1d %6d' $(echo $TARGET_SOURCE) + rlPhaseEnd + fi + + ########## CLEANUP PHASE ########## + rlPhaseStartCleanup + rlRun "popd" + rlRun "rm -r $TmpDir" 0 "Removing tmp directory" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf b/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf new file mode 100644 index 0000000..d9fb84f --- /dev/null +++ b/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf @@ -0,0 +1,20 @@ +summary: Test executes netstat with -i and checkes result. +description: '' +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=177397 +extra-nitrate: TC#0377377 +extra-summary: /CoreOS/net-tools/Regression/bz177397-netstat-i-only-works-with-first-interface +extra-task: /CoreOS/net-tools/Regression/bz177397-netstat-i-only-works-with-first-interface +id: 1377ef7f-6f46-42ca-bb0f-c4ef331255e1 diff --git a/Regression/bz177397-netstat-i-only-works-with-first-interface/runtest.sh b/Regression/bz177397-netstat-i-only-works-with-first-interface/runtest.sh new file mode 100755 index 0000000..d85c000 --- /dev/null +++ b/Regression/bz177397-netstat-i-only-works-with-first-interface/runtest.sh @@ -0,0 +1,48 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz177397-netstat-i-only-works-with-first-interface +# Description: Test executes netstat with -i and checkes result. +# Author: Leos Pol +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + IFACES=`netstat -i | sed -n '/Iface/b;/Kernel/!s/^\([^ ]*\) .*/\1/p'` + rlPhaseEnd + + rlPhaseStartTest + rlAssertGreater "Number of ifaces should be > 1" `echo $IFACES | wc -w` 1 + for i in ${IFACES}; do + #s390x uses long interface names, thus it shorted to 8 characters by all 'ip tools' + rlRun "netstat -I$i | grep ^${i:0:8}" + done + rlPhaseEnd + +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf new file mode 100644 index 0000000..2812443 --- /dev/null +++ b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf @@ -0,0 +1,29 @@ +summary: This test checks netstat output while using interface parameter +description: '' +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +tag: + - TIPfail_infra + - TIPpass + - Tier1 + - notier +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=196655 +adjust: + - enabled: false + when: arch != x86_64 + continue: false +extra-nitrate: TC#0361592 +extra-summary: + /CoreOS/net-tools/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged +extra-task: + /CoreOS/net-tools/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged +id: cf642cc8-ce44-4e17-a2bf-92e1cd124a15 diff --git a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/runtest.sh b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/runtest.sh new file mode 100755 index 0000000..0db321a --- /dev/null +++ b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/runtest.sh @@ -0,0 +1,76 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged +# Description: This test checks netstat output while using interface parameter +# Author: Leos Pol +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" +SLEEPTIME=60 + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlIsRHEL '<6' && DEFAULT_IF=`route | grep default | awk '{print $8}' | head -1` + ( rlIsRHEL '>=6' || rlIsFedora || rlIsCentOS '>=6') && DEFAULT_IF=`ip r | grep default | awk '{print $5}' | head -1` + rlLog "default interface: $DEFAULT_IF" + rlPhaseEnd + + rlPhaseStartTest + rlLog "running: ping -c $SLEEPTIME www.redhat.com >/dev/null &" + ping -c $SLEEPTIME www.redhat.com >/dev/null & + + #netstat uses only first 8 characters of interface name, s390x often uses longer, so cut it: + rlLog "running: netstat -I $DEFAULT_IF 1 | grep ${DEFAULT_IF:0:8} > netstat.log &" + netstat -I$DEFAULT_IF 1 | grep ${DEFAULT_IF:0:8} >netstat.log & + NETSTAT_PROC=$! + + rlRun "sleep $SLEEPTIME" + rlWaitForCmd "kill -9 -- $NETSTAT_PROC" -p $NETSTAT_PROC -m 30 -r 1 + + # extract RX_OK and TX_OK columns from netstat's output + _RX_OK_COL='$3' _TX_OK_COL='$7' + rlIsRHEL 5 6 && { _RX_OK_COL='$4'; _TX_OK_COL='$8'; } + RXOK_FIRST=`head -1 netstat.log | awk "{print $_RX_OK_COL}"` + RXOK_LAST=` tail -2 netstat.log | head -1 | awk "{print $_RX_OK_COL}"` + TXOK_FIRST=`head -1 netstat.log | awk "{print $_TX_OK_COL}"` + TXOK_LAST=` tail -2 netstat.log | head -1 | awk "{print $_TX_OK_COL}"` + + + #debug + head -n100 netstat.log + echo ".......... WHY DO YOU READ IT?" + tail -n100 netstat.log + + rlAssertGreater "RX counter check" $RXOK_LAST $RXOK_FIRST + rlAssertGreater "TX counter check" $TXOK_LAST $TXOK_FIRST + rlPhaseEnd + + rlPhaseStartCleanup + rm -f netstat.log + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf new file mode 100644 index 0000000..fdce7a6 --- /dev/null +++ b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf @@ -0,0 +1,20 @@ +summary: Test add dummy interface and try to rename to long name +description: '' +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=209120 +extra-nitrate: TC#0362971 +extra-summary: /CoreOS/net-tools/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow +extra-task: /CoreOS/net-tools/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow +id: cae66d45-82c4-4bc4-a1c2-129cbea9a753 diff --git a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/runtest.sh b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/runtest.sh new file mode 100755 index 0000000..d766216 --- /dev/null +++ b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/runtest.sh @@ -0,0 +1,76 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow +# Description: Test add dummy interface and try to rename to long name +# Author: Leos Pol +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + lsmod | grep "^dummy" >/dev/null 2>&1 + if [ $? -gt 0 ]; then + if rlIsRHEL '<8'; then + rlRun "modprobe dummy" 0 "Modprobing dummy" + else + # should work also for older RHEL's, but branching anyway, JIC + rlRun "ip link add dummy0 type dummy" 0 "Modprobing dummy" + fi + else + ifconfig | grep dummy0 >/dev/null 2>&1 + if [ $? -eq 0 ]; then + DUMMY_UP=1 + rlRun "ifconfig dummy0 down" 0 "ifdown existing dummy interface" + fi + DUMMY_LOADED=1 + fi + if rlIsRHEL "<7"; then + HWADDR=`ifconfig dummy0 | sed -n '/HWaddr/s/^.*HWaddr \([^ ]*\).*/\1/p'` + else + HWADDR=`ifconfig dummy0 | sed -n '/ether/s/^.*ether \([^ ]*\).*/\1/p'` + fi + rlPhaseEnd + + rlPhaseStartTest + rlRun "nameif dummy01234567890 $HWADDR" 1 "Rename to 16 char long iface" + rlRun "nameif dummy0123456789 $HWADDR" 0 "Rename to 15 char long iface" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "nameif dummy0 $HWADDR" 0 "Rename back to dummy0" + if [ $DUMMY_LOADED ]; then + nameif dummy0 $HWADDR + if [ $DUMMY_UP ]; then + rlRun "ifconfig dummy0 up" 0 "ifup dummy interface" + fi + else + rlRun "rmmod dummy" 0 "Removing mod dummy" + fi + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz477876-ifconfig-allmulti-warning/main.fmf b/Regression/bz477876-ifconfig-allmulti-warning/main.fmf new file mode 100644 index 0000000..7ea93df --- /dev/null +++ b/Regression/bz477876-ifconfig-allmulti-warning/main.fmf @@ -0,0 +1,21 @@ +summary: Test for bz477876 ('ifconfig' shows unnecessary warning about ALLMULTI) +description: '' +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools + - gawk +duration: 10m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=477876 +extra-nitrate: TC#0046198 +extra-summary: /CoreOS/net-tools/Regression/bz477876-ifconfig-allmulti-warning +extra-task: /CoreOS/net-tools/Regression/bz477876-ifconfig-allmulti-warning +id: 409d4ea7-c940-498a-ac1e-1507411bc071 diff --git a/Regression/bz477876-ifconfig-allmulti-warning/runtest.sh b/Regression/bz477876-ifconfig-allmulti-warning/runtest.sh new file mode 100755 index 0000000..0d4fb24 --- /dev/null +++ b/Regression/bz477876-ifconfig-allmulti-warning/runtest.sh @@ -0,0 +1,80 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz477876-ifconfig-allmulti-warning +# Description: Test for bz477876 ('ifconfig' shows unnecessary warning about ALLMULTI) +# Author: Karel Volny +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" +# once upon a time, each machine in RHTS had eth0 +# later on, it was possible to undo the name change and use the kernel provided 'eth0' name +# since Lennart's fanboys got the power to decide about how the distro works, we have "predictable interface names" that are totally unpredictable +# so let's resort to some ugly hack - let's assume that every Beaker machine routes through wired ethernet by default +iface=`ip route show | grep default | awk '{print $5}' | head -1` + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" + rlRun "pushd $TmpDir" + rlRun "ifconfig ${iface} > ${iface}.txt" 0 "Checking '${iface}' configuration" + # DEBUG + cat ${iface}.txt + rlPhaseEnd + + rlPhaseStartTest + # note that the bug is in checking wrong flag, MULTICAST, instead of ALLMULTI + # so we must make sure MULTICAST is on (should be on by default, but ...) + rlRun "ifconfig ${iface} multicast" 0 "Turning on MULTICAST for ${iface}" + rlRun "ifconfig ${iface} | grep MULTICAST" 0 "Checking if MULTICAST is on on ${iface}" + rlRun "ifconfig ${iface} allmulti" 0 "Turning on ALLMULTI for ${iface}" + rlRun "ifconfig ${iface} | grep ALLMULTI" 0 "Checking if ALLMULTI is on on ${iface}" + # DEBUG + ifconfig ${iface} + rlRun "ifconfig ${iface} -allmulti &> output" 0 "Turning ALLMULTI off for ${iface}" + # DEBUG + cat output + rlLog "The output should not contain 'Warning: Interface ${iface} still in ALLMULTI mode.'" + rlAssertNotGrep "Warning" output -i + rlAssertNotGrep "ALLMULTI" output + rlPhaseEnd + + rlPhaseStartCleanup + # turn MULTICAST off, if it was off before the test + rlRun "if ! grep MULTICAST ${iface}.txt ; then ifconfig ${iface} -multicast ; fi" 0 "Restoring MULTICAST state" + # turn ALLMULTI on, if it was on before the test + rlRun "if grep ALLMULTI ${iface}.txt ; then ifconfig ${iface} allmulti ; fi" 0 "Restoring ALLMULTI state" + # DEBUG + echo "Original '${iface}' state:" + cat "${iface}.txt" + echo "Current '${iface}' state:" + ifconfig ${iface} + rlRun "popd" + rlRun "rm -r $TmpDir" 0 "Removing tmp directory" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf b/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf new file mode 100644 index 0000000..2d99637 --- /dev/null +++ b/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf @@ -0,0 +1,23 @@ +summary: Test for bz634539 (netstat -c has a memory leak) +description: '' +contact: Patrik Moško +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools + - valgrind +duration: 5m +enabled: false +tag: + - Tier3 +tier: '3' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=634539 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=750272 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=81467 +extra-nitrate: TC#0081467 +extra-summary: /CoreOS/net-tools/Regression/bz634539-netstat-c-has-a-memory-leak +extra-task: /CoreOS/net-tools/Regression/bz634539-netstat-c-has-a-memory-leak +id: 0bd15876-09c6-4614-893b-7c80907571eb diff --git a/Regression/bz634539-netstat-c-has-a-memory-leak/runtest.sh b/Regression/bz634539-netstat-c-has-a-memory-leak/runtest.sh new file mode 100755 index 0000000..a7915a9 --- /dev/null +++ b/Regression/bz634539-netstat-c-has-a-memory-leak/runtest.sh @@ -0,0 +1,61 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/bz634539-netstat-c-has-a-memory-leak +# Description: Test for bz634539 (netstat -c has a memory leak) +# Author: Alex Sersen +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2011 Red Hat, Inc. All rights reserved. +# +# This copyrighted material is made available to anyone wishing +# to use, modify, copy, or redistribute it subject to the terms +# and conditions of the GNU General Public License version 2. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Include rhts environment +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +PACKAGE="net-tools" +ARCH=`uname -p` + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlAssertRpm valgrind + rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" + rlRun "pushd $TmpDir" + rlPhaseEnd + + rlPhaseStartTest + rlRun "valgrind -v --leak-check=full --show-reachable=yes &>log netstat -c &" 0 "Logging valgrind.." + rlRun "sleep 5 && kill -15 `pidof valgrind`" 0 "Killing valgrind.." + rlRun "sleep 1" + cat ./log + if [ $ARCH = "x86_64" -o $ARCH = "ppc64" -o $ARCH = "s390x" ]; then + rlAssertGrep "definitely lost: 1,224 bytes in 51 blocks" "./log" + else + rlAssertGrep "definitely lost: 612 bytes in 51 blocks" "./log" + rlAssertGrep "ERROR SUMMARY: 1 errors from 1 contexts" "./log" + fi + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "popd" + rlRun "rm -r $TmpDir" 0 "Removing tmp directory" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Regression/notrim-not-working-for-udp/main.fmf b/Regression/notrim-not-working-for-udp/main.fmf new file mode 100644 index 0000000..4b7f9c9 --- /dev/null +++ b/Regression/notrim-not-working-for-udp/main.fmf @@ -0,0 +1,30 @@ +summary: Test for bz732983 (netstat truncates IPV6 UDP sockets even with) +description: | + Bug summary: netstat truncates IPV6 UDP sockets even with --notrim specifed + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=732983 +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools + - iproute + - nc + - nmap-ncat + - psmisc +duration: 10m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=732983 +adjust: + - enabled: false + when: arch == s390x + continue: false +extra-nitrate: TC#0128718 +extra-summary: /CoreOS/net-tools/Regression/notrim-not-working-for-udp +extra-task: /CoreOS/net-tools/Regression/notrim-not-working-for-udp +id: cf983c6d-55dc-4406-b554-842c77fe4205 diff --git a/Regression/notrim-not-working-for-udp/runtest.sh b/Regression/notrim-not-working-for-udp/runtest.sh new file mode 100755 index 0000000..f79e2a5 --- /dev/null +++ b/Regression/notrim-not-working-for-udp/runtest.sh @@ -0,0 +1,73 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/notrim-not-working-for-udp +# Description: Test for bz732983 (netstat truncates IPV6 UDP sockets even with) +# Author: Ales Zelinka +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" + +rlJournalStart +rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlAssertRpm iproute + if rlIsRHEL '<7'; then + rlAssertRpm nc + else + rlAssertRpm nmap-ncat + fi + DEFAULT_IFACE=`ip r |grep default |cut -d " " -f 5` + rlLog "default route interface: $DEFAULT_IFACE" + rlRun "ip a a 1234:1234:1234:1234:1234:124:1234:1234/128 dev $DEFAULT_IFACE" 0 "add new ipv6 addr to $DEFAULT_IFACE" + sleep 5 + + rlLog "starting listening on both tcp and udp on the new address" + nc -l6 1234:1234:1234:1234:1234:124:1234:1234 1111 & + nc -l6u 1234:1234:1234:1234:1234:124:1234:1234 1111 & + + #debug + rlRun "ip a s" + rlRun "ss -tulen" +rlPhaseEnd + +rlPhaseStartTest + if rlIsRHEL '<7'; then + NOTRIM="T"; + else + NOTRIM="W"; + fi + netstat -A inet6 -an${NOTRIM} + rlRun "netstat -A inet6 -an${NOTRIM}|grep '^tcp.*1234:1234:1234:1234:1234:124:1234:1234:1111'" 0 "tcp line untrimmed" + rlRun "netstat -A inet6 -an${NOTRIM}|grep '^udp.*1234:1234:1234:1234:1234:124:1234:1234:1111'" 0 "udp line untrimmed" +rlPhaseEnd + +rlPhaseStartCleanup + rlRun "killall nc" 0 " killing all our listening nc's (and maybe few other as well)" + rlRun "ip a d 1234:1234:1234:1234:1234:124:1234:1234/128 dev $DEFAULT_IFACE" 0 "removing ipv6 addr from $DEFAULT_IFACE" +rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf b/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf new file mode 100644 index 0000000..c9d5f11 --- /dev/null +++ b/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf @@ -0,0 +1,25 @@ +summary: Test for bz668047 (/proc/net/ipv6_route broken, causes netstat to) +description: | + Bug summary: /proc/net/ipv6_route broken, causes netstat to segfault + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=668047 + + this didn't reproduce the bug. But it works as a nice sanity test for ip + so I packaged it as test anyway +contact: mshi@redhat.com +component: + - iproute + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools + - iproute +duration: 10m +enabled: true +tag: + - Tier2 +tier: '2' +extra-nitrate: TC#0128717 +extra-summary: /CoreOS/net-tools/Regression/segfault-on-broken-proc_net_ipv6_route +extra-task: /CoreOS/net-tools/Regression/segfault-on-broken-proc_net_ipv6_route +id: 5d97d2bb-82d7-41a6-8851-5237a090a548 diff --git a/Regression/segfault-on-broken-proc_net_ipv6_route/runtest.sh b/Regression/segfault-on-broken-proc_net_ipv6_route/runtest.sh new file mode 100755 index 0000000..9263a71 --- /dev/null +++ b/Regression/segfault-on-broken-proc_net_ipv6_route/runtest.sh @@ -0,0 +1,59 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Regression/segfault-on-broken-proc_net_ipv6_route +# Description: Test for bz668047 (/proc/net/ipv6_route broken, causes netstat to) +# Author: Ales Zelinka +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" + +rlJournalStart +rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlAssertRpm iproute + DEFAULT_IFACE=`ip r |grep default |cut -d " " -f 5 | head -1` + rlLog "default route interface: $DEFAULT_IFACE" + for n in $(seq 1 15); do + x=$(printf "%x" $n) + rlRun "ip tunnel add test-tunnel-$n mode sit local 172.16.0.$n remote 172.16.1.$n dev $DEFAULT_IFACE" + rlRun "ip link set test-tunnel-$n up" + rlRun "ip route add 200$x::/64 dev test-tunnel-$n" + done +rlPhaseEnd + +rlPhaseStartTest + rlRun "netstat -nr -A inet6" 0 "netstat -nr -A inet6 didn't segfault" +rlPhaseEnd + +rlPhaseStartCleanup + for n in $(seq 1 15); do + x=$(printf "%x" $n) + rlRun "ip tunnel del test-tunnel-$n" + done +rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf new file mode 100644 index 0000000..bbf5a6d --- /dev/null +++ b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf @@ -0,0 +1,21 @@ +summary: This test creates dummy interface and changes his name to something larger + then 9 characters and checks if ifconfig displays this interface correctly. +description: '' +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +tag: + - Tier3 +tier: '3' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=206917 +extra-nitrate: TC#0359421 +extra-summary: /CoreOS/net-tools/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name +extra-task: /CoreOS/net-tools/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name +id: 59990234-5f98-41ca-9fd7-bd3de51e148c diff --git a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/runtest.sh b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/runtest.sh new file mode 100755 index 0000000..5094528 --- /dev/null +++ b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/runtest.sh @@ -0,0 +1,75 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name +# Description: This test creates dummy interface and changes his name to something larger then 9 characters and checks if ifconfig displays this interface correctly. +# Author: Leos Pol +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + lsmod | grep "^dummy" >/dev/null 2>&1 + if [ $? -gt 0 ]; then + rlRun "modprobe dummy" 0 "Modprobing dummy" + if ! rlIsRHEL '<=7'; then + rlRun "ip link add dummy0 type dummy" 0 "Add dummy inteface via ip command" + fi + rlRun "ifconfig dummy0 down" + else + ifconfig | grep dummy0 >/dev/null 2>&1 + if [ $? -eq 0 ]; then + DUMMY_UP=1 + rlRun "ifconfig dummy0 down" 0 "ifdown existing dummy interface" + fi + DUMMY_LOADED=1 + fi + if rlIsRHEL "<7"; then + HWADDR=`ifconfig dummy0 | sed -n '/HWaddr/s/^.*HWaddr \([^ ]*\).*/\1/p'` + else + HWADDR=`ifconfig dummy0 | sed -n '/ether/s/^.*ether \([^ ]*\).*/\1/p'` + fi + rlPhaseEnd + + rlPhaseStartTest + rlRun "nameif dummy0123456 $HWADDR" 0 "Renaming dummy iface" + rlRun "ifconfig -a | grep dummy0123456" 0 "iface dummy0123456 is present" + rlPhaseEnd + + rlPhaseStartCleanup + if [ $DUMMY_LOADED ]; then + nameif dummy0 $HWADDR + if [ $DUMMY_UP ]; then + rlRun "ifconfig dummy0 up" 0 "ifup dummy interface" + fi + else + rlRun "rmmod dummy" 0 "Removing mod dummy" + fi + rlPhaseEnd + +rlJournalPrintText +rlJournalEnd diff --git a/Sanity/bz234045-netstat-segfault-with-missing/main.fmf b/Sanity/bz234045-netstat-segfault-with-missing/main.fmf new file mode 100644 index 0000000..e3a8bd9 --- /dev/null +++ b/Sanity/bz234045-netstat-segfault-with-missing/main.fmf @@ -0,0 +1,20 @@ +summary: This test runs netstat with and w/o = +description: '' +contact: fhrdina@redhat.com +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=234045 +extra-nitrate: TC#0372313 +extra-summary: /CoreOS/net-tools/Sanity/bz234045-netstat-segfault-with-missing +extra-task: /CoreOS/net-tools/Sanity/bz234045-netstat-segfault-with-missing +id: d0f17533-6b0e-4b70-9b54-931a3544090b diff --git a/Sanity/bz234045-netstat-segfault-with-missing/runtest.sh b/Sanity/bz234045-netstat-segfault-with-missing/runtest.sh new file mode 100755 index 0000000..85f6e4c --- /dev/null +++ b/Sanity/bz234045-netstat-segfault-with-missing/runtest.sh @@ -0,0 +1,46 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Sanity/bz234045-netstat-segfault-with-missing +# Description: This test runs netstat with and w/o = +# Author: Leos Pol +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlPhaseEnd + + rlPhaseStartTest + rlRun "netstat -I" 0 + rlRun "netstat -I=" 0 + rlRun "netstat --interfaces" 0 + rlRun "netstat --interfaces=" 0 + rlPhaseEnd + +rlJournalPrintText +rlJournalEnd diff --git a/Sanity/init-scripts-LSB/main.fmf b/Sanity/init-scripts-LSB/main.fmf new file mode 100644 index 0000000..ffec313 --- /dev/null +++ b/Sanity/init-scripts-LSB/main.fmf @@ -0,0 +1,31 @@ +summary: init scripts must meet LSB specifications +description: |+ + Description: init scripts must meet LSB specifications + + Author: Milos Malik + Author: Miroslav Vadkerti + +contact: Patrik Moško +component: + - net-tools +test: ./runtest.sh +framework: beakerlib +recommend: + - initscripts + - net-tools +duration: 5m +enabled: false +tag: + - Tier3 +tier: '3' +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=522888 + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=537322 +adjust: + - enabled: false + when: distro > rhel-6 + continue: false +extra-nitrate: TC#0075885 +extra-summary: /CoreOS/net-tools/Sanity/init-scripts-LSB +extra-task: /CoreOS/net-tools/Sanity/init-scripts-LSB +id: ac2a0ef5-4250-4d67-95c4-e29c46f4bc11 diff --git a/Sanity/init-scripts-LSB/runtest.sh b/Sanity/init-scripts-LSB/runtest.sh new file mode 100755 index 0000000..76ece38 --- /dev/null +++ b/Sanity/init-scripts-LSB/runtest.sh @@ -0,0 +1,101 @@ +#!/bin/bash +# vim: dict=/usr/share/rhts-library/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/net-tools/Sanity/init-scripts-LSB +# Description: init scripts must meet LSB specifications +# Author: Milos Malik +# Author: Miroslav Vadkerti +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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="net-tools" +SERVICE="netplugd" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + USAGE_FILE=`mktemp` + CASE_FILE=`mktemp` + rlServiceStop $SERVICE + rlPhaseEnd + + rlPhaseStartTest "Mandatory actions" + for ACTION in "start" "stop" "restart" "status" ; do + rlRun "grep -i \"usage.*$ACTION\" /etc/init.d/$SERVICE" + done + rlPhaseEnd + + rlPhaseStartTest "Recognized actions" + LINES_COUNT=`wc -l < /etc/init.d/$SERVICE` + LAST_CASE=`grep -n case /etc/init.d/$SERVICE | tail -n 1 | cut -d ':' -f 1` + rlRun "tail -n $((LINES_COUNT - LAST_CASE)) /etc/init.d/$SERVICE | grep '[ ]*[|a-zA-Z-]*)' | cut -d ')' -f 1 | tr '|' '\n' | tr -d ' ' | grep -v '*' | grep -v '\\$' | sed 's/\t//g' | sort > $CASE_FILE" + rlRun "grep -i usage /etc/init.d/$SERVICE | cut -d '{' -f 2 | tr -d '}\"' | tr '|' '\n' | sort > $USAGE_FILE" + rlRun "diff $CASE_FILE $USAGE_FILE" + rlPhaseEnd + + rlPhaseStartTest "Start" + rlRun "service $SERVICE start" 0 + rlRun "service $SERVICE status" 0 + rlRun "service $SERVICE start" 0 + rlRun "service $SERVICE status" 0 + rlRun "service $SERVICE restart" 0 + rlRun "service $SERVICE status" 0 + rlPhaseEnd + + rlPhaseStartTest "Stop" + rlRun "service $SERVICE stop" 0 + rlRun "service $SERVICE status" 3 + rlRun "service $SERVICE stop" 0 + rlRun "service $SERVICE status" 3 + rlPhaseEnd + + rlPhaseStartTest "Lock file" + rlRun "touch /var/lock/subsys/$SERVICE" + rlRun "service $SERVICE status" 2 + rlRun "rm -rf /var/lock/subsys/$SERVICE" + rlPhaseEnd + + rlPhaseStartTest "PID file" + rlRun "touch /var/run/$SERVICE.pid" + rlRun "service $SERVICE status" 1 + rlRun "rm -rf /var/run/$SERVICE.pid" 0 + rlPhaseEnd + + rlPhaseStartTest "Condrestart" + rlRun "service $SERVICE start" 0 + rlRun "service $SERVICE condrestart" 0 + rlRun "service $SERVICE status" 0 + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "rm -f /var/lock/subsys/$SERVICE" + rlRun "rm -f /var/run/$SERVICE.pid" + rm -f $USAGE_FILE + rm -f $CASE_FILE + rlServiceRestore $SERVICE + rlPhaseEnd +rlJournalPrintText +rlJournalEnd + From 981507c9bb76ddbbb43b7f73ce690301505b8314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Thu, 31 Aug 2023 14:55:41 +0200 Subject: [PATCH 08/21] Fixing tests for CentOS /Sanity/ifconfig-inaccurately-rounds-exabytes --- Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh b/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh index e6cd1f0..d01c681 100755 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh @@ -37,7 +37,7 @@ rlJournalStart rlIsFedora && rlRun "dnf -y --installroot=$chrootd --releasever=`rlGetDistroRelease` install net-tools" rlIsFedora && dnf -y --installroot=$chrootd --releasever=rawhide upgrade net-tools --nogpg rlIsRHEL && rlRun "yum -y --installroot=$chrootd install net-tools --nogpgcheck" - rlIsCentOS && rlRun "dnf -y --installroot=$chrootd install net-tools --nogpgcheck" + rlIsCentOS && rlRun "dnf -y --installroot=$chrootd install net-tools --nogpgcheck --releasever=$(rpm -E %centos)" rlRun "mkdir $chrootd/proc/net -p" rlPhaseEnd From a1f82c03317bfb04fbce666048be9002ea3ac4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Mon, 27 May 2024 09:44:32 +0200 Subject: [PATCH 09/21] Add fmf plans --- plans/others.fmf | 20 ++++++++++++++++++++ plans/tier1.fmf | 20 ++++++++++++++++++++ plans/tier2-tier3.fmf | 20 ++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 plans/others.fmf create mode 100644 plans/tier1.fmf create mode 100644 plans/tier2-tier3.fmf diff --git a/plans/others.fmf b/plans/others.fmf new file mode 100644 index 0000000..0b85809 --- /dev/null +++ b/plans/others.fmf @@ -0,0 +1,20 @@ +/public: + summary: Public other tests + discover: + how: fmf + filter: 'tier: -1 & tier: -2 & tier: -3 & tag: -multihost' + url: "https://src.fedoraproject.org/tests/net-tools.git" + execute: + how: tmt + +/internal: + summary: Internal other tests + discover: + how: fmf + filter: 'tier: -1 & tier: -2 & tier: -3 & tag: -multihost' + url: git://pkgs.devel.redhat.com/tests/net-tools + adjust: + enabled: false + when: distro == centos-stream or distro == fedora + execute: + how: tmt \ No newline at end of file diff --git a/plans/tier1.fmf b/plans/tier1.fmf new file mode 100644 index 0000000..4749928 --- /dev/null +++ b/plans/tier1.fmf @@ -0,0 +1,20 @@ +/public: + summary: Public Tier1 tests + discover: + how: fmf + filter: 'tier: 1' + url: "https://src.fedoraproject.org/tests/net-tools.git" + execute: + how: tmt + +/internal: + summary: Internal Tier1 tests + discover: + how: fmf + filter: 'tier: 1' + url: git://pkgs.devel.redhat.com/tests/net-tools + adjust: + enabled: false + when: distro == centos-stream or distro == fedora + execute: + how: tmt diff --git a/plans/tier2-tier3.fmf b/plans/tier2-tier3.fmf new file mode 100644 index 0000000..7f3245e --- /dev/null +++ b/plans/tier2-tier3.fmf @@ -0,0 +1,20 @@ +/public: + summary: Public Tier2 and Tier3 tests + discover: + how: fmf + filter: 'tier: 2 | tier: 3' + url: "https://src.fedoraproject.org/tests/net-tools.git" + execute: + how: tmt + +/internal: + summary: Internal Tier2 and Tier3 tests + discover: + how: fmf + filter: 'tier: 2 | tier: 3' + url: git://pkgs.devel.redhat.com/tests/net-tools + adjust: + enabled: false + when: distro == centos-stream or distro == fedora + execute: + how: tmt From 6332f2f4330dcc8b9c4532652c02dab8426f8857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Tue, 18 Jun 2024 10:29:51 +0200 Subject: [PATCH 10/21] Add test for RHEL-40958 --- .../segmentation-fault-on-netstat-s/main.fmf | 20 ++++++++++++++++++ .../segmentation-fault-on-netstat-s/test.sh | 21 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 Regression/segmentation-fault-on-netstat-s/main.fmf create mode 100755 Regression/segmentation-fault-on-netstat-s/test.sh diff --git a/Regression/segmentation-fault-on-netstat-s/main.fmf b/Regression/segmentation-fault-on-netstat-s/main.fmf new file mode 100644 index 0000000..fc42afb --- /dev/null +++ b/Regression/segmentation-fault-on-netstat-s/main.fmf @@ -0,0 +1,20 @@ +summary: Segmentation fault on netstat -s +description: 'Segmentation fault (core dumped) on netstat -s' +contact: František Hrdina +component: + - net-tools +test: ./test.sh +framework: beakerlib +recommend: + - net-tools +duration: 5m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - verifies: https://issues.redhat.com/browse/RHEL-40958 +adjust: + - enabled: false + when: distro < rhel-7 + continue: false diff --git a/Regression/segmentation-fault-on-netstat-s/test.sh b/Regression/segmentation-fault-on-netstat-s/test.sh new file mode 100755 index 0000000..488fd42 --- /dev/null +++ b/Regression/segmentation-fault-on-netstat-s/test.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm net-tools + rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory" + rlRun "pushd $tmp" + rlPhaseEnd + + rlPhaseStartTest + rlRun "netstat -s" + rlRun "dmesg | grep netstat | grep segfault" 1 "Checking if netstat segfault not occurred" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "popd" + rlRun "rm -r $tmp" 0 "Remove tmp directory" + rlPhaseEnd +rlJournalEnd From ae5bcbd0aa80ec33d945fb04729f6a92c7735231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Tue, 18 Jun 2024 10:41:30 +0200 Subject: [PATCH 11/21] Metadata update --- Regression/segmentation-fault-on-netstat-s/main.fmf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Regression/segmentation-fault-on-netstat-s/main.fmf b/Regression/segmentation-fault-on-netstat-s/main.fmf index fc42afb..26ff26b 100644 --- a/Regression/segmentation-fault-on-netstat-s/main.fmf +++ b/Regression/segmentation-fault-on-netstat-s/main.fmf @@ -1,5 +1,5 @@ summary: Segmentation fault on netstat -s -description: 'Segmentation fault (core dumped) on netstat -s' +description: Segmentation fault (core dumped) on netstat -s contact: František Hrdina component: - net-tools @@ -18,3 +18,5 @@ adjust: - enabled: false when: distro < rhel-7 continue: false +extra-nitrate: TC#0617568 +id: 435632b3-efdb-45e6-870a-1b278a54973d From f88e663e93b6431ba5c8df0881984198fa852b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Tue, 23 Jul 2024 09:23:03 +0200 Subject: [PATCH 12/21] Update fmf plans use gitlab instead of distgit --- plans/others.fmf | 2 +- plans/tier1.fmf | 2 +- plans/tier2-tier3.fmf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plans/others.fmf b/plans/others.fmf index 0b85809..8c73d31 100644 --- a/plans/others.fmf +++ b/plans/others.fmf @@ -12,7 +12,7 @@ discover: how: fmf filter: 'tier: -1 & tier: -2 & tier: -3 & tag: -multihost' - url: git://pkgs.devel.redhat.com/tests/net-tools + url: https://gitlab.com/redhat/rhel/tests/net-tools adjust: enabled: false when: distro == centos-stream or distro == fedora diff --git a/plans/tier1.fmf b/plans/tier1.fmf index 4749928..efc2f23 100644 --- a/plans/tier1.fmf +++ b/plans/tier1.fmf @@ -12,7 +12,7 @@ discover: how: fmf filter: 'tier: 1' - url: git://pkgs.devel.redhat.com/tests/net-tools + url: https://gitlab.com/redhat/rhel/tests/net-tools adjust: enabled: false when: distro == centos-stream or distro == fedora diff --git a/plans/tier2-tier3.fmf b/plans/tier2-tier3.fmf index 7f3245e..5179cac 100644 --- a/plans/tier2-tier3.fmf +++ b/plans/tier2-tier3.fmf @@ -12,7 +12,7 @@ discover: how: fmf filter: 'tier: 2 | tier: 3' - url: git://pkgs.devel.redhat.com/tests/net-tools + url: https://gitlab.com/redhat/rhel/tests/net-tools adjust: enabled: false when: distro == centos-stream or distro == fedora From 2c70b377e3a396966f68e7cbed470e895a6847a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Tue, 26 Nov 2024 16:31:12 +0100 Subject: [PATCH 13/21] QE owner format update --- Regression/bz1063906-netstat-abort-with-A-inet/main.fmf | 2 +- .../main.fmf | 2 +- .../main.fmf | 2 +- .../main.fmf | 2 +- .../main.fmf | 2 +- .../main.fmf | 2 +- .../main.fmf | 2 +- .../main.fmf | 2 +- .../main.fmf | 2 +- .../bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf | 2 +- .../bz234045-missing-causes-netstat-I-and-netstat/main.fmf | 2 +- Regression/bz477876-ifconfig-allmulti-warning/main.fmf | 2 +- Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf | 4 +++- Regression/notrim-not-working-for-udp/main.fmf | 2 +- Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf | 4 +++- Regression/segmentation-fault-on-netstat-s/main.fmf | 2 +- .../main.fmf | 2 +- Sanity/bz234045-netstat-segfault-with-missing/main.fmf | 2 +- Sanity/hostname-s-not-dependent-on-DNS/main.fmf | 2 +- Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf | 2 +- Sanity/init-scripts-LSB/main.fmf | 4 +++- Sanity/netstat-notrim-option/main.fmf | 2 +- Sanity/sanity-test/main.fmf | 2 +- 23 files changed, 29 insertions(+), 23 deletions(-) diff --git a/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf b/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf index 3a2dad4..b607d9f 100644 --- a/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf +++ b/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf @@ -2,7 +2,7 @@ summary: Command "netstat -A inet" should not abnormally terminate if sctp modul has not been added to kernel. description: | Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1063906 -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf index c4e411a..8bc0e37 100644 --- a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf +++ b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf @@ -2,7 +2,7 @@ summary: Test for BZ#1063913 (netstat doesn't list sctp servers in -A mode) description: | Bug summary: netstat doesn't list sctp servers in -A mode Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1063913 -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf index d730a30..1528263 100644 --- a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf +++ b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf @@ -2,7 +2,7 @@ summary: Test for BZ#1257549 (Netstat tool does not throw correct exit code on) description: | Bug summary: Netstat tool does not throw correct exit code on wrong parameter Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1257549 -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf index 0b8e3ec..5b6a48c 100644 --- a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf +++ b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf @@ -2,7 +2,7 @@ summary: Test for BZ#1427889 (exit code on wrong parameter is zero for many) description: | Bug summary: exit code on wrong parameter is zero for many net-tools binaries Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1427889 -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf index 10b9192..f765a64 100644 --- a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf +++ b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf @@ -4,7 +4,7 @@ description: | Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1538315 Test creates a new virtual interface with a 15 characters long name. Assigns an ipv4 address, runs netstat and checks for correct name. -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf index d81b450..0245065 100644 --- a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf +++ b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf @@ -2,7 +2,7 @@ summary: Test for BZ#1568306 (netstat -i only shows 8 characters of Iface name) description: | Bug summary: netstat -i only shows 8 characters of Iface name Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1568306 -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf index 7233178..c1b93e4 100644 --- a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf +++ b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf @@ -2,7 +2,7 @@ summary: Test for BZ#1632905 ([NOKIA] The output of `route -A inet6` does not) description: | Bug summary: [NOKIA] The output of `route -A inet6` does not display properly when the 'Use' column output is over 6 digits Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1632905 -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf b/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf index d9fb84f..c080499 100644 --- a/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf +++ b/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf @@ -1,6 +1,6 @@ summary: Test executes netstat with -i and checkes result. description: '' -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf index 2812443..046ad0a 100644 --- a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf +++ b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf @@ -1,6 +1,6 @@ summary: This test checks netstat output while using interface parameter description: '' -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf index fdce7a6..97c4e68 100644 --- a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf +++ b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf @@ -1,6 +1,6 @@ summary: Test add dummy interface and try to rename to long name description: '' -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf index 26d087b..1cfb200 100644 --- a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf +++ b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf @@ -2,7 +2,7 @@ summary: Test for BZ#234045 (missing '=' causes "netstat -I" and "netstat) description: | Bug summary: missing '=' causes "netstat -I" and "netstat --interfaces" to segfault Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=234045 -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz477876-ifconfig-allmulti-warning/main.fmf b/Regression/bz477876-ifconfig-allmulti-warning/main.fmf index 7ea93df..57652b8 100644 --- a/Regression/bz477876-ifconfig-allmulti-warning/main.fmf +++ b/Regression/bz477876-ifconfig-allmulti-warning/main.fmf @@ -1,6 +1,6 @@ summary: Test for bz477876 ('ifconfig' shows unnecessary warning about ALLMULTI) description: '' -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf b/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf index 2d99637..c1ba601 100644 --- a/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf +++ b/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf @@ -1,6 +1,8 @@ summary: Test for bz634539 (netstat -c has a memory leak) description: '' -contact: Patrik Moško +contact: + - Frantisek Hrdina + - Patrik Mosko component: - net-tools test: ./runtest.sh diff --git a/Regression/notrim-not-working-for-udp/main.fmf b/Regression/notrim-not-working-for-udp/main.fmf index 4b7f9c9..f86e89c 100644 --- a/Regression/notrim-not-working-for-udp/main.fmf +++ b/Regression/notrim-not-working-for-udp/main.fmf @@ -2,7 +2,7 @@ summary: Test for bz732983 (netstat truncates IPV6 UDP sockets even with) description: | Bug summary: netstat truncates IPV6 UDP sockets even with --notrim specifed Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=732983 -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf b/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf index c9d5f11..2df369e 100644 --- a/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf +++ b/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf @@ -5,7 +5,9 @@ description: | this didn't reproduce the bug. But it works as a nice sanity test for ip so I packaged it as test anyway -contact: mshi@redhat.com +contact: + - Frantisek Hrdina + - mshi@redhat.com component: - iproute - net-tools diff --git a/Regression/segmentation-fault-on-netstat-s/main.fmf b/Regression/segmentation-fault-on-netstat-s/main.fmf index 26ff26b..95d3f0e 100644 --- a/Regression/segmentation-fault-on-netstat-s/main.fmf +++ b/Regression/segmentation-fault-on-netstat-s/main.fmf @@ -1,6 +1,6 @@ summary: Segmentation fault on netstat -s description: Segmentation fault (core dumped) on netstat -s -contact: František Hrdina +contact: Frantisek Hrdina component: - net-tools test: ./test.sh diff --git a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf index bbf5a6d..416b2a3 100644 --- a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf +++ b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf @@ -1,7 +1,7 @@ summary: This test creates dummy interface and changes his name to something larger then 9 characters and checks if ifconfig displays this interface correctly. description: '' -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/bz234045-netstat-segfault-with-missing/main.fmf b/Sanity/bz234045-netstat-segfault-with-missing/main.fmf index e3a8bd9..33fd253 100644 --- a/Sanity/bz234045-netstat-segfault-with-missing/main.fmf +++ b/Sanity/bz234045-netstat-segfault-with-missing/main.fmf @@ -1,6 +1,6 @@ summary: This test runs netstat with and w/o = description: '' -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf index ed0c832..970f18b 100644 --- a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf +++ b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf @@ -2,7 +2,7 @@ summary: hostname -s should work even for hostnames that don't resolve via DNS description: | Bug summary: hostname -s gives hostname: Unknown host when the FQDN does not resolve Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=319981 -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf index ac7d74b..4c13135 100644 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf @@ -15,7 +15,7 @@ adjust: - enabled: false when: distro < rhel-6 continue: false -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/init-scripts-LSB/main.fmf b/Sanity/init-scripts-LSB/main.fmf index ffec313..3225ed2 100644 --- a/Sanity/init-scripts-LSB/main.fmf +++ b/Sanity/init-scripts-LSB/main.fmf @@ -5,7 +5,9 @@ description: |+ Author: Milos Malik Author: Miroslav Vadkerti -contact: Patrik Moško +contact: + - Frantisek Hrdina + - Patrik Mosko component: - net-tools test: ./runtest.sh diff --git a/Sanity/netstat-notrim-option/main.fmf b/Sanity/netstat-notrim-option/main.fmf index f53f84e..c1cfb1b 100644 --- a/Sanity/netstat-notrim-option/main.fmf +++ b/Sanity/netstat-notrim-option/main.fmf @@ -2,7 +2,7 @@ summary: Test for bz732984 (netstat truncates IPV6 UDP sockets even with) description: | Bug summary: netstat truncates IPV6 UDP sockets even with --notrim specifed Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=732984 -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/sanity-test/main.fmf b/Sanity/sanity-test/main.fmf index 32fe001..dfbb46d 100644 --- a/Sanity/sanity-test/main.fmf +++ b/Sanity/sanity-test/main.fmf @@ -5,7 +5,7 @@ description: |+ that on some architectures not all tests have to succeed, at the time the only know problem is ARP on s390/s390x archs, where no ARP protocol is used. -contact: fhrdina@redhat.com +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh From 5f29ec0bef0386ba8b2f71cde7ff0c3ca4fd447f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Tue, 21 Jan 2025 16:51:04 +0100 Subject: [PATCH 14/21] Fix test /Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not --- .../runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh index 66b1ee9..07dbfd2 100755 --- a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh +++ b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh @@ -102,7 +102,7 @@ rlJournalStart if rlIsRHEL '<8'; then rlRun "yum-builddep -y *src.rpm" else - rlRun "dnf builddep -y *src.rpm" + rlRun "dnf builddep -y --enablerepo=* *src.rpm" fi rlRun "rpm --define='_topdir $TmpDir' -Uvh *src.rpm" rlRun "rpmbuild --define='_topdir $TmpDir' -bp SPECS/${PACKAGE}.spec" From d275495fc94af841430f977c9de96732ef8c878b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Tue, 18 Feb 2025 09:30:30 +0100 Subject: [PATCH 15/21] Enable avc check --- main.fmf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.fmf b/main.fmf index 3c48c8f..3da3438 100644 --- a/main.fmf +++ b/main.fmf @@ -1,2 +1,5 @@ # QE owner contact: Frantisek Hrdina +component: frr +check: + - how: avc \ No newline at end of file From b88364f9437885acca174478c328302081504bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Mon, 24 Feb 2025 12:25:11 +0100 Subject: [PATCH 16/21] Fix ifconfig-inaccurately-rounds-exabytes test --- .../runtest.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh b/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh index d01c681..e326b46 100755 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh @@ -33,11 +33,15 @@ PACKAGE="net-tools" rlJournalStart rlPhaseStartSetup rlAssertRpm $PACKAGE + TestDir=$(pwd) + rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory" + rlRun "pushd $tmp" chrootd=`mktemp -d` - rlIsFedora && rlRun "dnf -y --installroot=$chrootd --releasever=`rlGetDistroRelease` install net-tools" - rlIsFedora && dnf -y --installroot=$chrootd --releasever=rawhide upgrade net-tools --nogpg - rlIsRHEL && rlRun "yum -y --installroot=$chrootd install net-tools --nogpgcheck" - rlIsCentOS && rlRun "dnf -y --installroot=$chrootd install net-tools --nogpgcheck --releasever=$(rpm -E %centos)" + + rlIsFedora && rlRun "dnf -y --installroot=$chrootd --releasever=`rlGetDistroRelease` --use-host-config install net-tools" &> dnf.log + rlIsFedora && dnf -y --installroot=$chrootd --releasever=rawhide upgrade net-tools --nogpg &>> dnf.log + rlIsRHEL && rlRun "yum -y --installroot=$chrootd install net-tools --nogpgcheck" &> dnf.log + rlIsCentOS && rlRun "dnf -y --installroot=$chrootd install net-tools --nogpgcheck --releasever=$(rpm -E %centos)" &> dnf.log rlRun "mkdir $chrootd/proc/net -p" rlPhaseEnd @@ -47,11 +51,11 @@ rlJournalStart #IFS = delimiter: IFS=' ' - for i in $( $chrootd/proc/net/dev + sed s/XXX/$bytes/g $TestDir/dev > $chrootd/proc/net/dev chroot $chrootd /bin/bash -c "ifconfig" | grep "$iB" rlAssert0 "$iB" $? chroot $chrootd /bin/bash -c "ifconfig" @@ -61,6 +65,9 @@ rlJournalStart rlPhaseEnd rlPhaseStartCleanup + rlFileSubmit dnf.log + rlRun "popd" + rlRun "rm -r $tmp" 0 "Remove tmp directory" rlRun "rm -r $chrootd" rlPhaseEnd rlJournalPrintText From 2d9487f5136737f794e5de4ad6581fc23f9256a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Fri, 14 Mar 2025 10:13:57 +0100 Subject: [PATCH 17/21] Update authors of the tests --- .../bz1063906-netstat-abort-with-A-inet/main.fmf | 1 + .../main.fmf | 1 + .../main.fmf | 1 + .../main.fmf | 1 + .../main.fmf | 1 + .../main.fmf | 1 + .../main.fmf | 1 + .../main.fmf | 1 + .../main.fmf | 1 + .../main.fmf | 1 + .../main.fmf | 1 + .../bz477876-ifconfig-allmulti-warning/main.fmf | 1 + .../main.fmf | 5 ++--- Regression/notrim-not-working-for-udp/main.fmf | 1 + .../main.fmf | 5 ++--- .../segmentation-fault-on-netstat-s/main.fmf | 1 + .../main.fmf | 1 + .../main.fmf | 1 + Sanity/hostname-s-not-dependent-on-DNS/main.fmf | 1 + .../main.fmf | 1 + Sanity/init-scripts-LSB/main.fmf | 16 ++++++---------- Sanity/netstat-notrim-option/main.fmf | 1 + Sanity/sanity-test/main.fmf | 1 + 23 files changed, 30 insertions(+), 16 deletions(-) diff --git a/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf b/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf index b607d9f..4540ee3 100644 --- a/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf +++ b/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf @@ -2,6 +2,7 @@ summary: Command "netstat -A inet" should not abnormally terminate if sctp modul has not been added to kernel. description: | Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1063906 +author: Leos Pol contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf index 8bc0e37..7eccf3d 100644 --- a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf +++ b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf @@ -2,6 +2,7 @@ summary: Test for BZ#1063913 (netstat doesn't list sctp servers in -A mode) description: | Bug summary: netstat doesn't list sctp servers in -A mode Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1063913 +author: Petr Sklenar contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf index 1528263..113c67e 100644 --- a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf +++ b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf @@ -2,6 +2,7 @@ summary: Test for BZ#1257549 (Netstat tool does not throw correct exit code on) description: | Bug summary: Netstat tool does not throw correct exit code on wrong parameter Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1257549 +author: Petr Sklenar contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf index 5b6a48c..94bcb45 100644 --- a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf +++ b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf @@ -2,6 +2,7 @@ summary: Test for BZ#1427889 (exit code on wrong parameter is zero for many) description: | Bug summary: exit code on wrong parameter is zero for many net-tools binaries Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1427889 +author: Petr Sklenar contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf index f765a64..886d477 100644 --- a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf +++ b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf @@ -4,6 +4,7 @@ description: | Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1538315 Test creates a new virtual interface with a 15 characters long name. Assigns an ipv4 address, runs netstat and checks for correct name. +author: Ondrej Mejzlik contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf index 0245065..d1a26e7 100644 --- a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf +++ b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf @@ -2,6 +2,7 @@ summary: Test for BZ#1568306 (netstat -i only shows 8 characters of Iface name) description: | Bug summary: netstat -i only shows 8 characters of Iface name Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1568306 +author: Ondrej Mejzlik contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf index c1b93e4..b282595 100644 --- a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf +++ b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf @@ -2,6 +2,7 @@ summary: Test for BZ#1632905 ([NOKIA] The output of `route -A inet6` does not) description: | Bug summary: [NOKIA] The output of `route -A inet6` does not display properly when the 'Use' column output is over 6 digits Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1632905 +author: Patrik Mosko contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf b/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf index c080499..c9118a5 100644 --- a/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf +++ b/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf @@ -1,5 +1,6 @@ summary: Test executes netstat with -i and checkes result. description: '' +author: Leos Pol contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf index 046ad0a..edea5a1 100644 --- a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf +++ b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf @@ -1,5 +1,6 @@ summary: This test checks netstat output while using interface parameter description: '' +author: Leos Pol contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf index 97c4e68..1bb104d 100644 --- a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf +++ b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf @@ -1,5 +1,6 @@ summary: Test add dummy interface and try to rename to long name description: '' +author: Leos Pol contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf index 1cfb200..6499857 100644 --- a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf +++ b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf @@ -2,6 +2,7 @@ summary: Test for BZ#234045 (missing '=' causes "netstat -I" and "netstat) description: | Bug summary: missing '=' causes "netstat -I" and "netstat --interfaces" to segfault Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=234045 +author: Alex Sersen contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz477876-ifconfig-allmulti-warning/main.fmf b/Regression/bz477876-ifconfig-allmulti-warning/main.fmf index 57652b8..047ab42 100644 --- a/Regression/bz477876-ifconfig-allmulti-warning/main.fmf +++ b/Regression/bz477876-ifconfig-allmulti-warning/main.fmf @@ -1,5 +1,6 @@ summary: Test for bz477876 ('ifconfig' shows unnecessary warning about ALLMULTI) description: '' +author: Karel Volny contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf b/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf index c1ba601..142f7e6 100644 --- a/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf +++ b/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf @@ -1,8 +1,7 @@ summary: Test for bz634539 (netstat -c has a memory leak) description: '' -contact: - - Frantisek Hrdina - - Patrik Mosko +author: Alex Sersen +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/notrim-not-working-for-udp/main.fmf b/Regression/notrim-not-working-for-udp/main.fmf index f86e89c..ff332cd 100644 --- a/Regression/notrim-not-working-for-udp/main.fmf +++ b/Regression/notrim-not-working-for-udp/main.fmf @@ -2,6 +2,7 @@ summary: Test for bz732983 (netstat truncates IPV6 UDP sockets even with) description: | Bug summary: netstat truncates IPV6 UDP sockets even with --notrim specifed Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=732983 +author: Ales Zelinka contact: Frantisek Hrdina component: - net-tools diff --git a/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf b/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf index 2df369e..b496603 100644 --- a/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf +++ b/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf @@ -5,9 +5,8 @@ description: | this didn't reproduce the bug. But it works as a nice sanity test for ip so I packaged it as test anyway -contact: - - Frantisek Hrdina - - mshi@redhat.com +author: Ales Zelinka +contact: Frantisek Hrdina component: - iproute - net-tools diff --git a/Regression/segmentation-fault-on-netstat-s/main.fmf b/Regression/segmentation-fault-on-netstat-s/main.fmf index 95d3f0e..441f6da 100644 --- a/Regression/segmentation-fault-on-netstat-s/main.fmf +++ b/Regression/segmentation-fault-on-netstat-s/main.fmf @@ -1,5 +1,6 @@ summary: Segmentation fault on netstat -s description: Segmentation fault (core dumped) on netstat -s +author: Frantisek Hrdina contact: Frantisek Hrdina component: - net-tools diff --git a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf index 416b2a3..2351c1d 100644 --- a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf +++ b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf @@ -1,6 +1,7 @@ summary: This test creates dummy interface and changes his name to something larger then 9 characters and checks if ifconfig displays this interface correctly. description: '' +author: Leos Pol contact: Frantisek Hrdina component: - net-tools diff --git a/Sanity/bz234045-netstat-segfault-with-missing/main.fmf b/Sanity/bz234045-netstat-segfault-with-missing/main.fmf index 33fd253..f1fba0c 100644 --- a/Sanity/bz234045-netstat-segfault-with-missing/main.fmf +++ b/Sanity/bz234045-netstat-segfault-with-missing/main.fmf @@ -1,5 +1,6 @@ summary: This test runs netstat with and w/o = description: '' +author: Leos Pol contact: Frantisek Hrdina component: - net-tools diff --git a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf index 970f18b..d50895d 100644 --- a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf +++ b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf @@ -2,6 +2,7 @@ summary: hostname -s should work even for hostnames that don't resolve via DNS description: | Bug summary: hostname -s gives hostname: Unknown host when the FQDN does not resolve Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=319981 +author: Ales Zelinka contact: Frantisek Hrdina component: - net-tools diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf index 4c13135..ca4824f 100644 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf @@ -15,6 +15,7 @@ adjust: - enabled: false when: distro < rhel-6 continue: false +author: Petr Sklenar contact: Frantisek Hrdina component: - net-tools diff --git a/Sanity/init-scripts-LSB/main.fmf b/Sanity/init-scripts-LSB/main.fmf index 3225ed2..1ce887c 100644 --- a/Sanity/init-scripts-LSB/main.fmf +++ b/Sanity/init-scripts-LSB/main.fmf @@ -1,13 +1,9 @@ -summary: init scripts must meet LSB specifications -description: |+ - Description: init scripts must meet LSB specifications - - Author: Milos Malik - Author: Miroslav Vadkerti - -contact: - - Frantisek Hrdina - - Patrik Mosko +summary: init-scripts-LSB +description: 'init scripts must meet LSB specifications' +author: + - Milos Malik + - Miroslav Vadkerti +contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/netstat-notrim-option/main.fmf b/Sanity/netstat-notrim-option/main.fmf index c1cfb1b..488ad50 100644 --- a/Sanity/netstat-notrim-option/main.fmf +++ b/Sanity/netstat-notrim-option/main.fmf @@ -2,6 +2,7 @@ summary: Test for bz732984 (netstat truncates IPV6 UDP sockets even with) description: | Bug summary: netstat truncates IPV6 UDP sockets even with --notrim specifed Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=732984 +author: Ales Zelinka contact: Frantisek Hrdina component: - net-tools diff --git a/Sanity/sanity-test/main.fmf b/Sanity/sanity-test/main.fmf index dfbb46d..626bd2f 100644 --- a/Sanity/sanity-test/main.fmf +++ b/Sanity/sanity-test/main.fmf @@ -5,6 +5,7 @@ description: |+ that on some architectures not all tests have to succeed, at the time the only know problem is ARP on s390/s390x archs, where no ARP protocol is used. +author: Jan Scotka contact: Frantisek Hrdina component: - net-tools From abcdcb121f2b9bfbb62351b3f94f5334fa164394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Thu, 27 Mar 2025 20:26:51 +0100 Subject: [PATCH 18/21] Keep QE contact only in root main.fmf --- Regression/bz1063906-netstat-abort-with-A-inet/main.fmf | 1 - .../main.fmf | 1 - .../main.fmf | 1 - .../main.fmf | 1 - .../main.fmf | 1 - .../main.fmf | 1 - .../main.fmf | 1 - .../bz177397-netstat-i-only-works-with-first-interface/main.fmf | 1 - .../main.fmf | 1 - .../bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf | 1 - .../bz234045-missing-causes-netstat-I-and-netstat/main.fmf | 1 - Regression/bz477876-ifconfig-allmulti-warning/main.fmf | 1 - Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf | 1 - Regression/notrim-not-working-for-udp/main.fmf | 1 - Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf | 1 - Regression/segmentation-fault-on-netstat-s/main.fmf | 1 - .../main.fmf | 1 - Sanity/bz234045-netstat-segfault-with-missing/main.fmf | 1 - Sanity/hostname-s-not-dependent-on-DNS/main.fmf | 1 - Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf | 1 - Sanity/init-scripts-LSB/main.fmf | 1 - Sanity/netstat-notrim-option/main.fmf | 1 - Sanity/sanity-test/main.fmf | 1 - 23 files changed, 23 deletions(-) diff --git a/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf b/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf index 4540ee3..4c9faf0 100644 --- a/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf +++ b/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf @@ -3,7 +3,6 @@ summary: Command "netstat -A inet" should not abnormally terminate if sctp modul description: | Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1063906 author: Leos Pol -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf index 7eccf3d..34250ca 100644 --- a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf +++ b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf @@ -3,7 +3,6 @@ description: | Bug summary: netstat doesn't list sctp servers in -A mode Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1063913 author: Petr Sklenar -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf index 113c67e..d3e7961 100644 --- a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf +++ b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf @@ -3,7 +3,6 @@ description: | Bug summary: Netstat tool does not throw correct exit code on wrong parameter Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1257549 author: Petr Sklenar -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf index 94bcb45..1bbd5b5 100644 --- a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf +++ b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf @@ -3,7 +3,6 @@ description: | Bug summary: exit code on wrong parameter is zero for many net-tools binaries Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1427889 author: Petr Sklenar -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf index 886d477..7962869 100644 --- a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf +++ b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf @@ -5,7 +5,6 @@ description: | Test creates a new virtual interface with a 15 characters long name. Assigns an ipv4 address, runs netstat and checks for correct name. author: Ondrej Mejzlik -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf index d1a26e7..a250202 100644 --- a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf +++ b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf @@ -3,7 +3,6 @@ description: | Bug summary: netstat -i only shows 8 characters of Iface name Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1568306 author: Ondrej Mejzlik -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf index b282595..7f80854 100644 --- a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf +++ b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf @@ -3,7 +3,6 @@ description: | Bug summary: [NOKIA] The output of `route -A inet6` does not display properly when the 'Use' column output is over 6 digits Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1632905 author: Patrik Mosko -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf b/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf index c9118a5..08e7bce 100644 --- a/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf +++ b/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf @@ -1,7 +1,6 @@ summary: Test executes netstat with -i and checkes result. description: '' author: Leos Pol -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf index edea5a1..ae97f37 100644 --- a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf +++ b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf @@ -1,7 +1,6 @@ summary: This test checks netstat output while using interface parameter description: '' author: Leos Pol -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf index 1bb104d..51553a2 100644 --- a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf +++ b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf @@ -1,7 +1,6 @@ summary: Test add dummy interface and try to rename to long name description: '' author: Leos Pol -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf index 6499857..26e455d 100644 --- a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf +++ b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf @@ -3,7 +3,6 @@ description: | Bug summary: missing '=' causes "netstat -I" and "netstat --interfaces" to segfault Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=234045 author: Alex Sersen -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz477876-ifconfig-allmulti-warning/main.fmf b/Regression/bz477876-ifconfig-allmulti-warning/main.fmf index 047ab42..730b93b 100644 --- a/Regression/bz477876-ifconfig-allmulti-warning/main.fmf +++ b/Regression/bz477876-ifconfig-allmulti-warning/main.fmf @@ -1,7 +1,6 @@ summary: Test for bz477876 ('ifconfig' shows unnecessary warning about ALLMULTI) description: '' author: Karel Volny -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf b/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf index 142f7e6..ac906bd 100644 --- a/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf +++ b/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf @@ -1,7 +1,6 @@ summary: Test for bz634539 (netstat -c has a memory leak) description: '' author: Alex Sersen -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/notrim-not-working-for-udp/main.fmf b/Regression/notrim-not-working-for-udp/main.fmf index ff332cd..ab6f843 100644 --- a/Regression/notrim-not-working-for-udp/main.fmf +++ b/Regression/notrim-not-working-for-udp/main.fmf @@ -3,7 +3,6 @@ description: | Bug summary: netstat truncates IPV6 UDP sockets even with --notrim specifed Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=732983 author: Ales Zelinka -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf b/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf index b496603..1dee0d8 100644 --- a/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf +++ b/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf @@ -6,7 +6,6 @@ description: | this didn't reproduce the bug. But it works as a nice sanity test for ip so I packaged it as test anyway author: Ales Zelinka -contact: Frantisek Hrdina component: - iproute - net-tools diff --git a/Regression/segmentation-fault-on-netstat-s/main.fmf b/Regression/segmentation-fault-on-netstat-s/main.fmf index 441f6da..5fda678 100644 --- a/Regression/segmentation-fault-on-netstat-s/main.fmf +++ b/Regression/segmentation-fault-on-netstat-s/main.fmf @@ -1,7 +1,6 @@ summary: Segmentation fault on netstat -s description: Segmentation fault (core dumped) on netstat -s author: Frantisek Hrdina -contact: Frantisek Hrdina component: - net-tools test: ./test.sh diff --git a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf index 2351c1d..f44426e 100644 --- a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf +++ b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf @@ -2,7 +2,6 @@ summary: This test creates dummy interface and changes his name to something lar then 9 characters and checks if ifconfig displays this interface correctly. description: '' author: Leos Pol -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/bz234045-netstat-segfault-with-missing/main.fmf b/Sanity/bz234045-netstat-segfault-with-missing/main.fmf index f1fba0c..11a0fb1 100644 --- a/Sanity/bz234045-netstat-segfault-with-missing/main.fmf +++ b/Sanity/bz234045-netstat-segfault-with-missing/main.fmf @@ -1,7 +1,6 @@ summary: This test runs netstat with and w/o = description: '' author: Leos Pol -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf index d50895d..c1e10b9 100644 --- a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf +++ b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf @@ -3,7 +3,6 @@ description: | Bug summary: hostname -s gives hostname: Unknown host when the FQDN does not resolve Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=319981 author: Ales Zelinka -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf index ca4824f..79f4742 100644 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf +++ b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf @@ -16,7 +16,6 @@ adjust: when: distro < rhel-6 continue: false author: Petr Sklenar -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/init-scripts-LSB/main.fmf b/Sanity/init-scripts-LSB/main.fmf index 1ce887c..60668ba 100644 --- a/Sanity/init-scripts-LSB/main.fmf +++ b/Sanity/init-scripts-LSB/main.fmf @@ -3,7 +3,6 @@ description: 'init scripts must meet LSB specifications' author: - Milos Malik - Miroslav Vadkerti -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/netstat-notrim-option/main.fmf b/Sanity/netstat-notrim-option/main.fmf index 488ad50..643c340 100644 --- a/Sanity/netstat-notrim-option/main.fmf +++ b/Sanity/netstat-notrim-option/main.fmf @@ -3,7 +3,6 @@ description: | Bug summary: netstat truncates IPV6 UDP sockets even with --notrim specifed Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=732984 author: Ales Zelinka -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh diff --git a/Sanity/sanity-test/main.fmf b/Sanity/sanity-test/main.fmf index 626bd2f..128cce9 100644 --- a/Sanity/sanity-test/main.fmf +++ b/Sanity/sanity-test/main.fmf @@ -6,7 +6,6 @@ description: |+ only know problem is ARP on s390/s390x archs, where no ARP protocol is used. author: Jan Scotka -contact: Frantisek Hrdina component: - net-tools test: ./runtest.sh From 419cb0c008b3b38f494b16221fc3f6b0bb9c86b8 Mon Sep 17 00:00:00 2001 From: Ondrej Mejzlik Date: Mon, 21 Jul 2025 11:20:42 +0200 Subject: [PATCH 19/21] Update test location --- COMMITMENT | 46 --- LICENSE | 339 ------------------ README.md | 4 +- .../main.fmf | 27 -- .../runtest.sh | 65 ---- .../main.fmf | 30 -- .../runtest.sh | 67 ---- .../main.fmf | 28 -- .../runtest.sh | 43 --- .../main.fmf | 26 -- .../runtest.sh | 51 --- .../main.fmf | 31 -- .../runtest.sh | 57 --- .../main.fmf | 28 -- .../runtest.sh | 57 --- .../main.fmf | 35 -- .../runtest.sh | 123 ------- .../main.fmf | 20 -- .../runtest.sh | 48 --- .../main.fmf | 29 -- .../runtest.sh | 76 ---- .../main.fmf | 20 -- .../runtest.sh | 76 ---- .../main.fmf | 22 -- .../runtest.sh | 48 --- .../main.fmf | 21 -- .../runtest.sh | 80 ----- .../main.fmf | 23 -- .../runtest.sh | 61 ---- .../notrim-not-working-for-udp/main.fmf | 30 -- .../notrim-not-working-for-udp/runtest.sh | 73 ---- .../main.fmf | 25 -- .../runtest.sh | 59 --- .../segmentation-fault-on-netstat-s/main.fmf | 22 -- .../segmentation-fault-on-netstat-s/test.sh | 21 -- .../main.fmf | 21 -- .../runtest.sh | 75 ---- .../main.fmf | 20 -- .../runtest.sh | 46 --- .../hostname-s-not-dependent-on-DNS/main.fmf | 26 -- .../runtest.sh | 51 --- .../data | 6 - .../ifconfig-inaccurately-rounds-exabytes/dev | 3 - .../main.fmf | 29 -- .../runtest.sh | 74 ---- Sanity/init-scripts-LSB/main.fmf | 28 -- Sanity/init-scripts-LSB/runtest.sh | 101 ------ Sanity/netstat-notrim-option/main.fmf | 25 -- Sanity/netstat-notrim-option/runtest.sh | 66 ---- Sanity/sanity-test/main.fmf | 36 -- Sanity/sanity-test/runtest.sh | 222 ------------ main.fmf | 5 - plans/all.fmf | 5 - plans/others.fmf | 20 -- plans/tier1.fmf | 20 -- plans/tier2-tier3.fmf | 20 -- 56 files changed, 1 insertion(+), 2709 deletions(-) delete mode 100644 COMMITMENT delete mode 100644 LICENSE delete mode 100644 Regression/bz1063906-netstat-abort-with-A-inet/main.fmf delete mode 100755 Regression/bz1063906-netstat-abort-with-A-inet/runtest.sh delete mode 100644 Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf delete mode 100755 Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/runtest.sh delete mode 100644 Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf delete mode 100755 Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/runtest.sh delete mode 100644 Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf delete mode 100755 Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/runtest.sh delete mode 100644 Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf delete mode 100755 Regression/bz1538315-netstat-agn-only-shows-10-character-interface/runtest.sh delete mode 100644 Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf delete mode 100755 Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/runtest.sh delete mode 100644 Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf delete mode 100755 Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh delete mode 100644 Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf delete mode 100755 Regression/bz177397-netstat-i-only-works-with-first-interface/runtest.sh delete mode 100644 Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf delete mode 100755 Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/runtest.sh delete mode 100644 Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf delete mode 100755 Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/runtest.sh delete mode 100644 Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf delete mode 100755 Regression/bz234045-missing-causes-netstat-I-and-netstat/runtest.sh delete mode 100644 Regression/bz477876-ifconfig-allmulti-warning/main.fmf delete mode 100755 Regression/bz477876-ifconfig-allmulti-warning/runtest.sh delete mode 100644 Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf delete mode 100755 Regression/bz634539-netstat-c-has-a-memory-leak/runtest.sh delete mode 100644 Regression/notrim-not-working-for-udp/main.fmf delete mode 100755 Regression/notrim-not-working-for-udp/runtest.sh delete mode 100644 Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf delete mode 100755 Regression/segfault-on-broken-proc_net_ipv6_route/runtest.sh delete mode 100644 Regression/segmentation-fault-on-netstat-s/main.fmf delete mode 100755 Regression/segmentation-fault-on-netstat-s/test.sh delete mode 100644 Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf delete mode 100755 Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/runtest.sh delete mode 100644 Sanity/bz234045-netstat-segfault-with-missing/main.fmf delete mode 100755 Sanity/bz234045-netstat-segfault-with-missing/runtest.sh delete mode 100644 Sanity/hostname-s-not-dependent-on-DNS/main.fmf delete mode 100755 Sanity/hostname-s-not-dependent-on-DNS/runtest.sh delete mode 100644 Sanity/ifconfig-inaccurately-rounds-exabytes/data delete mode 100644 Sanity/ifconfig-inaccurately-rounds-exabytes/dev delete mode 100644 Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf delete mode 100755 Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh delete mode 100644 Sanity/init-scripts-LSB/main.fmf delete mode 100755 Sanity/init-scripts-LSB/runtest.sh delete mode 100644 Sanity/netstat-notrim-option/main.fmf delete mode 100755 Sanity/netstat-notrim-option/runtest.sh delete mode 100644 Sanity/sanity-test/main.fmf delete mode 100755 Sanity/sanity-test/runtest.sh delete mode 100644 main.fmf delete mode 100644 plans/all.fmf delete mode 100644 plans/others.fmf delete mode 100644 plans/tier1.fmf delete mode 100644 plans/tier2-tier3.fmf diff --git a/COMMITMENT b/COMMITMENT deleted file mode 100644 index a687e0d..0000000 --- a/COMMITMENT +++ /dev/null @@ -1,46 +0,0 @@ -GPL Cooperation Commitment -Version 1.0 - -Before filing or continuing to prosecute any legal proceeding or claim -(other than a Defensive Action) arising from termination of a Covered -License, we commit to extend to the person or entity ('you') accused -of violating the Covered License the following provisions regarding -cure and reinstatement, taken from GPL version 3. As used here, the -term 'this License' refers to the specific Covered License being -enforced. - - However, if you cease all violation of this License, then your - license from a particular copyright holder is reinstated (a) - provisionally, unless and until the copyright holder explicitly - and finally terminates your license, and (b) permanently, if the - copyright holder fails to notify you of the violation by some - reasonable means prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is - reinstated permanently if the copyright holder notifies you of the - violation by some reasonable means, this is the first time you - have received notice of violation of this License (for any work) - from that copyright holder, and you cure the violation prior to 30 - days after your receipt of the notice. - -We intend this Commitment to be irrevocable, and binding and -enforceable against us and assignees of or successors to our -copyrights. - -Definitions - -'Covered License' means the GNU General Public License, version 2 -(GPLv2), the GNU Lesser General Public License, version 2.1 -(LGPLv2.1), or the GNU Library General Public License, version 2 -(LGPLv2), all as published by the Free Software Foundation. - -'Defensive Action' means a legal proceeding or claim that We bring -against you in response to a prior proceeding or claim initiated by -you or your affiliate. - -'We' means each contributor to this repository as of the date of -inclusion of this file, including subsidiaries of a corporate -contributor. - -This work is available under a Creative Commons Attribution-ShareAlike -4.0 International license (https://creativecommons.org/licenses/by-sa/4.0/). diff --git a/LICENSE b/LICENSE deleted file mode 100644 index d159169..0000000 --- a/LICENSE +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - 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, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/README.md b/README.md index 808a6b6..7e84d94 100644 --- a/README.md +++ b/README.md @@ -1,3 +1 @@ -# net-tools - -Repository for net-tools CI tests \ No newline at end of file +Public test have been moved to: https://gitlab.com/redhat/centos-stream/tests/ diff --git a/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf b/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf deleted file mode 100644 index 4c9faf0..0000000 --- a/Regression/bz1063906-netstat-abort-with-A-inet/main.fmf +++ /dev/null @@ -1,27 +0,0 @@ -summary: Command "netstat -A inet" should not abnormally terminate if sctp module - has not been added to kernel. -description: | - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1063906 -author: Leos Pol -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools - - kmod -duration: 5m -enabled: true -tag: - - Tier2 -tier: '2' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1063906 -adjust: - - enabled: false - when: distro < rhel-6 - continue: false -extra-nitrate: TC#0340654 -extra-summary: /CoreOS/net-tools/Regression/bz1063906-netstat-abort-with-A-inet -extra-task: /CoreOS/net-tools/Regression/bz1063906-netstat-abort-with-A-inet -id: b1938694-a230-457d-b6e1-2359aeca08ed diff --git a/Regression/bz1063906-netstat-abort-with-A-inet/runtest.sh b/Regression/bz1063906-netstat-abort-with-A-inet/runtest.sh deleted file mode 100755 index 8d15cd8..0000000 --- a/Regression/bz1063906-netstat-abort-with-A-inet/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 /CoreOS/net-tools/Regression/bz1063906-netstat-abort-with-A-inet -# Description: Command "netstat -A inet" should not abnormally terminate if sctp module has not been added to kernel. -# Author: Leos Pol -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" -INIT_REBOOTS="/var/tmp/local_reboots_count" -if [ ! -f $INIT_REBOOTS ]; then - touch $INIT_REBOOTS - echo "${REBOOTCOUNT:=0}" > $INIT_REBOOTS -fi - -rlJournalStart - if [ $REBOOTCOUNT -eq $(cat $INIT_REBOOTS) ]; then - rlPhaseStartSetup - rlAssertRpm $PACKAGE - (rlIsRHEL '>=7' || rlIsCentOS '>=7' || rlIsFedora) && rlAssertRpm kmod - rlPhaseEnd - - rlPhaseStartTest - rlLog "First reboot - necessary for making sure SCTP module isn't loaded (rhel7, rhel8, ...)" - rlLog "rebooting ..." - rlPhaseEnd - - rhts-reboot - elif [ $REBOOTCOUNT -gt $(cat $INIT_REBOOTS) ]; then - rlPhaseStartTest - # this should be loaded for the fisrt time, sctp shouldn't be there by default (rhel7, rhel8, ...) - rlRun "lsmod|grep ^sctp" 1 - rlRun "netstat -an -A inet" 0 "netstat works without sctp loaded" - rlRun "netstat -an -A inet6" 0 "netstat (inet6) works without sctp loaded" - rlPhaseEnd - - rlPhaseStartCleanup "after reboot, clean up only" - rlRun "rm -f $ISREBOOTED" - rlPhaseEnd - fi - -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf deleted file mode 100644 index 34250ca..0000000 --- a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/main.fmf +++ /dev/null @@ -1,30 +0,0 @@ -summary: Test for BZ#1063913 (netstat doesn't list sctp servers in -A mode) -description: | - Bug summary: netstat doesn't list sctp servers in -A mode - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1063913 -author: Petr Sklenar -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools - - lksctp-tools - - kernel-modules-extra -duration: 5m -enabled: true -tag: - - Tier2 -tier: '2' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1063913 -adjust: - - enabled: false - when: distro < rhel-6 - continue: false -extra-nitrate: TC#0547814 -extra-summary: - /CoreOS/net-tools/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode -extra-task: - /CoreOS/net-tools/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode -id: 3fef603d-c90b-414a-a8ac-3f9c376647e0 diff --git a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/runtest.sh b/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/runtest.sh deleted file mode 100755 index 0e53aa5..0000000 --- a/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode/runtest.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Regression/bz1063913-netstat-doesn-t-list-sctp-servers-in-A-mode -# Description: Test for BZ#1063913 (netstat doesn't list sctp servers in -A mode) -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2017 Red Hat, Inc. -# -# This program is free software: you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation, either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="net-tools" -ISREBOOTED=/var/tmp/xasddsdfsddddasssa - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - echo "Reboot count: $REBOOTCOUNT" - rlPhaseEnd - - if [ $REBOOTCOUNT -eq 0 ] || ! [ -e $ISREBOOTED ]; - then - rlPhaseStartTest - # this should be loaded for the fisrt time, sctp shouldn't be there by default - rlRun "modprobe sctp --first-time" - sctp_darn -H 0 -P 2500 -l & APP_PID=$! - rlAssert0 "sctp_darn ..." $? - sleep 1 - rlRun "netstat -nl | grep 2500" - rlRun "netstat -nl -A inet,inet6 | grep 2500" - rlRun "touch $ISREBOOTED" - rlPhaseEnd - rhts-reboot - else - - rlPhaseStartTest - rlLog "after reboot, clean up only" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "/bin/rm -f $ISREBOOTED" - #rhel7 kernel defaults are without this module, remove following check if its trouble: - rlRun "lsmod|grep ^sctp" 1 - rlPhaseEnd - fi - -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf deleted file mode 100644 index d3e7961..0000000 --- a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: Test for BZ#1257549 (Netstat tool does not throw correct exit code on) -description: | - Bug summary: Netstat tool does not throw correct exit code on wrong parameter - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1257549 -author: Petr Sklenar -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1257549 -adjust: - - enabled: false - when: distro < rhel-6 - continue: false -extra-nitrate: TC#0547812 -extra-summary: - /CoreOS/net-tools/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on -extra-task: - /CoreOS/net-tools/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on -id: 3bf9f1dd-7e1d-499e-ada0-43307a42698b diff --git a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/runtest.sh b/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/runtest.sh deleted file mode 100755 index fea92b9..0000000 --- a/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on/runtest.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Regression/bz1257549-Netstat-tool-does-not-throw-correct-exit-code-on -# Description: Test for BZ#1257549 (Netstat tool does not throw correct exit code on) -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2017 Red Hat, Inc. -# -# This program is free software: you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation, either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="net-tools" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlPhaseEnd - - rlPhaseStartTest "Error code shouldn't be ZERO" - rlRun "netstat --asd" '1-255' - rlPhaseEnd - -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf deleted file mode 100644 index 1bbd5b5..0000000 --- a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/main.fmf +++ /dev/null @@ -1,26 +0,0 @@ -summary: Test for BZ#1427889 (exit code on wrong parameter is zero for many) -description: | - Bug summary: exit code on wrong parameter is zero for many net-tools binaries - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1427889 -author: Petr Sklenar -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1427889 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1670355 -adjust: - - enabled: false - when: distro < rhel-7 - continue: false -extra-nitrate: TC#0549774 -extra-summary: - /CoreOS/net-tools/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many -extra-task: - /CoreOS/net-tools/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many -id: 7c4802eb-4c92-48c3-b149-b93fd361a5d5 diff --git a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/runtest.sh b/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/runtest.sh deleted file mode 100755 index bbea672..0000000 --- a/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many/runtest.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Regression/bz1427889-exit-code-on-wrong-parameter-is-zero-for-many -# Description: Test for BZ#1427889 (exit code on wrong parameter is zero for many) -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2017 Red Hat, Inc. -# -# This program is free software: you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation, either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="net-tools" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlPhaseEnd - - rlPhaseStartTest - log=$(mktemp) - for bin in $(rpm -ql net-tools | grep bin);do - for option in wrongoption --wrongoption;do - rlRun "timeout 10 $bin $option &> $log" '1-255' - done - done - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "rm -r $log" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf deleted file mode 100644 index 7962869..0000000 --- a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/main.fmf +++ /dev/null @@ -1,31 +0,0 @@ -summary: Test for BZ#1538315 (netstat -agn only shows 10 character interface) -description: | - Bug summary: netstat -agn only shows 10 character interface name for IPv4 addressing - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1538315 - Test creates a new virtual interface with a 15 characters long name. - Assigns an ipv4 address, runs netstat and checks for correct name. -author: Ondrej Mejzlik -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1538315 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1584233 -adjust: - - enabled: false - when: distro < rhel-7 - continue: false -extra-nitrate: TC#0570169 -extra-summary: - /CoreOS/net-tools/Regression/bz1538315-netstat-agn-only-shows-10-character-interface -extra-task: - /CoreOS/net-tools/Regression/bz1538315-netstat-agn-only-shows-10-character-interface -id: 1145cf51-5957-4dc5-b5bd-c857d86618d9 diff --git a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/runtest.sh b/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/runtest.sh deleted file mode 100755 index c174bd0..0000000 --- a/Regression/bz1538315-netstat-agn-only-shows-10-character-interface/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/net-tools/Regression/bz1538315-netstat-agn-only-shows-10-character-interface -# Description: Test for BZ#1538315 (netstat -agn only shows 10 character interface) -# Author: Ondrej Mejzlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" -IFACE="osmznaku9112345" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - # Create new network interface with a long name and assign ipv4 address - rlRun "ip tuntap add mode tap $IFACE" 0 "Creating network interface $IFACE" - rlRun "ifconfig $IFACE 192.168.15.15" 0 "Assigning 192.168.15.15 to $IFACE" - # Check that the correct name is displayed followed by an ipv4 address - rlRun "netstat -agn | grep -wE '$IFACE[[:space:]].*\b([0-9]{1,3}\.){3}[0-9]{1,3}\b'" 0 "Looking for correct name" - rlRun "netstat -agn | grep -w 'osmznaku91'" 1 "Incorrect name should not be found" - rlPhaseEnd - - rlPhaseStartCleanup - # Remove testing interface - rlRun "ip link delete $IFACE" 0 "Removing $IFACE" - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf deleted file mode 100644 index a250202..0000000 --- a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: Test for BZ#1568306 (netstat -i only shows 8 characters of Iface name) -description: | - Bug summary: netstat -i only shows 8 characters of Iface name - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1568306 -author: Ondrej Mejzlik -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1568306 -adjust: - - enabled: false - when: distro < rhel-7 - continue: false -extra-nitrate: TC#0570231 -extra-summary: - /CoreOS/net-tools/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name -extra-task: - /CoreOS/net-tools/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name -id: 8ddff5e4-6c50-4b14-8988-9a473d93af82 diff --git a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/runtest.sh b/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/runtest.sh deleted file mode 100755 index 883fcc9..0000000 --- a/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name/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/net-tools/Regression/bz1568306-netstat-i-only-shows-8-characters-of-Iface-name -# Description: Test for BZ#1568306 (netstat -i only shows 8 characters of Iface name) -# Author: Ondrej Mejzlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" -IFACE="osmznaku9112345" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE || rlDie "Package installation failed" - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - # Create new network interface with a long name and assign ipv4 address - rlRun "ip tuntap add mode tap $IFACE" 0 "Creating network interface $IFACE" - rlRun "ifconfig $IFACE 192.168.15.15" 0 "Assigning 192.168.15.15 to $IFACE" - # Check the correct output of netstat -i - rlRun "netstat -i | grep -w $IFACE" 0 "Looking for correct name in netstat -i" - rlRun "netstat -i | grep -w osmznaku" 1 "Wrong name no longer present" - rlPhaseEnd - - rlPhaseStartCleanup - # Remove testing interface - rlRun "ip link delete $IFACE" 0 "Removing $IFACE" - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf deleted file mode 100644 index 7f80854..0000000 --- a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/main.fmf +++ /dev/null @@ -1,35 +0,0 @@ -summary: Test for BZ#1632905 ([NOKIA] The output of `route -A inet6` does not) -description: | - Bug summary: [NOKIA] The output of `route -A inet6` does not display properly when the 'Use' column output is over 6 digits - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1632905 -author: Patrik Mosko -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools - - rpm-build - - dnf-plugins-core - - yum-utils - - gcc -duration: 60m -enabled: true -tag: - - Tier1 - - rhel8-buildroot - - rhel9-buildroot -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1632905 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1961792 -adjust: - - enabled: false - when: distro < rhel-7 - continue: false -extra-nitrate: TC#0602111 -extra-summary: - /CoreOS/net-tools/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not -extra-task: - /CoreOS/net-tools/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not -id: b30adc3b-bbea-44b7-a0ce-edd56fc10a36 diff --git a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh b/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh deleted file mode 100755 index 07dbfd2..0000000 --- a/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not/runtest.sh +++ /dev/null @@ -1,123 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Regression/bz1632905-NOKIA-The-output-of-route-A-inet6-does-not -# Description: Test for BZ#1632905 ([NOKIA] The output of `route -A inet6` does not) -# Author: Patrik Mosko -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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 - -PACKAGE="net-tools" -: ${STATIC_CHECK:="NO"} - -MAX_PING_TIMEOUT=2000 #kill after 2000 seconds and just hope route shows 6-digit number -PACKETS_CNT=100100 -PING_DOMAIN="www.redhat.com" - -# reconsider using `dig $HOSTNAME AAAA`; currently only A records exist for system hostnames - -rlJournalStart - ########## SETUP PHASE ########## - rlPhaseStartSetup - rlAssertRpm $PACKAGE - - # debug info: rhel-8 seems to have slihtly different output of `route` - rlIsRHEL && DEF_IFC=`ip -6 r s | grep default | cut -d " " -f 5 | head -1` - rlIsFedora && DEF_IFC=`ip -6 r s | grep nexthop | cut -d " " -f 5 | head -1` - ip -6 r s; echo "-----" - GLOBAL_IPv6=`ip -6 a l dev $DEF_IFC | grep scope\ global | sed 's/.* inet6 \s*\([^/]*\).*/\1/'` - ip -6 a l dev $DEF_IFC - - if [ "$STATIC_CHECK" = "NO" ]; then - rlRun -l "ip a s" 0 "DEBUG: show all interfaces + IP addresses" 0-255 - rlRun -l "sudo sysctl -a | grep disable_ipv6" 0 "DEBUG: check whether IPv6 is enabled on this system" 0-255 - if [ ! -n "$GLOBAL_IPv6" ]; then - GLOBAL_IPv6=`ip -6 a | grep 'inet6.*scope global' | grep -Ev 'inet6\s+f[cd]00' | sed 's/.* inet6 \s*\([^/]*\).*/\1/'` - if [ ! -n "$GLOBAL_IPv6" ]; then - rlLogInfo "No IPv6 found OR bad parsing of 'ip -6 a' present" - rlLogInfo "Fallthrough to simple Static Check" - STATIC_CHECK="YES" - fi - fi - fi - - # KERNEL version must be lower than 4.18, otherwise run static check on srpm - KERNEL_VER_X=`uname -r | cut -d'-' -f 1 | cut -d'.' -f 1` - KERNEL_VER_Y=`uname -r | cut -d'-' -f 1 | cut -d'.' -f 2` - rlLog "kernel: X - Y: ${KERNEL_VER_X} - ${KERNEL_VER_Y}" - if ([ ${KERNEL_VER_X} -eq 4 -a ${KERNEL_VER_Y} -ge 18 ]) || [ ${KERNEL_VER_X} -gt 4 ]; then - rlLogInfo "Your kernel version doesn't store info about \"Use counter\" in /proc/net/ipv6_route already" - rlLogInfo "This counter has hard-coded \"0\" value from kernel 4.18. Fallback to static check." - STATIC_CHECK="YES" - fi - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - - if [ "$STATIC_CHECK" = "NO" ]; then - ##################### TEST PHASE #################### - rlPhaseStartTest "run 'route -n -A inet6' after ping harassing the routing table" - set -m - rlRun "route -n -A inet6" - rlRun "sudo timeout $MAX_PING_TIMEOUT ping6 -c $PACKETS_CNT -I $DEF_IFC -i 0.0001 $PING_DOMAIN 2>&1 >/dev/null" 0,1 \ - "send at least 100000 packets to get 6-digit \"Use\" count in route -6 output to reproduce the bug" - rlRun "route -n -A inet6" - - # Check whether "Ref" column merged with "Use" (6 columns == presume they did) - ###rlRun "route -n -A inet6 | grep $GLOBAL_IPv6 | awk '{print NF}' > columns_cnt" - rlRun "route -n -A inet6 | awk 'NR > 2 {print NF}' > columns_cnt" - # lets assume every column will be filled (not great, not terrible) - for line in `cat columns_cnt`; do - rlAssertGrep 7 <(echo $line) - rlAssertNotGrep 6 <(echo $line) - done - rlPhaseEnd - else - ##################### TEST PHASE #################### - rlPhaseStartTest "Static check - look at specific printf function in lib/inet6_gr.c" - rlFetchSrcForInstalled $PACKAGE - if rlIsRHEL '<8'; then - rlRun "yum-builddep -y *src.rpm" - else - rlRun "dnf builddep -y --enablerepo=* *src.rpm" - fi - rlRun "rpm --define='_topdir $TmpDir' -Uvh *src.rpm" - rlRun "rpmbuild --define='_topdir $TmpDir' -bp SPECS/${PACKAGE}.spec" - - TARGET_SOURCE=`find ./BUILD -name inet6_gr.c` - rlLog "Checking file '$TARGET_SOURCE'" - # this space should be here v - rlAssertGrep 'printf("%-30s %-26s %-4s %-3d %-1d %6d' $(echo $TARGET_SOURCE) - rlPhaseEnd - fi - - ########## CLEANUP PHASE ########## - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf b/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf deleted file mode 100644 index 08e7bce..0000000 --- a/Regression/bz177397-netstat-i-only-works-with-first-interface/main.fmf +++ /dev/null @@ -1,20 +0,0 @@ -summary: Test executes netstat with -i and checkes result. -description: '' -author: Leos Pol -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=177397 -extra-nitrate: TC#0377377 -extra-summary: /CoreOS/net-tools/Regression/bz177397-netstat-i-only-works-with-first-interface -extra-task: /CoreOS/net-tools/Regression/bz177397-netstat-i-only-works-with-first-interface -id: 1377ef7f-6f46-42ca-bb0f-c4ef331255e1 diff --git a/Regression/bz177397-netstat-i-only-works-with-first-interface/runtest.sh b/Regression/bz177397-netstat-i-only-works-with-first-interface/runtest.sh deleted file mode 100755 index d85c000..0000000 --- a/Regression/bz177397-netstat-i-only-works-with-first-interface/runtest.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Regression/bz177397-netstat-i-only-works-with-first-interface -# Description: Test executes netstat with -i and checkes result. -# Author: Leos Pol -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - IFACES=`netstat -i | sed -n '/Iface/b;/Kernel/!s/^\([^ ]*\) .*/\1/p'` - rlPhaseEnd - - rlPhaseStartTest - rlAssertGreater "Number of ifaces should be > 1" `echo $IFACES | wc -w` 1 - for i in ${IFACES}; do - #s390x uses long interface names, thus it shorted to 8 characters by all 'ip tools' - rlRun "netstat -I$i | grep ^${i:0:8}" - done - rlPhaseEnd - -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf deleted file mode 100644 index ae97f37..0000000 --- a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/main.fmf +++ /dev/null @@ -1,29 +0,0 @@ -summary: This test checks netstat output while using interface parameter -description: '' -author: Leos Pol -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -tag: - - TIPfail_infra - - TIPpass - - Tier1 - - notier -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=196655 -adjust: - - enabled: false - when: arch != x86_64 - continue: false -extra-nitrate: TC#0361592 -extra-summary: - /CoreOS/net-tools/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged -extra-task: - /CoreOS/net-tools/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged -id: cf642cc8-ce44-4e17-a2bf-92e1cd124a15 diff --git a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/runtest.sh b/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/runtest.sh deleted file mode 100755 index 0db321a..0000000 --- a/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged/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 /CoreOS/net-tools/Regression/bz196655-netstat-when-using-interface-the-counter-remains-unchanged -# Description: This test checks netstat output while using interface parameter -# Author: Leos Pol -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" -SLEEPTIME=60 - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlIsRHEL '<6' && DEFAULT_IF=`route | grep default | awk '{print $8}' | head -1` - ( rlIsRHEL '>=6' || rlIsFedora || rlIsCentOS '>=6') && DEFAULT_IF=`ip r | grep default | awk '{print $5}' | head -1` - rlLog "default interface: $DEFAULT_IF" - rlPhaseEnd - - rlPhaseStartTest - rlLog "running: ping -c $SLEEPTIME www.redhat.com >/dev/null &" - ping -c $SLEEPTIME www.redhat.com >/dev/null & - - #netstat uses only first 8 characters of interface name, s390x often uses longer, so cut it: - rlLog "running: netstat -I $DEFAULT_IF 1 | grep ${DEFAULT_IF:0:8} > netstat.log &" - netstat -I$DEFAULT_IF 1 | grep ${DEFAULT_IF:0:8} >netstat.log & - NETSTAT_PROC=$! - - rlRun "sleep $SLEEPTIME" - rlWaitForCmd "kill -9 -- $NETSTAT_PROC" -p $NETSTAT_PROC -m 30 -r 1 - - # extract RX_OK and TX_OK columns from netstat's output - _RX_OK_COL='$3' _TX_OK_COL='$7' - rlIsRHEL 5 6 && { _RX_OK_COL='$4'; _TX_OK_COL='$8'; } - RXOK_FIRST=`head -1 netstat.log | awk "{print $_RX_OK_COL}"` - RXOK_LAST=` tail -2 netstat.log | head -1 | awk "{print $_RX_OK_COL}"` - TXOK_FIRST=`head -1 netstat.log | awk "{print $_TX_OK_COL}"` - TXOK_LAST=` tail -2 netstat.log | head -1 | awk "{print $_TX_OK_COL}"` - - - #debug - head -n100 netstat.log - echo ".......... WHY DO YOU READ IT?" - tail -n100 netstat.log - - rlAssertGreater "RX counter check" $RXOK_LAST $RXOK_FIRST - rlAssertGreater "TX counter check" $TXOK_LAST $TXOK_FIRST - rlPhaseEnd - - rlPhaseStartCleanup - rm -f netstat.log - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf deleted file mode 100644 index 51553a2..0000000 --- a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/main.fmf +++ /dev/null @@ -1,20 +0,0 @@ -summary: Test add dummy interface and try to rename to long name -description: '' -author: Leos Pol -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=209120 -extra-nitrate: TC#0362971 -extra-summary: /CoreOS/net-tools/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow -extra-task: /CoreOS/net-tools/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow -id: cae66d45-82c4-4bc4-a1c2-129cbea9a753 diff --git a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/runtest.sh b/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/runtest.sh deleted file mode 100755 index d766216..0000000 --- a/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow/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 /CoreOS/net-tools/Regression/bz209120-nameif-crashes-due-to-buffer-owerflow -# Description: Test add dummy interface and try to rename to long name -# Author: Leos Pol -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - lsmod | grep "^dummy" >/dev/null 2>&1 - if [ $? -gt 0 ]; then - if rlIsRHEL '<8'; then - rlRun "modprobe dummy" 0 "Modprobing dummy" - else - # should work also for older RHEL's, but branching anyway, JIC - rlRun "ip link add dummy0 type dummy" 0 "Modprobing dummy" - fi - else - ifconfig | grep dummy0 >/dev/null 2>&1 - if [ $? -eq 0 ]; then - DUMMY_UP=1 - rlRun "ifconfig dummy0 down" 0 "ifdown existing dummy interface" - fi - DUMMY_LOADED=1 - fi - if rlIsRHEL "<7"; then - HWADDR=`ifconfig dummy0 | sed -n '/HWaddr/s/^.*HWaddr \([^ ]*\).*/\1/p'` - else - HWADDR=`ifconfig dummy0 | sed -n '/ether/s/^.*ether \([^ ]*\).*/\1/p'` - fi - rlPhaseEnd - - rlPhaseStartTest - rlRun "nameif dummy01234567890 $HWADDR" 1 "Rename to 16 char long iface" - rlRun "nameif dummy0123456789 $HWADDR" 0 "Rename to 15 char long iface" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "nameif dummy0 $HWADDR" 0 "Rename back to dummy0" - if [ $DUMMY_LOADED ]; then - nameif dummy0 $HWADDR - if [ $DUMMY_UP ]; then - rlRun "ifconfig dummy0 up" 0 "ifup dummy interface" - fi - else - rlRun "rmmod dummy" 0 "Removing mod dummy" - fi - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf b/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf deleted file mode 100644 index 26e455d..0000000 --- a/Regression/bz234045-missing-causes-netstat-I-and-netstat/main.fmf +++ /dev/null @@ -1,22 +0,0 @@ -summary: Test for BZ#234045 (missing '=' causes "netstat -I" and "netstat) -description: | - Bug summary: missing '=' causes "netstat -I" and "netstat --interfaces" to segfault - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=234045 -author: Alex Sersen -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=234045 -extra-nitrate: TC#0174619 -extra-summary: /CoreOS/net-tools/Regression/bz234045-missing-causes-netstat-I-and-netstat -extra-task: /CoreOS/net-tools/Regression/bz234045-missing-causes-netstat-I-and-netstat -id: f0378c2d-b7d1-48c5-8aaf-74595794b67e diff --git a/Regression/bz234045-missing-causes-netstat-I-and-netstat/runtest.sh b/Regression/bz234045-missing-causes-netstat-I-and-netstat/runtest.sh deleted file mode 100755 index d2324d0..0000000 --- a/Regression/bz234045-missing-causes-netstat-I-and-netstat/runtest.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Regression/bz234045-missing-causes-netstat-I-and-netstat -# Description: Test for BZ#234045 (missing '=' causes "netstat -I" and "netstat) -# Author: Alex Sersen -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2012 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="net-tools" - -DEF_ETH=`ip route show | grep default | awk '{print $5}' | head -1` - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlPhaseEnd - - rlPhaseStartTest - rlRun "netstat -i" 0 - rlRun "netstat -I" 0 - rlRun "netstat --interfaces=$DEF_ETH" 0 - rlPhaseEnd -rlJournalPrintText -rlJournalEnd - diff --git a/Regression/bz477876-ifconfig-allmulti-warning/main.fmf b/Regression/bz477876-ifconfig-allmulti-warning/main.fmf deleted file mode 100644 index 730b93b..0000000 --- a/Regression/bz477876-ifconfig-allmulti-warning/main.fmf +++ /dev/null @@ -1,21 +0,0 @@ -summary: Test for bz477876 ('ifconfig' shows unnecessary warning about ALLMULTI) -description: '' -author: Karel Volny -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools - - gawk -duration: 10m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=477876 -extra-nitrate: TC#0046198 -extra-summary: /CoreOS/net-tools/Regression/bz477876-ifconfig-allmulti-warning -extra-task: /CoreOS/net-tools/Regression/bz477876-ifconfig-allmulti-warning -id: 409d4ea7-c940-498a-ac1e-1507411bc071 diff --git a/Regression/bz477876-ifconfig-allmulti-warning/runtest.sh b/Regression/bz477876-ifconfig-allmulti-warning/runtest.sh deleted file mode 100755 index 0d4fb24..0000000 --- a/Regression/bz477876-ifconfig-allmulti-warning/runtest.sh +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Regression/bz477876-ifconfig-allmulti-warning -# Description: Test for bz477876 ('ifconfig' shows unnecessary warning about ALLMULTI) -# Author: Karel Volny -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" -# once upon a time, each machine in RHTS had eth0 -# later on, it was possible to undo the name change and use the kernel provided 'eth0' name -# since Lennart's fanboys got the power to decide about how the distro works, we have "predictable interface names" that are totally unpredictable -# so let's resort to some ugly hack - let's assume that every Beaker machine routes through wired ethernet by default -iface=`ip route show | grep default | awk '{print $5}' | head -1` - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlRun "ifconfig ${iface} > ${iface}.txt" 0 "Checking '${iface}' configuration" - # DEBUG - cat ${iface}.txt - rlPhaseEnd - - rlPhaseStartTest - # note that the bug is in checking wrong flag, MULTICAST, instead of ALLMULTI - # so we must make sure MULTICAST is on (should be on by default, but ...) - rlRun "ifconfig ${iface} multicast" 0 "Turning on MULTICAST for ${iface}" - rlRun "ifconfig ${iface} | grep MULTICAST" 0 "Checking if MULTICAST is on on ${iface}" - rlRun "ifconfig ${iface} allmulti" 0 "Turning on ALLMULTI for ${iface}" - rlRun "ifconfig ${iface} | grep ALLMULTI" 0 "Checking if ALLMULTI is on on ${iface}" - # DEBUG - ifconfig ${iface} - rlRun "ifconfig ${iface} -allmulti &> output" 0 "Turning ALLMULTI off for ${iface}" - # DEBUG - cat output - rlLog "The output should not contain 'Warning: Interface ${iface} still in ALLMULTI mode.'" - rlAssertNotGrep "Warning" output -i - rlAssertNotGrep "ALLMULTI" output - rlPhaseEnd - - rlPhaseStartCleanup - # turn MULTICAST off, if it was off before the test - rlRun "if ! grep MULTICAST ${iface}.txt ; then ifconfig ${iface} -multicast ; fi" 0 "Restoring MULTICAST state" - # turn ALLMULTI on, if it was on before the test - rlRun "if grep ALLMULTI ${iface}.txt ; then ifconfig ${iface} allmulti ; fi" 0 "Restoring ALLMULTI state" - # DEBUG - echo "Original '${iface}' state:" - cat "${iface}.txt" - echo "Current '${iface}' state:" - ifconfig ${iface} - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf b/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf deleted file mode 100644 index ac906bd..0000000 --- a/Regression/bz634539-netstat-c-has-a-memory-leak/main.fmf +++ /dev/null @@ -1,23 +0,0 @@ -summary: Test for bz634539 (netstat -c has a memory leak) -description: '' -author: Alex Sersen -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools - - valgrind -duration: 5m -enabled: false -tag: - - Tier3 -tier: '3' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=634539 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=750272 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=81467 -extra-nitrate: TC#0081467 -extra-summary: /CoreOS/net-tools/Regression/bz634539-netstat-c-has-a-memory-leak -extra-task: /CoreOS/net-tools/Regression/bz634539-netstat-c-has-a-memory-leak -id: 0bd15876-09c6-4614-893b-7c80907571eb diff --git a/Regression/bz634539-netstat-c-has-a-memory-leak/runtest.sh b/Regression/bz634539-netstat-c-has-a-memory-leak/runtest.sh deleted file mode 100755 index a7915a9..0000000 --- a/Regression/bz634539-netstat-c-has-a-memory-leak/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/net-tools/Regression/bz634539-netstat-c-has-a-memory-leak -# Description: Test for bz634539 (netstat -c has a memory leak) -# Author: Alex Sersen -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="net-tools" -ARCH=`uname -p` - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlAssertRpm valgrind - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "valgrind -v --leak-check=full --show-reachable=yes &>log netstat -c &" 0 "Logging valgrind.." - rlRun "sleep 5 && kill -15 `pidof valgrind`" 0 "Killing valgrind.." - rlRun "sleep 1" - cat ./log - if [ $ARCH = "x86_64" -o $ARCH = "ppc64" -o $ARCH = "s390x" ]; then - rlAssertGrep "definitely lost: 1,224 bytes in 51 blocks" "./log" - else - rlAssertGrep "definitely lost: 612 bytes in 51 blocks" "./log" - rlAssertGrep "ERROR SUMMARY: 1 errors from 1 contexts" "./log" - fi - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/notrim-not-working-for-udp/main.fmf b/Regression/notrim-not-working-for-udp/main.fmf deleted file mode 100644 index ab6f843..0000000 --- a/Regression/notrim-not-working-for-udp/main.fmf +++ /dev/null @@ -1,30 +0,0 @@ -summary: Test for bz732983 (netstat truncates IPV6 UDP sockets even with) -description: | - Bug summary: netstat truncates IPV6 UDP sockets even with --notrim specifed - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=732983 -author: Ales Zelinka -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools - - iproute - - nc - - nmap-ncat - - psmisc -duration: 10m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=732983 -adjust: - - enabled: false - when: arch == s390x - continue: false -extra-nitrate: TC#0128718 -extra-summary: /CoreOS/net-tools/Regression/notrim-not-working-for-udp -extra-task: /CoreOS/net-tools/Regression/notrim-not-working-for-udp -id: cf983c6d-55dc-4406-b554-842c77fe4205 diff --git a/Regression/notrim-not-working-for-udp/runtest.sh b/Regression/notrim-not-working-for-udp/runtest.sh deleted file mode 100755 index f79e2a5..0000000 --- a/Regression/notrim-not-working-for-udp/runtest.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Regression/notrim-not-working-for-udp -# Description: Test for bz732983 (netstat truncates IPV6 UDP sockets even with) -# Author: Ales Zelinka -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" - -rlJournalStart -rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlAssertRpm iproute - if rlIsRHEL '<7'; then - rlAssertRpm nc - else - rlAssertRpm nmap-ncat - fi - DEFAULT_IFACE=`ip r |grep default |cut -d " " -f 5` - rlLog "default route interface: $DEFAULT_IFACE" - rlRun "ip a a 1234:1234:1234:1234:1234:124:1234:1234/128 dev $DEFAULT_IFACE" 0 "add new ipv6 addr to $DEFAULT_IFACE" - sleep 5 - - rlLog "starting listening on both tcp and udp on the new address" - nc -l6 1234:1234:1234:1234:1234:124:1234:1234 1111 & - nc -l6u 1234:1234:1234:1234:1234:124:1234:1234 1111 & - - #debug - rlRun "ip a s" - rlRun "ss -tulen" -rlPhaseEnd - -rlPhaseStartTest - if rlIsRHEL '<7'; then - NOTRIM="T"; - else - NOTRIM="W"; - fi - netstat -A inet6 -an${NOTRIM} - rlRun "netstat -A inet6 -an${NOTRIM}|grep '^tcp.*1234:1234:1234:1234:1234:124:1234:1234:1111'" 0 "tcp line untrimmed" - rlRun "netstat -A inet6 -an${NOTRIM}|grep '^udp.*1234:1234:1234:1234:1234:124:1234:1234:1111'" 0 "udp line untrimmed" -rlPhaseEnd - -rlPhaseStartCleanup - rlRun "killall nc" 0 " killing all our listening nc's (and maybe few other as well)" - rlRun "ip a d 1234:1234:1234:1234:1234:124:1234:1234/128 dev $DEFAULT_IFACE" 0 "removing ipv6 addr from $DEFAULT_IFACE" -rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf b/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf deleted file mode 100644 index 1dee0d8..0000000 --- a/Regression/segfault-on-broken-proc_net_ipv6_route/main.fmf +++ /dev/null @@ -1,25 +0,0 @@ -summary: Test for bz668047 (/proc/net/ipv6_route broken, causes netstat to) -description: | - Bug summary: /proc/net/ipv6_route broken, causes netstat to segfault - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=668047 - - this didn't reproduce the bug. But it works as a nice sanity test for ip - so I packaged it as test anyway -author: Ales Zelinka -component: - - iproute - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools - - iproute -duration: 10m -enabled: true -tag: - - Tier2 -tier: '2' -extra-nitrate: TC#0128717 -extra-summary: /CoreOS/net-tools/Regression/segfault-on-broken-proc_net_ipv6_route -extra-task: /CoreOS/net-tools/Regression/segfault-on-broken-proc_net_ipv6_route -id: 5d97d2bb-82d7-41a6-8851-5237a090a548 diff --git a/Regression/segfault-on-broken-proc_net_ipv6_route/runtest.sh b/Regression/segfault-on-broken-proc_net_ipv6_route/runtest.sh deleted file mode 100755 index 9263a71..0000000 --- a/Regression/segfault-on-broken-proc_net_ipv6_route/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 /CoreOS/net-tools/Regression/segfault-on-broken-proc_net_ipv6_route -# Description: Test for bz668047 (/proc/net/ipv6_route broken, causes netstat to) -# Author: Ales Zelinka -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" - -rlJournalStart -rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlAssertRpm iproute - DEFAULT_IFACE=`ip r |grep default |cut -d " " -f 5 | head -1` - rlLog "default route interface: $DEFAULT_IFACE" - for n in $(seq 1 15); do - x=$(printf "%x" $n) - rlRun "ip tunnel add test-tunnel-$n mode sit local 172.16.0.$n remote 172.16.1.$n dev $DEFAULT_IFACE" - rlRun "ip link set test-tunnel-$n up" - rlRun "ip route add 200$x::/64 dev test-tunnel-$n" - done -rlPhaseEnd - -rlPhaseStartTest - rlRun "netstat -nr -A inet6" 0 "netstat -nr -A inet6 didn't segfault" -rlPhaseEnd - -rlPhaseStartCleanup - for n in $(seq 1 15); do - x=$(printf "%x" $n) - rlRun "ip tunnel del test-tunnel-$n" - done -rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/segmentation-fault-on-netstat-s/main.fmf b/Regression/segmentation-fault-on-netstat-s/main.fmf deleted file mode 100644 index 5fda678..0000000 --- a/Regression/segmentation-fault-on-netstat-s/main.fmf +++ /dev/null @@ -1,22 +0,0 @@ -summary: Segmentation fault on netstat -s -description: Segmentation fault (core dumped) on netstat -s -author: Frantisek Hrdina -component: - - net-tools -test: ./test.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - verifies: https://issues.redhat.com/browse/RHEL-40958 -adjust: - - enabled: false - when: distro < rhel-7 - continue: false -extra-nitrate: TC#0617568 -id: 435632b3-efdb-45e6-870a-1b278a54973d diff --git a/Regression/segmentation-fault-on-netstat-s/test.sh b/Regression/segmentation-fault-on-netstat-s/test.sh deleted file mode 100755 index 488fd42..0000000 --- a/Regression/segmentation-fault-on-netstat-s/test.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm net-tools - rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory" - rlRun "pushd $tmp" - rlPhaseEnd - - rlPhaseStartTest - rlRun "netstat -s" - rlRun "dmesg | grep netstat | grep segfault" 1 "Checking if netstat segfault not occurred" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $tmp" 0 "Remove tmp directory" - rlPhaseEnd -rlJournalEnd diff --git a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf deleted file mode 100644 index f44426e..0000000 --- a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/main.fmf +++ /dev/null @@ -1,21 +0,0 @@ -summary: This test creates dummy interface and changes his name to something larger - then 9 characters and checks if ifconfig displays this interface correctly. -description: '' -author: Leos Pol -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -tag: - - Tier3 -tier: '3' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=206917 -extra-nitrate: TC#0359421 -extra-summary: /CoreOS/net-tools/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name -extra-task: /CoreOS/net-tools/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name -id: 59990234-5f98-41ca-9fd7-bd3de51e148c diff --git a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/runtest.sh b/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/runtest.sh deleted file mode 100755 index 5094528..0000000 --- a/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name/runtest.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Sanity/bz206917-ifconfig-does-not-show-the-full-interface-name -# Description: This test creates dummy interface and changes his name to something larger then 9 characters and checks if ifconfig displays this interface correctly. -# Author: Leos Pol -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - lsmod | grep "^dummy" >/dev/null 2>&1 - if [ $? -gt 0 ]; then - rlRun "modprobe dummy" 0 "Modprobing dummy" - if ! rlIsRHEL '<=7'; then - rlRun "ip link add dummy0 type dummy" 0 "Add dummy inteface via ip command" - fi - rlRun "ifconfig dummy0 down" - else - ifconfig | grep dummy0 >/dev/null 2>&1 - if [ $? -eq 0 ]; then - DUMMY_UP=1 - rlRun "ifconfig dummy0 down" 0 "ifdown existing dummy interface" - fi - DUMMY_LOADED=1 - fi - if rlIsRHEL "<7"; then - HWADDR=`ifconfig dummy0 | sed -n '/HWaddr/s/^.*HWaddr \([^ ]*\).*/\1/p'` - else - HWADDR=`ifconfig dummy0 | sed -n '/ether/s/^.*ether \([^ ]*\).*/\1/p'` - fi - rlPhaseEnd - - rlPhaseStartTest - rlRun "nameif dummy0123456 $HWADDR" 0 "Renaming dummy iface" - rlRun "ifconfig -a | grep dummy0123456" 0 "iface dummy0123456 is present" - rlPhaseEnd - - rlPhaseStartCleanup - if [ $DUMMY_LOADED ]; then - nameif dummy0 $HWADDR - if [ $DUMMY_UP ]; then - rlRun "ifconfig dummy0 up" 0 "ifup dummy interface" - fi - else - rlRun "rmmod dummy" 0 "Removing mod dummy" - fi - rlPhaseEnd - -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/bz234045-netstat-segfault-with-missing/main.fmf b/Sanity/bz234045-netstat-segfault-with-missing/main.fmf deleted file mode 100644 index 11a0fb1..0000000 --- a/Sanity/bz234045-netstat-segfault-with-missing/main.fmf +++ /dev/null @@ -1,20 +0,0 @@ -summary: This test runs netstat with and w/o = -description: '' -author: Leos Pol -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 5m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=234045 -extra-nitrate: TC#0372313 -extra-summary: /CoreOS/net-tools/Sanity/bz234045-netstat-segfault-with-missing -extra-task: /CoreOS/net-tools/Sanity/bz234045-netstat-segfault-with-missing -id: d0f17533-6b0e-4b70-9b54-931a3544090b diff --git a/Sanity/bz234045-netstat-segfault-with-missing/runtest.sh b/Sanity/bz234045-netstat-segfault-with-missing/runtest.sh deleted file mode 100755 index 85f6e4c..0000000 --- a/Sanity/bz234045-netstat-segfault-with-missing/runtest.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Sanity/bz234045-netstat-segfault-with-missing -# Description: This test runs netstat with and w/o = -# Author: Leos Pol -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlPhaseEnd - - rlPhaseStartTest - rlRun "netstat -I" 0 - rlRun "netstat -I=" 0 - rlRun "netstat --interfaces" 0 - rlRun "netstat --interfaces=" 0 - rlPhaseEnd - -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf b/Sanity/hostname-s-not-dependent-on-DNS/main.fmf deleted file mode 100644 index c1e10b9..0000000 --- a/Sanity/hostname-s-not-dependent-on-DNS/main.fmf +++ /dev/null @@ -1,26 +0,0 @@ -summary: hostname -s should work even for hostnames that don't resolve via DNS -description: | - Bug summary: hostname -s gives hostname: Unknown host when the FQDN does not resolve - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=319981 -author: Ales Zelinka -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 10m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=319981 -adjust: - - enabled: false - when: distro < rhel-7 - continue: false -extra-nitrate: TC#0128706 -extra-summary: /CoreOS/net-tools/Sanity/hostname-s-not-dependent-on-DNS -extra-task: /CoreOS/net-tools/Sanity/hostname-s-not-dependent-on-DNS -id: 2dd8101c-60c6-4b12-89ea-b2a107cf38dc diff --git a/Sanity/hostname-s-not-dependent-on-DNS/runtest.sh b/Sanity/hostname-s-not-dependent-on-DNS/runtest.sh deleted file mode 100755 index 9281603..0000000 --- a/Sanity/hostname-s-not-dependent-on-DNS/runtest.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Sanity/hostname-s-not-dependent-on-DNS -# Description: hostname -s should work even for hostnames that don't resolve via DNS -# Author: Ales Zelinka -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" - -rlJournalStart -rlPhaseStartSetup - rlAssertRpm $PACKAGE - OLD_HOSTNAME=`hostname` - rlRun "hostname some.random.hostname" 0 "setting hostname to some.random.hostname" - sleep 5 -rlPhaseEnd - -rlPhaseStartTest - rlRun "hostname" - rlRun "hostname -s | grep some" 0 "hostname -s works (returns 'some')" -rlPhaseEnd - -rlPhaseStartCleanup - rlRun "hostname $OLD_HOSTNAME" 0 "setting hostname to the original value" -rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/data b/Sanity/ifconfig-inaccurately-rounds-exabytes/data deleted file mode 100644 index c91f3d7..0000000 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/data +++ /dev/null @@ -1,6 +0,0 @@ -431640404764:401.9 GiB -1125899906842624:1024.0 TiB -1125899906842625:1.0 PiB -2154408931384050514:1.8 EiB -9223372036854775807:8.0 EiB -9999999999999999999999999999992154408931384050514:16.0 EiB diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/dev b/Sanity/ifconfig-inaccurately-rounds-exabytes/dev deleted file mode 100644 index cfb7bba..0000000 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/dev +++ /dev/null @@ -1,3 +0,0 @@ -Inter-| Receive | Transmit - face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed - lo: XXX 690 0 0 0 0 0 0 0 0 0 0 0 0 0 0 diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf b/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf deleted file mode 100644 index 79f4742..0000000 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/main.fmf +++ /dev/null @@ -1,29 +0,0 @@ -summary: Test for BZ#1177980 (ifconfig inaccurately rounds exabytes) -description: | - Bug summary: ifconfig inaccurately rounds exabytes - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1177980 -enabled: true -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1177980 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1592732 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1414765 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1392910 -tag: - - Tier1 -tier: '1' -adjust: - - enabled: false - when: distro < rhel-6 - continue: false -author: Petr Sklenar -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 20m -extra-nitrate: TC#0539000 -extra-summary: /CoreOS/net-tools/Sanity/ifconfig-inaccurately-rounds-exabytes -extra-task: /CoreOS/net-tools/Sanity/ifconfig-inaccurately-rounds-exabytes -id: 54a46fd1-226c-4a9c-ab1d-c8ca1b175589 diff --git a/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh b/Sanity/ifconfig-inaccurately-rounds-exabytes/runtest.sh deleted file mode 100755 index e326b46..0000000 --- a/Sanity/ifconfig-inaccurately-rounds-exabytes/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 /CoreOS/net-tools/Sanity/ifconfig-inaccurately-rounds-exabytes -# Description: Test for BZ#1177980 (ifconfig inaccurately rounds exabytes) -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - TestDir=$(pwd) - rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory" - rlRun "pushd $tmp" - chrootd=`mktemp -d` - - rlIsFedora && rlRun "dnf -y --installroot=$chrootd --releasever=`rlGetDistroRelease` --use-host-config install net-tools" &> dnf.log - rlIsFedora && dnf -y --installroot=$chrootd --releasever=rawhide upgrade net-tools --nogpg &>> dnf.log - rlIsRHEL && rlRun "yum -y --installroot=$chrootd install net-tools --nogpgcheck" &> dnf.log - rlIsCentOS && rlRun "dnf -y --installroot=$chrootd install net-tools --nogpgcheck --releasever=$(rpm -E %centos)" &> dnf.log - rlRun "mkdir $chrootd/proc/net -p" - rlPhaseEnd - - - rlPhaseStartTest - old="$IFS" - #IFS = delimiter: - IFS=' -' - for i in $(<$TestDir/data);do - echo ============ - bytes=`echo $i | gawk -F: '{ print $1 }'` - iB=`echo $i | gawk -F: '{ print $2 }'` - sed s/XXX/$bytes/g $TestDir/dev > $chrootd/proc/net/dev - chroot $chrootd /bin/bash -c "ifconfig" | grep "$iB" - rlAssert0 "$iB" $? - chroot $chrootd /bin/bash -c "ifconfig" - echo =========== - done - IFS="$old" - rlPhaseEnd - - rlPhaseStartCleanup - rlFileSubmit dnf.log - rlRun "popd" - rlRun "rm -r $tmp" 0 "Remove tmp directory" - rlRun "rm -r $chrootd" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/init-scripts-LSB/main.fmf b/Sanity/init-scripts-LSB/main.fmf deleted file mode 100644 index 60668ba..0000000 --- a/Sanity/init-scripts-LSB/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: init-scripts-LSB -description: 'init scripts must meet LSB specifications' -author: - - Milos Malik - - Miroslav Vadkerti -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - initscripts - - net-tools -duration: 5m -enabled: false -tag: - - Tier3 -tier: '3' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=522888 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=537322 -adjust: - - enabled: false - when: distro > rhel-6 - continue: false -extra-nitrate: TC#0075885 -extra-summary: /CoreOS/net-tools/Sanity/init-scripts-LSB -extra-task: /CoreOS/net-tools/Sanity/init-scripts-LSB -id: ac2a0ef5-4250-4d67-95c4-e29c46f4bc11 diff --git a/Sanity/init-scripts-LSB/runtest.sh b/Sanity/init-scripts-LSB/runtest.sh deleted file mode 100755 index 76ece38..0000000 --- a/Sanity/init-scripts-LSB/runtest.sh +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/rhts-library/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Sanity/init-scripts-LSB -# Description: init scripts must meet LSB specifications -# Author: Milos Malik -# Author: Miroslav Vadkerti -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" -SERVICE="netplugd" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - USAGE_FILE=`mktemp` - CASE_FILE=`mktemp` - rlServiceStop $SERVICE - rlPhaseEnd - - rlPhaseStartTest "Mandatory actions" - for ACTION in "start" "stop" "restart" "status" ; do - rlRun "grep -i \"usage.*$ACTION\" /etc/init.d/$SERVICE" - done - rlPhaseEnd - - rlPhaseStartTest "Recognized actions" - LINES_COUNT=`wc -l < /etc/init.d/$SERVICE` - LAST_CASE=`grep -n case /etc/init.d/$SERVICE | tail -n 1 | cut -d ':' -f 1` - rlRun "tail -n $((LINES_COUNT - LAST_CASE)) /etc/init.d/$SERVICE | grep '[ ]*[|a-zA-Z-]*)' | cut -d ')' -f 1 | tr '|' '\n' | tr -d ' ' | grep -v '*' | grep -v '\\$' | sed 's/\t//g' | sort > $CASE_FILE" - rlRun "grep -i usage /etc/init.d/$SERVICE | cut -d '{' -f 2 | tr -d '}\"' | tr '|' '\n' | sort > $USAGE_FILE" - rlRun "diff $CASE_FILE $USAGE_FILE" - rlPhaseEnd - - rlPhaseStartTest "Start" - rlRun "service $SERVICE start" 0 - rlRun "service $SERVICE status" 0 - rlRun "service $SERVICE start" 0 - rlRun "service $SERVICE status" 0 - rlRun "service $SERVICE restart" 0 - rlRun "service $SERVICE status" 0 - rlPhaseEnd - - rlPhaseStartTest "Stop" - rlRun "service $SERVICE stop" 0 - rlRun "service $SERVICE status" 3 - rlRun "service $SERVICE stop" 0 - rlRun "service $SERVICE status" 3 - rlPhaseEnd - - rlPhaseStartTest "Lock file" - rlRun "touch /var/lock/subsys/$SERVICE" - rlRun "service $SERVICE status" 2 - rlRun "rm -rf /var/lock/subsys/$SERVICE" - rlPhaseEnd - - rlPhaseStartTest "PID file" - rlRun "touch /var/run/$SERVICE.pid" - rlRun "service $SERVICE status" 1 - rlRun "rm -rf /var/run/$SERVICE.pid" 0 - rlPhaseEnd - - rlPhaseStartTest "Condrestart" - rlRun "service $SERVICE start" 0 - rlRun "service $SERVICE condrestart" 0 - rlRun "service $SERVICE status" 0 - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "rm -f /var/lock/subsys/$SERVICE" - rlRun "rm -f /var/run/$SERVICE.pid" - rm -f $USAGE_FILE - rm -f $CASE_FILE - rlServiceRestore $SERVICE - rlPhaseEnd -rlJournalPrintText -rlJournalEnd - diff --git a/Sanity/netstat-notrim-option/main.fmf b/Sanity/netstat-notrim-option/main.fmf deleted file mode 100644 index 643c340..0000000 --- a/Sanity/netstat-notrim-option/main.fmf +++ /dev/null @@ -1,25 +0,0 @@ -summary: Test for bz732984 (netstat truncates IPV6 UDP sockets even with) -description: | - Bug summary: netstat truncates IPV6 UDP sockets even with --notrim specifed - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=732984 -author: Ales Zelinka -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools - - nmap-ncat - - nc - - iproute -duration: 10m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=732984 -extra-nitrate: TC#0111106 -extra-summary: /CoreOS/net-tools/Sanity/netstat-notrim-option -extra-task: /CoreOS/net-tools/Sanity/netstat-notrim-option -id: bbc13743-3ac6-4fb7-9762-83a6ff4e6903 diff --git a/Sanity/netstat-notrim-option/runtest.sh b/Sanity/netstat-notrim-option/runtest.sh deleted file mode 100755 index 715ca33..0000000 --- a/Sanity/netstat-notrim-option/runtest.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/Sanity/netstat-notrim-option -# Description: Test for bz732984 (netstat truncates IPV6 UDP sockets even with) -# Author: Ales Zelinka -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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="net-tools" -def_PORT="15151" - -rlJournalStart -rlPhaseStartTest - rlAssertRpm $PACKAGE - #starting with rhel7 the option changed. feature, not a bug. - if rlIsRHEL 5 6 ; then - OPTION="T" - else - OPTION="W" - fi - - DEFAULT_IF=`ip r | grep default | awk '{print $5}' | head -1` - IPV6_DEF_ADDR="$(ip a l dev $DEFAULT_IF | grep 'inet6 ' | grep -v 'scope link' | awk NR\=\=1 | sed 's/.* inet6 \s*\([^/]*\).*/\1/')" - rlLog "DEFAULT_IF: \"$DEFAULT_IF\"" # default interface - rlLog "IPV6_DEF_ADDR: \"$IPV6_DEF_ADDR\"" # first global IPv6 addr. of default interface - - # run udp6 NC server on IPv6 address of default interface - # to make sure there is at least 1 ipv6/udp server listening - rlRun "nc -6ul $IPV6_DEF_ADDR $def_PORT &" - sleep 10 - echo "######################## jobs ########################"; jobs # debug - echo "#################### netstat -tulen ##################"; netstat -tulen # debug - echo "#################### ss -tulen ##################"; ss -tulen # debug (netstat not showing new job on s390x sometimes - try "ss" also) - - ip a l dev "$DEFAULT_IF" | grep 'inet6 ' | grep -v 'scope link' | sed 's/.* inet6 \s*\([^/]*\).*/\1/' | \ - while read ADDRESS ; do - rlRun "netstat -A inet6 -an$OPTION |grep udp|grep $ADDRESS" 0 "netstat listed untrimmed address $ADDRESS" - done - rlLog "echo 'Why was it empty?'" - pkill nc # kill nc server -rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/sanity-test/main.fmf b/Sanity/sanity-test/main.fmf deleted file mode 100644 index 128cce9..0000000 --- a/Sanity/sanity-test/main.fmf +++ /dev/null @@ -1,36 +0,0 @@ -summary: Basic sanity test -description: |+ - The test runs basic tests whether net-tools package is sane. It needs dummy - interface for most of the tests, also correctly set up /etc/services. Note - that on some architectures not all tests have to succeed, at the time the - only know problem is ARP on s390/s390x archs, where no ARP protocol is used. - -author: Jan Scotka -component: - - net-tools -test: ./runtest.sh -framework: beakerlib -recommend: - - net-tools -duration: 10m -enabled: true -tag: - - Tier1 -tier: '1' -link: - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=673533 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=522888 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=537322 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=705110 - - relates: https://bugzilla.redhat.com/show_bug.cgi?id=732984 -adjust: - - enabled: false - when: arch == ppc64, s390, s390x - continue: false - - enabled: false - when: distro < rhel-6 - continue: false -extra-nitrate: TC#0046199 -extra-summary: /CoreOS/net-tools/Sanity/sanity-test -extra-task: /CoreOS/net-tools/Sanity/sanity-test -id: fa9eff84-8bd7-40af-abab-c3c962df66cd diff --git a/Sanity/sanity-test/runtest.sh b/Sanity/sanity-test/runtest.sh deleted file mode 100755 index d5b11de..0000000 --- a/Sanity/sanity-test/runtest.sh +++ /dev/null @@ -1,222 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/net-tools/sanity -# Author: Jan Scotka -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="net-tools" - -rlJournalStart - rlPhaseStartTest - rlLog "package version: $PACKAGE" - rlRun "modprobe dummy" - - if ! rlIsRHEL '<=7'; then - rlRun "ip link add dummy0 type dummy" 0 "Add dummy inteface via ip command" - fi - #ifconfig part - rlRun "ifconfig dummy0 up" 0 - rlRun "ifconfig | grep dummy0" 0 - rlRun "ifconfig dummy0 down" 0 - - rlRun "ifconfig | grep dummy0" 1 - - rlRun "ifconfig dummy0 up 10.10.10.10 netmask 255.255.255.248" 0 - rlRun "ifconfig dummy0 | grep 10.10.10.10" 0 - rlRun "ifconfig dummy0 | grep 255.255.255.248" 0 - rlRun "ifconfig dummy0 10.10.10.11" 0 - rlRun "ifconfig dummy0 | grep 10.10.10.11" 0 - rlRun "ifconfig dummy0 | grep 255.0.0.0" 0 - rlRun "ifconfig dummy0 netmask 255.255.255.248" 0 - rlRun "ifconfig dummy0 | grep 10.10.10.11" 0 - rlRun "ifconfig dummy0 | grep 255.255.255.248" 0 - rlRun "ifconfig dummy0 down" 0 - rlRun "ifconfig | grep dummy0" 1 - - rlRun "ifconfig dummy0 up" 0 - rlRun "ifconfig | grep -v dummy0" 0 - rlRun "ifconfig dummy0 | grep 10.10.10.11" 0 - rlRun "ifconfig dummy0 | grep 255.255.255.248" 0 - rlRun "ifconfig dummy0 broadcast 10.10.10.255" 0 - - rlRun "ifconfig dummy0 | grep 10.10.10.255" 0 - rlRun "ifconfig dummy0 172.16.0.0" 0 - - rlRun "ifconfig dummy0 | grep 255.255.0.0" 0 - rlRun "ifconfig dummy0 192.168.0.0" 0 - rlRun "ifconfig dummy0 | grep 255.255.255.0" 0 - rlRun "ifconfig dummy0 192.168.0.256" 1 - - - rlRun "ifconfig dummy0 0x0A.0x0A.0x0A.0x0A netmask 0xFF.0xFF.0xFF.0x00" 0 - rlRun "ifconfig dummy0 up 10.10.10.10 netmask 255.255.252.255" 1 - rlRun "ifconfig dummy0 up 10.10.10.10 netmask 255.255.255.253" 1 - rlRun "ifconfig dummy0 down" 0 - rlRun "ifconfig dummy0 hw ether 3E:7A:59:CD:B8:BB" 0 - rlRun "ifconfig dummy0 | grep -i 3E:7A:59:CD:B8:BB" 0 - rlRun "ifconfig dummy0 hw ether 3E:7A:59:CD:B8:0B" 0 - rlRun "ifconfig dummy0 | grep -i 3E:7A:59:CD:B8:0B" 0 - rlRun "ifconfig dummy0 up" 0 - - -#ipv6 ifconfig stuff - if rlIsRHEL 4 5 6; then - STRING="ifconfig deletes all ipv6 addresses:" - J=0 - for i in `ifconfig dummy0 | sed -n '/inet6/s/^.*addr: \([^ ]*\).*/\1/p'` - do ARRAY[$J]=$i - J=$((J+1)) - done - J=${#array[*]} - RETVAL=0 - for i in `seq 0 $J`; do - ifconfig dummy0 del ${ARRAY[$J]} - rlAssert0 "" $? - ifconfig dummy0 | grep ${ARRAY[$J]} - # rlAssert0 "" $? - done - - STRING="ifconfig deletes adds ipv6 addresses back:" - RETVAL=0 - for i in `seq 0 $J`; do - ifconfig dummy0 add ${ARRAY[$J]} - rlAssert0 "" $? - ifconfig dummy0 | grep ${ARRAY[$J]} - rlAssert0 "" $? - done - fi - rlRun "ifconfig dummy0 down" 0 - rlRun "ifconfig dummy0 add fe80::0::fecd:b80b/64" 1 - - -# ROUTE STUFF - - rlRun "ifconfig dummy0 up 1.1.1.1 netmask 255.255.255.0" 0 - rlRun "route add -net 1.1.1.0/24 dev dummy0" 0 - rlRun "route -v | grep 1.1.1.0" 0 - rlRun "ping -c 1 1.1.1.1" - rlRun "route del -net 1.1.1.0/24" 0 -# there should not be deleted net in RHEL7? - rlRun "route -v" - -# NAMEIF STUFF - STRING="nameif basic functionality:" - if rlIsRHEL 4 5 6; then - HWADDR=`ifconfig dummy0 | sed -n '/HWaddr/s/^.*HWaddr \([^ ]*\).*/\1/p'` - else - HWADDR=`ifconfig dummy0 | sed -n '/ether/s/^.*ether \([^ ]*\).*/\1/p'` - fi - rlRun "ifconfig dummy0 down" 0 - rlRun "nameif dumb $HWADDR" 0 - rlRun "ifconfig dumb up 10.10.10.15 netmask 255.255.255.0" 0 - rlRun "ifconfig dumb | grep 10.10.10.15" 0 - rlRun "ifconfig dumb down" 0 - rlRun "nameif dummy0 $HWADDR" 0 - rlRun "ifconfig -a | grep -v dumb" - -# NETSTAT STUFF - STRING="netstat route functionality:" - J=0 - for i in `route -v`; do - ROUTE[$J]="$i" - J=$((J+1)) - done - K=0 - for i in `netstat -r`; do - NETSTAT[$K]="$i" - K=$((K+1)) - done - - rlRun "test $J -ne $K" 1 - for i in `seq $J`; do - rlRun "test $ROUTE[$i] != $ROUTE[$i] " 1 - done - - - STRING="netstat shows ports with names and with port number:" - rlRun 'netstat --numeric-ports -ta | grep ":22 "' - rlRun 'netstat -ta | grep ":ssh "' - rlRun 'netstat -tpa | grep ":ssh " | grep "/ssh"' - - - STRING="netstat shows correctly interface table -i option:" - rlRun "ifconfig dummy0 down" - rlRun "netstat -i | grep dummy0" 1 - rlRun "ifconfig dummy0 up" - rlRun "netstat -i | grep dummy0" - rlRun "netstat -i | grep lo" - - STRING="netstat shows correctly interface table --interfaces option:" - rlRun "ifconfig dummy0 down" - rlRun "netstat -i | grep dummy0" 1 - rlRun "ifconfig dummy0 up" - rlRun "netstat --interfaces | grep dummy0" - rlRun "netstat --interfaces | grep lo" - - - STRING="netstat shows correctly interface table -I option:" - rlRun "ifconfig dummy0 down" - rlRun "netstat -i | grep dummy0" 1 - rlRun "ifconfig dummy0 up" - rlRun "netstat -I | grep dummy0" - rlRun "netstat -I | grep lo" - - STRING="netstat shows correctly interface table -I= option:" - rlRun "ifconfig dummy0 down" - rlRun "netstat -i | grep dummy0" 1 - rlRun "ifconfig dummy0 up" - rlRun "netstat -I=dummy0 | grep dummy0" - rlRun "netstat -I=dummy0 | grep lo" 1 - - STRING="netstat shows correctly interface table -I option:" - rlRun "ifconfig dummy0 down" - rlRun "netstat -i | grep dummy0" 1 - rlRun "ifconfig dummy0 up" - rlRun "netstat -Idummy0 | grep dummy0" - rlRun "netstat -Idummy0 | grep -v lo" - - -# ARP STUFF - non s390/s390x archs only - uname -p | grep -v s390 >/dev/null - if [ $? -gt 0 ]; then - STRING="arp - test if amout of the entries changes after broadcast ping - may fail:" - BEFORE=`arp | wc -l` - BCASTADDR=`ifconfig eth0 | sed -n '/Bcast/s/^.*Bcast:\([^ ]*\).*/\1/p'` - rlRun "ping -c 3 -b $BCASTADDR" 0 - AFTER=`arp | wc -l` - rlRun "test $BEFORE -ne $AFTER" 0 - fi - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "ip l set down dev dummy0" 0 "downing dummy0" - rlRun "rmmod dummy" 0 "removing dummy kernel module" - ip a s dev dummy0 2>/dev/null && rlRun "ip link del dummy0 type dummy" - ip a s dev dumb 2>/dev/null && rlRun "ip link del dumb type dummy" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/main.fmf b/main.fmf deleted file mode 100644 index 3da3438..0000000 --- a/main.fmf +++ /dev/null @@ -1,5 +0,0 @@ -# QE owner -contact: Frantisek Hrdina -component: frr -check: - - how: avc \ No newline at end of file diff --git a/plans/all.fmf b/plans/all.fmf deleted file mode 100644 index e1a0780..0000000 --- a/plans/all.fmf +++ /dev/null @@ -1,5 +0,0 @@ -summary: Run all tests -discover: - how: fmf -execute: - how: tmt diff --git a/plans/others.fmf b/plans/others.fmf deleted file mode 100644 index 8c73d31..0000000 --- a/plans/others.fmf +++ /dev/null @@ -1,20 +0,0 @@ -/public: - summary: Public other tests - discover: - how: fmf - filter: 'tier: -1 & tier: -2 & tier: -3 & tag: -multihost' - url: "https://src.fedoraproject.org/tests/net-tools.git" - execute: - how: tmt - -/internal: - summary: Internal other tests - discover: - how: fmf - filter: 'tier: -1 & tier: -2 & tier: -3 & tag: -multihost' - url: https://gitlab.com/redhat/rhel/tests/net-tools - adjust: - enabled: false - when: distro == centos-stream or distro == fedora - execute: - how: tmt \ No newline at end of file diff --git a/plans/tier1.fmf b/plans/tier1.fmf deleted file mode 100644 index efc2f23..0000000 --- a/plans/tier1.fmf +++ /dev/null @@ -1,20 +0,0 @@ -/public: - summary: Public Tier1 tests - discover: - how: fmf - filter: 'tier: 1' - url: "https://src.fedoraproject.org/tests/net-tools.git" - execute: - how: tmt - -/internal: - summary: Internal Tier1 tests - discover: - how: fmf - filter: 'tier: 1' - url: https://gitlab.com/redhat/rhel/tests/net-tools - adjust: - enabled: false - when: distro == centos-stream or distro == fedora - execute: - how: tmt diff --git a/plans/tier2-tier3.fmf b/plans/tier2-tier3.fmf deleted file mode 100644 index 5179cac..0000000 --- a/plans/tier2-tier3.fmf +++ /dev/null @@ -1,20 +0,0 @@ -/public: - summary: Public Tier2 and Tier3 tests - discover: - how: fmf - filter: 'tier: 2 | tier: 3' - url: "https://src.fedoraproject.org/tests/net-tools.git" - execute: - how: tmt - -/internal: - summary: Internal Tier2 and Tier3 tests - discover: - how: fmf - filter: 'tier: 2 | tier: 3' - url: https://gitlab.com/redhat/rhel/tests/net-tools - adjust: - enabled: false - when: distro == centos-stream or distro == fedora - execute: - how: tmt From 0b2d4ec78957372a3f29a32f7a5a67dad68db49b Mon Sep 17 00:00:00 2001 From: Ondrej Mejzlik Date: Mon, 21 Jul 2025 11:25:41 +0200 Subject: [PATCH 20/21] Delete fmf folder --- .fmf/version | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .fmf/version diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 From 3228f9f5a99a64a3d25e8aa4c70bd5633a035272 Mon Sep 17 00:00:00 2001 From: Ondrej Mejzlik Date: Mon, 21 Jul 2025 11:31:37 +0200 Subject: [PATCH 21/21] Delete fmf folder --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e84d94..bd55c47 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Public test have been moved to: https://gitlab.com/redhat/centos-stream/tests/ +Public tests have been moved to: https://gitlab.com/redhat/centos-stream/tests/