|
|
071ea4d |
#!/bin/bash
|
|
|
071ea4d |
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
|
|
071ea4d |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
071ea4d |
#
|
|
|
071ea4d |
# Author: Karel Volný <kvolny@redhat.com>
|
|
|
071ea4d |
# Copyright (c) 2019 Red Hat, Inc.
|
|
|
071ea4d |
#
|
|
|
071ea4d |
# This program is free software: you can redistribute it and/or
|
|
|
071ea4d |
# modify it under the terms of the GNU General Public License as
|
|
|
071ea4d |
# published by the Free Software Foundation, either version 2 of
|
|
|
071ea4d |
# the License, or (at your option) any later version.
|
|
|
071ea4d |
#
|
|
|
071ea4d |
# This program is distributed in the hope that it will be
|
|
|
071ea4d |
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
|
071ea4d |
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
071ea4d |
# PURPOSE. See the GNU General Public License for more details.
|
|
|
071ea4d |
#
|
|
|
071ea4d |
# You should have received a copy of the GNU General Public License
|
|
|
071ea4d |
# along with this program. If not, see http://www.gnu.org/licenses/.
|
|
|
071ea4d |
#
|
|
|
071ea4d |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
071ea4d |
|
|
|
071ea4d |
# Include Beaker environment
|
|
|
071ea4d |
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
|
|
071ea4d |
|
|
|
071ea4d |
PACKAGES=${PACKAGES:-bash}
|
|
|
071ea4d |
|
|
|
071ea4d |
rlJournalStart
|
|
|
071ea4d |
rlPhaseStartSetup
|
|
|
071ea4d |
rlAssertRpm --all
|
|
|
071ea4d |
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
|
|
071ea4d |
rlRun "pushd $TmpDir"
|
|
|
071ea4d |
rlPhaseEnd
|
|
|
071ea4d |
|
|
|
071ea4d |
rlPhaseStartTest
|
|
|
071ea4d |
rlRun "touch testfile" 0 "Creating the test file"
|
|
|
071ea4d |
rlRun -s "A=\$(awk -v p=\$\$ '{print \$0}'
|
|
|
071ea4d |
rlAssertNotGrep "Usage" $rlRun_LOG
|
|
|
071ea4d |
rlPhaseEnd
|
|
|
071ea4d |
|
|
|
071ea4d |
rlPhaseStartCleanup
|
|
|
071ea4d |
rlRun "popd"
|
|
|
071ea4d |
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
|
|
071ea4d |
rlPhaseEnd
|
|
|
071ea4d |
rlJournalPrintText
|
|
|
071ea4d |
rlJournalEnd
|