2020-10-15 16:26:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
# ~~~
|
|
|
|
# LLDPD integration test
|
2021-07-27 23:30:18 +00:00
|
|
|
# Description: Test for lldpd:implementation of IEEE 802.1ab (LLDP)
|
2020-10-15 16:26:28 +00:00
|
|
|
#
|
|
|
|
# Author: Susant Sahani <susant@redhat.com>
|
|
|
|
# Copyright (c) 2018 Red Hat, Inc.
|
|
|
|
#~~~
|
|
|
|
|
|
|
|
# Include Beaker environment
|
|
|
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
|
|
|
|
|
|
|
PACKAGE="lldpd"
|
2021-07-27 23:30:18 +00:00
|
|
|
LldpdPidFile="/var/run/lldpd.pid"
|
2020-10-15 16:26:28 +00:00
|
|
|
|
|
|
|
rlJournalStart
|
|
|
|
rlPhaseStartSetup
|
|
|
|
rlAssertRpm $PACKAGE
|
|
|
|
rlRun "cp lldpd-tests.py /usr/bin/"
|
|
|
|
rlPhaseEnd
|
|
|
|
|
|
|
|
rlPhaseStartTest
|
2021-07-27 23:30:18 +00:00
|
|
|
rlLog "lldpd tests"
|
2020-10-15 16:26:28 +00:00
|
|
|
rlRun "/usr/bin/python3 /usr/bin/lldpd-tests.py"
|
|
|
|
rlPhaseEnd
|
|
|
|
|
|
|
|
rlPhaseStartCleanup
|
|
|
|
rlRun "rm /usr/bin/lldpd-tests.py"
|
2021-07-27 23:30:18 +00:00
|
|
|
rlLog "lldpd tests done"
|
2020-10-15 16:26:28 +00:00
|
|
|
rlPhaseEnd
|
|
|
|
rlJournalPrintText
|
|
|
|
rlJournalEnd
|
|
|
|
|
|
|
|
rlGetTestState
|