73cd43c0ee
Sample run ``` :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 17:39:52 ] :: [ LOG ] :: ip tunnel tests :: [ 17:39:52 ] :: [ BEGIN ] :: Running '/usr/bin/python3 /usr/bin/ip-tunnel-tests.py' test_add_gre (__main__.IPTunnelTests) ... sit0: ipv6/ip remote any local any ttl 64 nopmtudisc 6rd-prefix 2002::/16 ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 gre0: gre/ip remote any local any ttl inherit nopmtudisc tunl0: any/ip remote any local any ttl inherit nopmtudisc gretun-test: gre/ip remote 10.4.4.4 local 10.3.3.3 dev dummy-test ttl 64 ok test_add_ipip (__main__.IPTunnelTests) ... sit0: ipv6/ip remote any local any ttl 64 nopmtudisc 6rd-prefix 2002::/16 ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 gre0: gre/ip remote any local any ttl inherit nopmtudisc tunl0: any/ip remote any local any ttl inherit nopmtudisc ipiptun-test: ip/ip remote 10.4.4.4 local 10.3.3.3 dev dummy-test ttl 64 ok test_add_isatap (__main__.IPTunnelTests) ... sit0: ipv6/ip remote any local any ttl 64 nopmtudisc 6rd-prefix 2002::/16 ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 gre0: gre/ip remote any local any ttl inherit nopmtudisc tunl0: any/ip remote any local any ttl inherit nopmtudisc isatap-test: ipv6/ip remote 10.4.4.4 local 10.3.3.3 dev dummy-test ttl 64 6rd-prefix 2002::/16 ok test_add_sit (__main__.IPTunnelTests) ... sit0: ipv6/ip remote any local any ttl 64 nopmtudisc 6rd-prefix 2002::/16 ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 gre0: gre/ip remote any local any ttl inherit nopmtudisc tunl0: any/ip remote any local any ttl inherit nopmtudisc sittun-test: ipv6/ip remote 10.4.4.4 local 10.3.3.3 dev dummy-test ttl 64 6rd-prefix 2002::/16 ok test_add_vti (__main__.IPTunnelTests) ... sit0: ipv6/ip remote any local any ttl 64 nopmtudisc 6rd-prefix 2002::/16 ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 gre0: gre/ip remote any local any ttl inherit nopmtudisc tunl0: any/ip remote any local any ttl inherit nopmtudisc vti-test: ipv6/ip remote 10.4.4.4 local 10.3.3.3 dev dummy-test ttl 64 6rd-prefix 2002::/16 ok ---------------------------------------------------------------------- Ran 5 tests in 0.197s OK ```
35 lines
785 B
Bash
Executable File
35 lines
785 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
# ~~~
|
|
# runtest.sh of /CoreOS/iproute/Sanity/ip-tunnel-sanity-test
|
|
# Description: Test basic ip tunnel 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 "cp ip-tunnel-tests.py /usr/bin"
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartTest
|
|
rlLog "ip tunnel tests"
|
|
rlRun "/usr/bin/python3 /usr/bin/ip-tunnel-tests.py"
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartCleanup
|
|
rlRun "rm /usr/bin/ip-tunnel-tests.py"
|
|
rlLog "ip tunnel tests done"
|
|
rlPhaseEnd
|
|
rlJournalPrintText
|
|
rlJournalEnd
|
|
|
|
rlGetTestState
|