tests/docker: add test script for static linux-user builds
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 Aug 2020 14:24:29 +0000 (16:24 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Aug 2020 10:18:35 +0000 (06:18 -0400)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/docker/test-static [new file with mode: 0755]

diff --git a/tests/docker/test-static b/tests/docker/test-static
new file mode 100755 (executable)
index 0000000..372ef6f
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/bash -e
+#
+# Compile QEMU user mode emulators as static binaries on Linux.
+#
+# Copyright (c) 2020 Red Hat Inc.
+#
+# Authors:
+#  Paolo Bonzini <pbonzini@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.
+
+. common.rc
+
+cd "$BUILD_DIR"
+
+build_qemu \
+    --disable-system \
+    --disable-tools \
+    --disable-guest-agent \
+    --disable-docs \
+    --static
+install_qemu