Blame tests/ip-link-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-link-sanity-test
|
|
Petr Šabata |
d9a596 |
# Description: Test basic ip link 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-link-tests.py /usr/bin"
|
|
Petr Šabata |
d9a596 |
rlPhaseEnd
|
|
Petr Šabata |
d9a596 |
|
|
Petr Šabata |
d9a596 |
rlPhaseStartTest
|
|
Petr Šabata |
d9a596 |
rlLog "ip link tests"
|
|
Petr Šabata |
d9a596 |
rlRun "/usr/bin/python3 /usr/bin/ip-link-tests.py"
|
|
Petr Šabata |
d9a596 |
rlPhaseEnd
|
|
Petr Šabata |
d9a596 |
|
|
Petr Šabata |
d9a596 |
rlPhaseStartCleanup
|
|
Petr Šabata |
d9a596 |
rlRun "rm /usr/bin/ip-link-tests.py"
|
|
Petr Šabata |
d9a596 |
rlLog "ip link tests done"
|
|
Petr Šabata |
d9a596 |
rlPhaseEnd
|
|
Petr Šabata |
d9a596 |
rlJournalPrintText
|
|
Petr Šabata |
d9a596 |
rlJournalEnd
|
|
Petr Šabata |
d9a596 |
|
|
Petr Šabata |
d9a596 |
rlGetTestState
|