Skip to contentSkip to conversation

Testing patches

GIT PULL Applied Fam Zheng 2 participants 6 messages Apr 9, 2018

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

The following changes since commit 08e173f29461396575c85510eb41474b993cb1fb:

Merge remote-tracking branch 'remotes/berrange/tags/qcrypto-next-pull-request' into staging (2018-04-06 17:51:21 +0100)

are available in the Git repository at:

git://github.com/famz/qemu.git tags/testing-pull-request

for you to fetch changes up to 07fed474177a4566052ea81b1563d53a37083e84:

docker: fedora: test more components (2018-04-09 15:13:02 +0800)

----------------------------------------------------------------
Testing patches

----------------------------------------------------------------

Fam Zheng (2):
tests: Fix ubuntu.i386 image initialization
docker: Inline "prep_fail" in run script

Paolo Bonzini (1):
docker: fedora: test more components

Philippe Mathieu-Daudé (1):
docker: dump 'config.log' if ./configure fails

 tests/docker/common.rc                 |  4 +++-
 tests/docker/dockerfiles/fedora.docker | 13 ++++++++++---
 tests/docker/run                       |  2 +-
 tests/vm/basevm.py                     |  5 +----
 4 files changed, 15 insertions(+), 9 deletions(-)
Signature · 1 line
2.14.3
author
#1 lore raw

[Qemu-devel] [PULL 1/4] docker: dump 'config.log' if ./configure fails

From: Philippe Mathieu-Daudé <[email protected]>

Message-Id: <[email protected]>

---
 tests/docker/common.rc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tests/docker/common.rc +3 -1
index 7951555e3f..046f8a5921 100755
@@ -30,7 +30,9 @@ build_qemu()
                  $@"
     echo "Configure options:"
     echo $config_opts
-    $QEMU_SRC/configure $config_opts && make $MAKEFLAGS
+    $QEMU_SRC/configure $config_opts || \
+        { cat config.log && test_fail "Failed to run 'configure'"; }
+    make $MAKEFLAGS
 }
 
 test_fail()
Signature · 1 line
2.14.3
author
#2 lore raw

[Qemu-devel] [PULL 2/4] tests: Fix ubuntu.i386 image initialization

In reply to Fam Zheng

The apt-get commands we run through ssh expect certain features of the tty, and refuses to work if /dev/null is used. It is ugly, but easy to satisfy.

Actually, there is no reason to hide the output. It just makes things harder to diagnose. We can always redirect in the Makefile, so don't do it conditionally here.

Message-Id: <[email protected]>

---
 tests/vm/basevm.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
tests/vm/basevm.py +1 -4
index 686d88decf..3a2d508c35 100755
@@ -107,10 +107,7 @@ class BaseVM(object):
         assert not isinstance(cmd, str)
         ssh_cmd += ["%[email protected]" % user] + list(cmd)
         logging.debug("ssh_cmd: %s", " ".join(ssh_cmd))
-        r = subprocess.call(ssh_cmd,
-                            stdin=sys.stdin if interactive else self._devnull,
-                            stdout=sys.stdout if interactive else self._stdout,
-                            stderr=sys.stderr if interactive else self._stderr)
+        r = subprocess.call(ssh_cmd)
         if check and r != 0:
             raise Exception("SSH command failed: %s" % cmd)
         return r
Signature · 1 line
2.14.3
author
#3 lore raw

[Qemu-devel] [PULL 3/4] docker: Inline "prep_fail" in run script

In reply to Fam Zheng

We don't source common.rc where prep_fail is defined, so spell out the commands and do what was intended.

Message-Id: <[email protected]>

---
 tests/docker/run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/run +1 -1
index 9dd362bb98..7aebf4b569 100755
@@ -29,7 +29,7 @@ export TEST_DIR=/tmp/qemu-test
 mkdir -p $TEST_DIR/{src,build,install}
 
 # Extract the source tarballs
-tar -C $TEST_DIR/src -xf $BASE/qemu.tar || prep_fail "Failed to untar source"
+tar -C $TEST_DIR/src -xf $BASE/qemu.tar || { echo "Failed to untar source"; exit 2; }
 if test -f $TEST_DIR/src/Makefile; then
     export FEATURES="$FEATURES dtc"
 fi
Signature · 1 line
2.14.3
author
#4 lore raw

[Qemu-devel] [PULL 4/4] docker: fedora: test more components

In reply to Fam Zheng

From: Paolo Bonzini <[email protected]>

Install optional dependencies of QEMU to get better coverage.

Message-Id: <[email protected]>

---
 tests/docker/dockerfiles/fedora.docker | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
tests/docker/dockerfiles/fedora.docker +10 -3
index a00004319e..b706f42405 100644
@@ -1,9 +1,16 @@
 FROM fedora:27
 ENV PACKAGES \
     ccache gettext git tar PyYAML sparse flex bison python3 bzip2 hostname \
-    glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
-    gcc gcc-c++ llvm clang make perl which bc findutils libaio-devel \
-    nettle-devel libasan libubsan \
+    gcc gcc-c++ llvm clang make perl which bc findutils glib2-devel \
+    libaio-devel pixman-devel zlib-devel libfdt-devel libasan libubsan \
+    bluez-libs-devel brlapi-devel bzip2-devel \
+    device-mapper-multipath-devel glusterfs-api-devel gnutls-devel \
+    gtk3-devel libattr-devel libcap-devel libcap-ng-devel libcurl-devel \
+    libjpeg-devel libpng-devel librbd-devel libssh2-devel libusbx-devel \
+    libxml2-devel lzo-devel ncurses-devel nettle-devel nss-devel \
+    numactl-devel SDL2-devel snappy-devel spice-server-devel \
+    systemtap-sdt-devel usbredir-devel virglrenderer-devel vte3-devel \
+    xen-devel \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \
     mingw32-gtk2 mingw32-gtk3 mingw32-gnutls mingw32-nettle mingw32-libtasn1 \
     mingw32-libjpeg-turbo mingw32-libpng mingw32-curl mingw32-libssh2 \
Signature · 1 line
2.14.3
#5 lore raw
In reply to Fam Zheng
Quoted 8 lines · Fam Zheng

The following changes since commit 08e173f29461396575c85510eb41474b993cb1fb:

Merge remote-tracking branch 'remotes/berrange/tags/qcrypto-next-pull-request' into staging (2018-04-06 17:51:21 +0100)

are available in the Git repository at:

git://github.com/famz/qemu.git tags/testing-pull-request

Quoted 9 lines

for you to fetch changes up to 07fed474177a4566052ea81b1563d53a37083e84:

docker: fedora: test more components (2018-04-09 15:13:02 +0800)

----------------------------------------------------------------
Testing patches

----------------------------------------------------------------

Applied, thanks.

-- PMM