]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/docker: add docs FEATURE flag and use for test-misc
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 14 Apr 2020 20:06:20 +0000 (21:06 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 15 Apr 2020 10:38:23 +0000 (11:38 +0100)
The test-misc docker test fails on a number of images which don't have
the prerequisites to build the docs. Use the FEATURES flag so we can
skip those tests.

As the sphinx test fails to detect whatever feature we need to get
hxtool to work we drop them from debian9 so the windows build doesn't
attempt to build the docs.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200414200631.12799-7-alex.bennee@linaro.org>

tests/docker/dockerfiles/debian10.docker
tests/docker/dockerfiles/debian9.docker
tests/docker/dockerfiles/fedora.docker
tests/docker/dockerfiles/travis.docker
tests/docker/dockerfiles/ubuntu.docker
tests/docker/dockerfiles/ubuntu1804.docker
tests/docker/test-misc

index 2fcdc406e83111ca3b2a7c4ea869b02d39d69429..0769700a4165169d576d132fe37158a026bcfeb0 100644 (file)
@@ -34,3 +34,5 @@ RUN apt update && \
         python3-sphinx \
         texinfo \
         $(apt-get -s build-dep qemu | egrep ^Inst | fgrep '[all]' | cut -d\  -f2)
+
+ENV FEATURES docs
index 92edbbf0f48058c384ca711a478cd6889f9e0448..08cc970feb1d7ec415c41eba52bd67dce9a2dfdc 100644 (file)
@@ -30,6 +30,4 @@ RUN apt update && \
         pkg-config \
         psmisc \
         python3 \
-        python3-sphinx \
-        texinfo \
         $(apt-get -s build-dep qemu | egrep ^Inst | fgrep '[all]' | cut -d\  -f2)
index 4bd2c953af80821fbcf955fc707bd9da984fcfc0..179575ecaaa9c413cf0ebfc0d275a0ee316737b4 100644 (file)
@@ -103,4 +103,4 @@ ENV QEMU_CONFIGURE_OPTS --python=/usr/bin/python3
 RUN dnf install -y $PACKAGES
 RUN rpm -q $PACKAGES | sort > /packages.txt
 ENV PATH $PATH:/usr/libexec/python3-sphinx/
-ENV FEATURES mingw clang pyyaml asan
+ENV FEATURES mingw clang pyyaml asan docs
index e8eb48dccfd523a79ea8871c38de69a6f9532335..591282561bc59241bb71dac370240395cb452127 100644 (file)
@@ -13,5 +13,5 @@ RUN apt-get -y install device-tree-compiler python3 python3-yaml dh-autoreconf g
 # Travis tools require PhantomJS / Neo4j / Maven accessible
 # in their PATH (QEMU build won't access them).
 ENV PATH /usr/local/phantomjs/bin:/usr/local/phantomjs:/usr/local/neo4j-3.2.7/bin:/usr/local/maven-3.5.2/bin:/usr/local/cmake-3.9.2/bin:/usr/local/clang-5.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-ENV FEATURES clang pyyaml
+ENV FEATURES clang pyyaml docs
 USER travis
index b6c7b41ddddc9f43a0bcdbf78e99e9e718411524..eeb3b22bf20f2294ee3495be885f8a4edd83022f 100644 (file)
@@ -68,4 +68,4 @@ ENV PACKAGES flex bison \
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES
 RUN dpkg -l $PACKAGES | sort > /packages.txt
-ENV FEATURES clang pyyaml sdl2
+ENV FEATURES clang pyyaml sdl2 docs
index 1efedeef995aab35e78c3e789ac84529288b9b91..f66b06f4cffaf6b2c34f5147aee161c484c08b34 100644 (file)
@@ -54,7 +54,7 @@ ENV PACKAGES flex bison \
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES
 RUN dpkg -l $PACKAGES | sort > /packages.txt
-ENV FEATURES clang pyyaml sdl2
+ENV FEATURES clang pyyaml sdl2 docs
 
 # https://bugs.launchpad.net/qemu/+bug/1838763
 ENV QEMU_CONFIGURE_OPTS --disable-libssh
index d480afedca7b6949aebec4d31d235887b61e6a32..cc94a738dd0a76e74be19dfe79b97f5fbe4cb644 100755 (executable)
@@ -14,6 +14,8 @@
 
 . common.rc
 
+requires docs
+
 cd "$BUILD_DIR"
 
 # build everything else but QEMU