Blame tests/ip-route-sanity-test/runtest.sh
|
Petr Šabata |
d9a596 |
#!/bin/bash
|
|
Petr Šabata |
d9a596 |
# SPDX-License-Identifier: LGPL-2.1+
|
|
Petr Šabata |
d9a596 |
# ~~~
|
|
Petr Šabata |
d9a596 |
# runtest.sh of /CoreOS/iproute/Sanity/ip-route-sanity-test
|
|
Petr Šabata |
d9a596 |
# Description: Test basic ip route funcionality
|
|
Petr Šabata |
d9a596 |
#
|
|
Petr Šabata |
d9a596 |
# Author: Susant Sahani <susant@redhat.com>
|
|
Petr Šabata |
d9a596 |
# Copyright (c) 2018 Red Hat, Inc.
|
|
Petr Šabata |
d9a596 |
#~~~
|
|
Petr Šabata |
d9a596 |
|
|
Petr Šabata |
d9a596 |
# Include Beaker environment
|
|
Petr Šabata |
d9a596 |
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
|
Petr Šabata |
d9a596 |
|
|
Petr Šabata |
d9a596 |
PACKAGE="iproute"
|
|
Petr Šabata |
d9a596 |
|
|
Petr Šabata |
d9a596 |
rlJournalStart
|
|
Petr Šabata |
d9a596 |
rlPhaseStartSetup
|
|
Petr Šabata |
d9a596 |
rlAssertRpm $PACKAGE
|
|
Petr Šabata |
d9a596 |
rlRun "cp ip-route-tests.py /usr/bin"
|
|
Petr Šabata |
d9a596 |
rlPhaseEnd
|
|
Petr Šabata |
d9a596 |
|
|
Petr Šabata |
d9a596 |
rlPhaseStartTest
|
|
Petr Šabata |
d9a596 |
rlLog "ip route tests"
|
|
Petr Šabata |
d9a596 |
rlRun "/usr/bin/python3 /usr/bin/ip-route-tests.py"
|
|
Petr Šabata |
d9a596 |
rlPhaseEnd
|
|
Petr Šabata |
d9a596 |
|
|
Petr Šabata |
d9a596 |
rlPhaseStartCleanup
|
|
Petr Šabata |
d9a596 |
rlRun "rm /usr/bin/ip-route-tests.py"
|
|
Petr Šabata |
d9a596 |
rlLog "ip route tests done"
|
|
Petr Šabata |
d9a596 |
rlPhaseEnd
|
|
Petr Šabata |
d9a596 |
rlJournalPrintText
|
|
Petr Šabata |
d9a596 |
rlJournalEnd
|
|
Petr Šabata |
d9a596 |
|
|
Petr Šabata |
d9a596 |
rlGetTestState
|