lldpd/tests/miscellaneous-tests/runtest.sh
Yaakov Selkowitz ccd9d51f19 tests: cleanup imports and spelling
psutil does not appear to be used, but would require installing
python3-psutil.  networkd is now a separate subpackage of systemd.
2021-07-28 18:18:06 -04:00

36 lines
781 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1+
# ~~~
# LLDPD integration test
# Description: Test for lldpd: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"
LldpdPidFile="/var/run/lldpd.pid"
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE
rlRun "cp lldpd-tests.py /usr/bin/"
rlPhaseEnd
rlPhaseStartTest
rlLog "lldpd tests"
rlRun "/usr/bin/python3 /usr/bin/lldpd-tests.py"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "rm /usr/bin/lldpd-tests.py"
rlLog "lldpd tests done"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd
rlGetTestState