3 # Common routines for docker test scripts.
5 # Copyright (c) 2016 Red Hat Inc.
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 # This might be set by ENV of a docker container... it is always
15 # overriden by TARGET_LIST if the user sets it.
16 DEF_TARGET_LIST
=${DEF_TARGET_LIST:-"x86_64-softmmu,aarch64-softmmu"}
22 for d
in /bin
/usr
/bin
/usr
/local
/bin
30 if test "$found" != "1"
32 echo "Prerequisite '$c' not present, skip"
39 config_opts
="--enable-werror \
40 ${TARGET_LIST:+--target-list=${TARGET_LIST}} \
41 --prefix=$INSTALL_DIR \
42 $QEMU_CONFIGURE_OPTS $EXTRA_CONFIGURE_OPTS \
44 echo "Configure options:"
46 $QEMU_SRC/configure
$config_opts || \
47 { cat config.log
&& test_fail
"Failed to run 'configure'"; }
58 # default to make check unless the caller specifies
65 make $MAKEFLAGS $INVOCATION
82 make install $MAKEFLAGS DESTDIR
=$PWD/=destdir