run revision 8d1b572126afceb60693ff4c4a734bd6dbdaf548
# Run continuous integration tests. # Copyright (C) 2014 Red Hat # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # Minimum percentage of code lines covered by tests # Minimum percentage of code functions covered by tests # Output program usage information. Usage: `basename "$0"` [OPTION...] Run continuous integration tests. -h, --help Output this help message and exit. -p, --prefix=STRING Use STRING as the prefix to prepend to file and directory paths in output. -n, --no-deps Don't attempt to install dependencies. -e, --essential Run the essential subset of tests. -m, --moderate Run the moderate subset of tests. -f, --full Run the rigorous (full) set of tests. Default options: --essential # Output a file display path: a path relocated from base directory (BASE_DIR) # to base prefix (BASE_PFX). # Execute mock as is, or, if the user is not in the "mock" group, under sudo, # Execute mock_privileged with extra chroot configuration added. # Args: chroot [mock_arg...] # Input: extra configuration trap 'trap - RETURN; rm -R "$conf_dir";' RETURN # Preserve timestamps to avoid unnecessary cache rebuilds cat >> "${conf_dir}/${chroot}.cfg" # Execute mock_privileged with dependency package source configuration added. # Args: chroot [mock_arg...] repo='fedora-$releasever-$basearch' repo="epel-${BASH_REMATCH[1]}-\$basearch" echo "Unknown chroot config: $chroot" >&2 name=Extra SSSD dependencies # Run debug build checks. # Extended glob pattern matching tests to run under Valgrind. # NOTE: The particular pattern below is inverted "${CONFIGURE_ARG_LIST[@]}" \ "${CONFIGURE_ARG_LIST[@]}" "${CONFIGURE_ARG_LIST[@]}" \ # Run coverage build checks. # enable optimisation to avoid bug in gcc < 4.6.0 # gcc commit 7959b7e646b493f48a2ea7228fbf1c43f84bedea # 138bc75d-0d04-0410-961f-82ee72b054a4 "${CONFIGURE_ARG_LIST[@]}" \ # Build everything, including tests --title "sssd" --show-details \ --legend --prefix "$BASE_DIR" \ # Run a build inside a sub-directory. echo "Unknown option: $1" >&
2 echo "Positional arguments are not accepted." >&
2