iproute/tests/ip-neighbor-sanity-test/runtest.sh

35 lines
799 B
Bash
Raw Normal View History

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