#!/bin/bash . /usr/share/beakerlib/beakerlib.sh || exit 1 rlJournalStart rlPhaseStartSetup rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory" rlRun "pushd $tmp" rlRun "set -o pipefail" rlRun "rlFetchSrcForInstalled python3-hypothesis" rlPhaseEnd rlPhaseStartTest rlRun "rpmbuild --rebuild ./python-hypothesis*" # option -s stores err/out into files in $rlRun_LOG, # 0th item is latest file # all such files are cleaned during rlJournalEnd rlRun -s "rpm -qpR /root/rpmbuild/RPMS/noarch/python3-hypothesis-*" rlAssertGrep 'python(abi) = 3.6' $rlRun_LOG -F rlAssertGrep 'python3.6dist(attrs) >= 16.0.0' $rlRun_LOG -F rlAssertGrep 'python3.6dist(coverage)' $rlRun_LOG -F rlRun -s "rpm -qpP /root/rpmbuild/RPMS/noarch/python3-hypothesis-*" rlAssertGrep 'python3-hypothesis' $rlRun_LOG -F rlAssertGrep 'python3.6dist(hypothesis)' $rlRun_LOG -F rlAssertGrep 'python3dist(hypothesis)' $rlRun_LOG -F rlPhaseEnd rlPhaseStartCleanup rlRun "popd" rlRun "rm -r $tmp" 0 "Remove tmp directory" rlPhaseEnd rlJournalEnd