| # Common routines for docker test scripts. |
| # Copyright (c) 2016 Red Hat Inc. |
| # Fam Zheng <famz@redhat.com> |
| # This work is licensed under the terms of the GNU GPL, version 2 |
| # or (at your option) any later version. See the COPYING file in |
| # the top-level directory. |
| if ! echo "$FEATURES" | grep -wq -e "$c"; then |
| echo "Prerequisite '$c' not present, skip" |
| config_opts="--enable-werror \ |
| ${TARGET_LIST:+--target-list=${TARGET_LIST}} \ |
| $QEMU_CONFIGURE_OPTS $EXTRA_CONFIGURE_OPTS \ |
| echo "Configure options:" |
| $QEMU_SRC/configure $config_opts || \ |
| { cat config.log && test_fail "Failed to run 'configure'"; } |
| # default to make check unless the caller specifies |
| if command -v gtester > /dev/null 2>&1 && \ |
| gtester --version > /dev/null 2>&1; then |
| make $MAKEFLAGS $INVOCATION |
| echo "No working gtester, skipping make $INVOCATION" |
| make install $MAKEFLAGS DESTDIR=$PWD/=destdir |