iproute/tests/ip-l2tp-sanity-test/runtest.sh
Mingyu Shi 902e725a9d Enable gating for c10s
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>
2024-06-13 16:03:25 +08:00

40 lines
945 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1+
# ~~~
# runtest.sh of /CoreOS/iproute/Sanity/ip-l2tp-sanity-test
# Description: Test basic ip l2tp 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 "modprobe l2tp_core"
rlRun "modprobe l2tp_eth"
rlRun "modprobe l2tp_ip"
rlRun "modprobe l2tp_ip6"
rlRun "modprobe l2tp_netlink"
rlRun "cp ip-l2tp-tests.py /usr/bin"
rlPhaseEnd
rlPhaseStartTest
rlLog "ip l2tp tests"
rlRun "/usr/bin/python3 /usr/bin/ip-l2tp-tests.py"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "rm /usr/bin/ip-l2tp-tests.py"
rlLog "ip l2tp tests done"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd
rlGetTestState