summary: internal-testsuite description: "#!/bin/bash\n# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k\n\ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n#\n# \ \ runtest.sh of /tools/libmpc/Regression/internal-testsuite\n# Description:\ \ internal-testsuite\n# Author: Martin Coufal \n#\n# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ #\n# Copyright (c) 2016 Red Hat, Inc.\n#\n# This program is free software:\ \ you can redistribute it and/or\n# modify it under the terms of the GNU General\ \ Public License as\n# published by the Free Software Foundation, either version\ \ 2 of\n# the License, or (at your option) any later version.\n#\n# This program\ \ is distributed in the hope that it will be\n# useful, but WITHOUT ANY WARRANTY;\ \ without even the implied\n# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n\ # PURPOSE. See the GNU General Public License for more details.\n#\n# You\ \ should have received a copy of the GNU General Public License\n# along with\ \ this program. If not, see http://www.gnu.org/licenses/.\n#\n# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ \n# Include Beaker environment\n. /usr/bin/rhts-environment.sh || exit 1\n. /usr/share/beakerlib/beakerlib.sh\ \ || exit 1\n\nPACKAGE=\"${PACKAGE:-$(rpm -qf --qf='%{name}\\n' /usr/lib64/libmpc.so.3)}\"\ \nexport PACKAGE\n\nrlJournalStart\n rlPhaseStartSetup\n rlRun \"TmpDir=\\\ $(mktemp -d)\" 0 \"Creating tmp directory\"\n rlRun \"pushd $TmpDir\"\n\ \trlFetchSrcForInstalled $PACKAGE\n\trlAssertRpm $PACKAGE\n\trlRun \"dnf builddep\ \ -y $PACKAGE\"\n rlRun \"rpm --define='_topdir $TmpDir' -Uvh *src.rpm\"\ \n rlRun \"rpmbuild --define='_topdir $TmpDir' -bc SPECS/libmpc.spec\"\n\ \ rlPhaseEnd\n\n rlPhaseStartTest\n\trlRun \"pushd BUILD/mpc-*\"\n \ \ # test\n rlRun \"make RUNTESTFLAGS='--tool_exec=$BIN' check |& tee\ \ $TmpDir/check.log\"\n rlRun \"popd\"\n # no unexpected results\ \ should appear\n rlRun \"grep '^# of unexpected' check.log\" 1\n rlPhaseEnd\n\ \n rlPhaseStartCleanup\n rlRun \"popd\"\n rlRun \"rm -r $TmpDir\"\ \ 0 \"Removing tmp directory\"\n rlPhaseEnd\nrlJournalPrintText\nrlJournalEnd\n" contact: - Martin Coufal component: - libmpc test: ./runtest.sh framework: beakerlib recommend: - libmpc - gmp-devel - mpfr-devel - texinfo - rpm-build - gcc - gcc-c++ duration: 30m extra-summary: /tools/libmpc/Regression/internal-testsuite extra-task: /tools/libmpc/Regression/internal-testsuite