run revision b7a17cb7d498ce6f1f8b385ae2c442c6a19a8986
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# Run continuous integration tests.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2014 Red Hat
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# This program is free software; you can redistribute it and/or modify
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# it under the terms of the GNU General Public License as published by
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# the Free Software Foundation; either version 3 of the License, or
83a28ca274521e15086fc39febde507bcc4e145eMark Andrews# (at your option) any later version.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# This program is distributed in the hope that it will be useful,
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# but WITHOUT ANY WARRANTY; without even the implied warranty of
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# GNU General Public License for more details.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# You should have received a copy of the GNU General Public License
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# along with this program. If not, see <http://www.gnu.org/licenses/>.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntdeclare -r CI_DIR=`dirname "\`readlink -f \"\$0\"\`"`
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox Userdeclare -r CPU_NUM=`getconf _NPROCESSORS_ONLN`
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# Minimum percentage of code lines covered by tests
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# Minimum percentage of code functions covered by tests
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews# Output program usage information.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntUsage: `basename "$0"` [OPTION...]
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntRun continuous integration tests.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt -h, --help Output this help message and exit.
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews -p, --prefix=STRING Use STRING as the prefix to prepend to file and
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt directory paths in output.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt -n, --no-deps Don't attempt to install dependencies.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt -e, --essential Run the essential subset of tests.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt -m, --moderate Run the moderate subset of tests.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt -r, --rigorous,
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt -f, --full Run the rigorous (full) set of tests.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntDefault options: --essential
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews# Output a file display path: a path relocated from base directory (BASE_DIR)
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews# to base prefix (BASE_PFX).
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# Run a stage.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Args: id cmd [arg...]
status=$?
set -o errexit
config_opts['yum.conf'] += '''
status=0
--gen-suppressions=all \
--verbose ||
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