a19345f6ba
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/lldpd#dac3c9398481e5b7f9afb87e726f95595abf640f
36 lines
783 B
Bash
Executable File
36 lines
783 B
Bash
Executable File
#!/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
|