902e725a9d
Fix test cases: ip-neigh-sanity-test: no failed item after delete/flush ip-rule-sanity-test: fix invalid tos ip-l2tp-sanity-test: enable l2tp_* modules ip-link-sanity-test: remove deprecated team, enable vcan module Disable ip-fou-sanity-test as the module fou has been deprecated Required packages: Remove bridge-utils as deprecated Add kernel-modules-extra Signed-off-by: Mingyu Shi <mshi@redhat.com>
37 lines
853 B
Bash
Executable File
37 lines
853 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
# ~~~
|
|
# runtest.sh of /CoreOS/iproute/Sanity/ip-link-sanity-test
|
|
# Description: Test basic ip link funcionality
|
|
#
|
|
# Author: Susant Sahani <susant@redhat.com>
|
|
# Copyright (c) 2018 Red Hat, Inc.
|
|
#~~~
|
|
|
|
# Include Beaker environment
|
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
|
|
|
PACKAGE="iproute"
|
|
|
|
rlJournalStart
|
|
rlPhaseStartSetup
|
|
rlAssertRpm $PACKAGE
|
|
rlRun "dnf install -y kernel-modules-extra"
|
|
rlRun "modprobe vcan"
|
|
rlRun "cp ip-link-tests.py /usr/bin"
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartTest
|
|
rlLog "ip link tests"
|
|
rlRun "/usr/bin/python3 /usr/bin/ip-link-tests.py"
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartCleanup
|
|
rlRun "rm /usr/bin/ip-link-tests.py"
|
|
rlLog "ip link tests done"
|
|
rlPhaseEnd
|
|
rlJournalPrintText
|
|
rlJournalEnd
|
|
|
|
rlGetTestState
|