aboutsummaryrefslogtreecommitdiff
path: root/tests/docker/common.rc
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-09-22 12:14:27 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-09-22 12:14:28 +0100
commita664607440511fdf8cff9d1c2afefbdbca1d1295 (patch)
tree60f1bea3059ad94867ed67ba1956556526653453 /tests/docker/common.rc
parent3aaa8d4499de2a8d07ccc2c8e6e362479e1d433f (diff)
parent4f6afe41f2ee3d8170eef7a9122d256588b707b2 (diff)
downloadqemu-a664607440511fdf8cff9d1c2afefbdbca1d1295.zip
qemu-a664607440511fdf8cff9d1c2afefbdbca1d1295.tar.gz
qemu-a664607440511fdf8cff9d1c2afefbdbca1d1295.tar.bz2
Merge remote-tracking branch 'remotes/famz/tags/build-and-test-automation-pull-request' into staging
# gpg: Signature made Fri 22 Sep 2017 08:28:38 BST # gpg: using RSA key 0xCA35624C6A9171C6 # gpg: Good signature from "Fam Zheng <famz@redhat.com>" # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 5003 7CB7 9706 0F76 F021 AD56 CA35 624C 6A91 71C6 * remotes/famz/tags/build-and-test-automation-pull-request: (36 commits) docker: Drop 'set -e' from run script docker: Use archive-source.py tests: Add README for vm tests MAINTAINERS: Add tests/vm entry Makefile: Add rules to run vm tests tests: Add OpenBSD image tests: Add NetBSD image tests: Add FreeBSD image tests: Add ubuntu.i386 image tests: Add vm test lib tests: Add a test key pair scripts: Add archive-source.sh qemu.py: Add "wait()" method gitignore: Ignore vm test images MAINTAINERS: Fix subsystem name for "Build and test automation" buildsys: Move rdma libs to per object buildsys: Move brlapi libs to per object buildsys: Move usb redir cflags/libs to per object buildsys: Move libusb cflags/libs to per object buildsys: Move libcacard cflags/libs to per object ... Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/docker/common.rc')
-rwxr-xr-xtests/docker/common.rc20
1 files changed, 14 insertions, 6 deletions
diff --git a/tests/docker/common.rc b/tests/docker/common.rc
index 6865689..87f5263 100755
--- a/tests/docker/common.rc
+++ b/tests/docker/common.rc
@@ -11,9 +11,6 @@
# or (at your option) any later version. See the COPYING file in
# the top-level directory.
-BUILD_DIR=/var/tmp/qemu-build
-mkdir $BUILD_DIR
-
requires()
{
for c in $@; do
@@ -28,11 +25,22 @@ build_qemu()
{
config_opts="--enable-werror \
${TARGET_LIST:+--target-list=${TARGET_LIST}} \
- --prefix=$PWD/install \
+ --prefix=$INSTALL_DIR \
$QEMU_CONFIGURE_OPTS $EXTRA_CONFIGURE_OPTS \
$@"
echo "Configure options:"
echo $config_opts
- $QEMU_SRC/configure $config_opts
- make $MAKEFLAGS
+ $QEMU_SRC/configure $config_opts && make $MAKEFLAGS
+}
+
+test_fail()
+{
+ echo "$@"
+ exit 1
+}
+
+prep_fail()
+{
+ echo "$@"
+ exit 2
}