docker: Add EXTRA_CONFIGURE_OPTS
[qemu/ar7.git] / tests / docker / common.rc
blobc493eebd453714ed28ccab1dd5b0538b1a788612
1 #!/bin/sh
3 # Common routines for docker test scripts.
5 # Copyright (c) 2016 Red Hat Inc.
7 # Authors:
8 # Fam Zheng <famz@redhat.com>
10 # This work is licensed under the terms of the GNU GPL, version 2
11 # or (at your option) any later version. See the COPYING file in
12 # the top-level directory.
14 requires()
16 for c in $@; do
17 if ! echo "$FEATURES" | grep -wq -e "$c"; then
18 echo "Prerequisite '$c' not present, skip"
19 exit 0
21 done
24 build_qemu()
26 $QEMU_SRC/configure \
27 --target-list="${TARGET_LIST}" \
28 --prefix="$PWD/install" \
29 $EXTRA_CONFIGURE_OPTS \
30 "$@"
31 make $MAKEFLAGS