naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
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-fou-sanity-test
Petr Šabata d9a596
#   Description: Test basic ip address label 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 "modprobe fou"
Petr Šabata d9a596
        rlRun "cp ip-fou-tests.py /usr/bin"
Petr Šabata d9a596
    rlPhaseEnd
Petr Šabata d9a596
Petr Šabata d9a596
    rlPhaseStartTest
Petr Šabata d9a596
        rlLog "ip fou tests"
Petr Šabata d9a596
        rlRun "/usr/bin/python3 /usr/bin/ip-fou-tests.py"
Petr Šabata d9a596
    rlPhaseEnd
Petr Šabata d9a596
Petr Šabata d9a596
    rlPhaseStartCleanup
Petr Šabata d9a596
        rlRun "rm /usr/bin/ip-fou-tests.py"
Petr Šabata d9a596
        rlLog "ip fou tests done"
Petr Šabata d9a596
    rlPhaseEnd
Petr Šabata d9a596
rlJournalPrintText
Petr Šabata d9a596
rlJournalEnd
Petr Šabata d9a596
Petr Šabata d9a596
rlGetTestState