run revision e1a58f3d5b44d4d8b8d0239481eee52c7a9b69fd
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Run continuous integration tests.
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Copyright (C) 2014 Red Hat
4c221b0da1816acf2ca302b10092df059484468dvboxsync# This program is free software; you can redistribute it and/or modify
4c221b0da1816acf2ca302b10092df059484468dvboxsync# it under the terms of the GNU General Public License as published by
4c221b0da1816acf2ca302b10092df059484468dvboxsync# the Free Software Foundation; either version 3 of the License, or
4c221b0da1816acf2ca302b10092df059484468dvboxsync# (at your option) any later version.
4c221b0da1816acf2ca302b10092df059484468dvboxsync# This program is distributed in the hope that it will be useful,
4c221b0da1816acf2ca302b10092df059484468dvboxsync# but WITHOUT ANY WARRANTY; without even the implied warranty of
4c221b0da1816acf2ca302b10092df059484468dvboxsync# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4c221b0da1816acf2ca302b10092df059484468dvboxsync# GNU General Public License for more details.
4c221b0da1816acf2ca302b10092df059484468dvboxsync# You should have received a copy of the GNU General Public License
4c221b0da1816acf2ca302b10092df059484468dvboxsync# along with this program. If not, see <http://www.gnu.org/licenses/>.
4c221b0da1816acf2ca302b10092df059484468dvboxsyncexport PATH=`dirname "\`readlink -f \"\$0\"\`"`:$PATH
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Minimum percentage of code lines covered by tests
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Minimum percentage of code functions covered by tests
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Output program usage information.
4c221b0da1816acf2ca302b10092df059484468dvboxsyncUsage: `basename "$0"` [OPTION...]
4c221b0da1816acf2ca302b10092df059484468dvboxsyncRun continuous integration tests.
4c221b0da1816acf2ca302b10092df059484468dvboxsync -h, --help Output this help message and exit.
4c221b0da1816acf2ca302b10092df059484468dvboxsync -p, --prefix=STRING Use STRING as the prefix to prepend to file and
4c221b0da1816acf2ca302b10092df059484468dvboxsync directory paths in output.
4c221b0da1816acf2ca302b10092df059484468dvboxsync -n, --no-deps Don't attempt to install dependencies.
4c221b0da1816acf2ca302b10092df059484468dvboxsync -e, --essential Run the essential subset of tests.
4c221b0da1816acf2ca302b10092df059484468dvboxsync -m, --moderate Run the moderate subset of tests.
4c221b0da1816acf2ca302b10092df059484468dvboxsync -r, --rigorous,
4c221b0da1816acf2ca302b10092df059484468dvboxsync -f, --full Run the rigorous (full) set of tests.
4c221b0da1816acf2ca302b10092df059484468dvboxsyncDefault options: --essential
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Output a file display path: a path relocated from base directory (BASE_DIR)
4c221b0da1816acf2ca302b10092df059484468dvboxsync# to base prefix (BASE_PFX).
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Args: path
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Run a stage.
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Args: id cmd [arg...]
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Execute mock as is, or, if the user is not in the "mock" group, under sudo,
4c221b0da1816acf2ca302b10092df059484468dvboxsync# which has password prompt/input on the console, instead of stderr/stdin.
4c221b0da1816acf2ca302b10092df059484468dvboxsync# Args: [mock_arg...]
config_opts['yum.conf'] += '''
status=0
status=$?
status=0
status=$?
unset CFLAGS
ci.info |& tee ci-genhtml.out'
unset CFLAGS
--longoptions help,prefix:,no-deps \
eval set -- "$args_expr"
-h|--help)
-p|--prefix)
DEPS=false; shift;;
-e|--essential)
-m|--moderate)
if "$DEPS"; then
if "$RIGOROUS"; then
trap - EXIT
echo SUCCESS