36 lines
783 B
Bash
36 lines
783 B
Bash
|
#!/bin/bash
|
||
|
# SPDX-License-Identifier: LGPL-2.1+
|
||
|
# ~~~
|
||
|
# LLDPD integration test
|
||
|
# Description: Test for ladpd:implementation of IEEE 802.1ab (LLDP)
|
||
|
#
|
||
|
# Author: Susant Sahani <susant@redhat.com>
|
||
|
# Copyright (c) 2018 Red Hat, Inc.
|
||
|
#~~~
|
||
|
|
||
|
# Include Beaker environment
|
||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||
|
|
||
|
PACKAGE="lldpd"
|
||
|
LadpdPidFile="/var/run/lldpd.pid"
|
||
|
|
||
|
rlJournalStart
|
||
|
rlPhaseStartSetup
|
||
|
rlAssertRpm $PACKAGE
|
||
|
rlRun "cp lldpd-tests.py /usr/bin/"
|
||
|
rlPhaseEnd
|
||
|
|
||
|
rlPhaseStartTest
|
||
|
rlLog "lladpd tests"
|
||
|
rlRun "/usr/bin/python3 /usr/bin/lldpd-tests.py"
|
||
|
rlPhaseEnd
|
||
|
|
||
|
rlPhaseStartCleanup
|
||
|
rlRun "rm /usr/bin/lldpd-tests.py"
|
||
|
rlLog "lladpd tests done"
|
||
|
rlPhaseEnd
|
||
|
rlJournalPrintText
|
||
|
rlJournalEnd
|
||
|
|
||
|
rlGetTestState
|