testing/next
v2 cover testing/next
Hi,
This is the current status of testing/next. I've dropped the iotests as they should come in with the rest of the block patches. I've included a few more stragglers including some docker tweaks. Currently the following could do with review:
07 - cirrus.yml reduce scope of MacOS build 08 - travis.yml bump Xcode 10 to latest dot release 09 - cirrus.yml add latest Xcode build target 15 - travis.yml enable debug tcg to check tcg 16 - tests docker set HOST_ARCH if we don t have ARCH 17 - tests docker update Travis image to a more curren
Alex Bennée (8):
travis.yml: reduce scope of the --enable-debug build cirrus.yml: reduce scope of MacOS build travis.yml: bump Xcode 10 to latest dot release cirrus.yml: add latest Xcode build target travis.yml: cache the clang sanitizer build travis.yml: --enable-debug-tcg to check-tcg tests/docker: set HOST_ARCH if we don't have ARCH tests/docker: update Travis image to a more current version
Eduardo Habkost (2):
tests/vm: Let subclasses disable IPv6
tests/vm/netbsd: Disable IPv6
Gerd Hoffmann (1):
tests/vm: netbsd autoinstall, using serial console
Philippe Mathieu-Daudé (1):
travis.yml: Test the release tarball
Thomas Huth (5):
travis.yml: Add libvdeplug-dev to compile-test net/vde.c travis.yml: Use libsdl2 instead of libsdl1.2, and install
libsdl2-image
travis.yml: Use newer version of libgnutls and libpng travis.yml: Fix the ccache lines
gitlab-ci.yml: Use libvdeplug-dev to compile-test the VDE network
backend
.cirrus.yml | 14 +- .gitlab-ci.yml | 2 +- .shippable.yml | 2 - .travis.yml | 50 +++++-- tests/docker/Makefile.include | 6 +- tests/docker/dockerfiles/travis.docker | 6 +- tests/vm/basevm.py | 15 +- tests/vm/netbsd | 195 +++++++++++++++++++++++-- 8 files changed, 259 insertions(+), 31 deletions(-)
Signature · 1 line
2.20.1
PATCH v2 1/17 travis.yml: reduce scope of the --enable-debug build
Adding debug makes things run a bit slower so lets not hammer all the targets.
---
v2
- drop superfluous --enable-debug-tcg in configure string
--- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
.travis.yml +3 -2
@@ -124,12 +124,13 @@ matrix: - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" + # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower - env: - - CONFIG="--enable-debug --enable-debug-tcg --disable-user" + - CONFIG="--enable-debug --target-list=${MAIN_SOFTMMU_TARGETS}" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug" - # TCG debug can be run just on it's own and is mostly agnostic to user/softmmu distinctions + # TCG debug can be run just on its own and is mostly agnostic to user/softmmu distinctions - env: - CONFIG="--enable-debug-tcg --disable-system" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug"
Signature · 1 line
2.20.1
PATCH v2 2/17 travis.yml: Add libvdeplug-dev to compile-test net/vde.c
In reply to Alex BennéeFrom: Thomas Huth <[email protected]>
This library is needed to compile the VDE network backend.
Message-Id: <[email protected]>
--- .travis.yml | 1 + 1 file changed, 1 insertion(+)
.travis.yml +1 -0
@@ -46,6 +46,7 @@ addons: - libssh-dev - liburcu-dev - libusb-1.0-0-dev + - libvdeplug-dev - libvte-2.91-dev - sparse - uuid-dev
Signature · 1 line
2.20.1
Re: [PATCH v2 02/17] travis.yml: Add libvdeplug-dev to compile-test net/vde.c
Quoted 17 lines · Alex Bennée
From: Thomas Huth <[email protected]>
This library is needed to compile the VDE network backend.
Signed-off-by Thomas Huth <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>--- .travis.yml | 1 + 1 file changed, 1 insertion(+).travis.yml +0
-0
.travis.yml addons: · line 52
Quoted 7 lines
.travis.yml +1
-0@@ -46,6 +46,7 @@ addons: - libssh-dev - liburcu-dev - libusb-1.0-0-dev + - libvdeplug-dev - libvte-2.91-dev - sparse - uuid-dev
PATCH v2 3/17 travis.yml: Use libsdl2 instead of libsdl1.2, and install libsdl2-image
In reply to Alex BennéeFrom: Thomas Huth <[email protected]>
We've removed support for SDL 1.2 quite a while ago already, so let's use SDL 2 now in Travis to get test coverage for SDL again. And while we're at it, also add libsdl2-image-dev which can be used by QEMU nowadays, too.
Message-Id: <[email protected]>
--- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
.travis.yml +4 -2
@@ -39,7 +39,8 @@ addons: - libpixman-1-dev - libpng12-dev - librados-dev - - libsdl1.2-dev + - libsdl2-dev + - libsdl2-image-dev - libseccomp-dev - libspice-protocol-dev - libspice-server-dev
@@ -309,7 +310,8 @@ matrix: - libpixman-1-dev - libpng12-dev - librados-dev - - libsdl1.2-dev + - libsdl2-dev + - libsdl2-image-dev - libseccomp-dev - libspice-protocol-dev - libspice-server-dev
Signature · 1 line
2.20.1
PATCH v2 4/17 travis.yml: Use newer version of libgnutls and libpng
In reply to Alex BennéeFrom: Thomas Huth <[email protected]>
libgnutls-dev and libpng12-dev are not available in newer versions of Ubuntu anymore, so installing these packages fails e.g. in the new arm64 containers on Travis. Let's use newer versions of these packages by default instead. (The old versions still get tested in the "gcc-9" build).
Message-Id: <[email protected]>
--- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
.travis.yml +2 -2
@@ -29,7 +29,7 @@ addons: - libcap-dev - libcap-ng-dev - libgcc-4.8-dev - - libgnutls-dev + - libgnutls28-dev - libgtk-3-dev - libiscsi-dev - liblttng-ust-dev
@@ -37,7 +37,7 @@ addons: - libnfs-dev - libnss3-dev - libpixman-1-dev - - libpng12-dev + - libpng-dev - librados-dev - libsdl2-dev - libsdl2-image-dev
Signature · 1 line
2.20.1
PATCH v2 5/17 travis.yml: Fix the ccache lines
In reply to Alex BennéeFrom: Thomas Huth <[email protected]>
The "command -v ccache && ccache ..." likely were supposed to test the availability of ccache before running the program. But this shell construct causes Travis to abort if ccache is not available. Use an if-statement instead to fix this problem.
Message-Id: <[email protected]>
--- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
.travis.yml +2 -2
@@ -91,13 +91,13 @@ git: before_script: - if [ "$TRAVIS_OS_NAME" == "osx" ] ; then export PATH="/usr/local/opt/ccache/libexec:$PATH" ; fi - - command -v ccache && ccache --zero-stats + - if command -v ccache ; then ccache --zero-stats ; fi - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } script: - make -j3 && travis_retry ${TEST_CMD} after_script: - - command -v ccache && ccache --show-stats + - if command -v ccache ; then ccache --show-stats ; fi matrix:
Signature · 1 line
2.20.1
PATCH v2 6/17 travis.yml: Test the release tarball
In reply to Alex BennéeFrom: Philippe Mathieu-Daudé <[email protected]>
Add a job to generate the release tarball and build/install few QEMU targets from it.
Ideally we should build the 'efi' target from the 'roms' directory, but it is too time consuming.
This job is only triggered when a tag starting with 'v' is pushed, which is the case with release candidate tags.
Message-Id: <[email protected]>
--- .travis.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
.travis.yml +23 -0
@@ -343,3 +343,26 @@ matrix: - CONFIG="--target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" - TEST_CMD="make -j3 check-tcg V=1" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" + + + # Release builds + # The make-release script expect a QEMU version, so our tag must start with a 'v'. + # This is the case when release candidate tags are created. + - if: tag IS present AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ + env: + # We want to build from the release tarball + - BUILD_DIR="release/build/dir" SRC_DIR="../../.." + - BASE_CONFIG="--prefix=$PWD/dist" + - CONFIG="--target-list=x86_64-softmmu,aarch64-softmmu,armeb-linux-user,ppc-linux-user" + - TEST_CMD="make install -j3" + - QEMU_VERSION="${TRAVIS_TAG:1}" + - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" + before_script: + - command -v ccache && ccache --zero-stats + - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} + script: + - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2 + - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 + - tar -xf ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 && cd qemu-${QEMU_VERSION} + - ./configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } + - make install
Signature · 1 line
2.20.1
PATCH v2 7/17 cirrus.yml: reduce scope of MacOS build
In reply to Alex BennéeThe MacOS build can time out on Cirrus running to almost an hour. Reduce the scope to the historical MacOS architectures much the same way we do on Travis.
--- .cirrus.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
.cirrus.yml +2 -1
@@ -1,5 +1,6 @@ env: CIRRUS_CLONE_DEPTH: 1 + MACOS_ARCHES: i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu freebsd_12_task: freebsd_instance:
@@ -22,6 +23,6 @@ macos_task: install_script: - brew install pkg-config python gnu-sed glib pixman make sdl2 script: - - ./configure --python=/usr/local/bin/python3 || { cat config.log; exit 1; } + - ./configure --python=/usr/local/bin/python3 --target-list=${MACOS_ARCHES} || { cat config.log; exit 1; } - gmake -j$(sysctl -n hw.ncpu) - gmake check -j$(sysctl -n hw.ncpu)
Signature · 1 line
2.20.1
PATCH v2 8/17 travis.yml: bump Xcode 10 to latest dot release
In reply to Alex BennéeAccording to:
https://docs.travis-ci.com/user/reference/osx/#macos-version
we have 10.3 available so lets use it. I don't know what Apple's deprecation policy is for Xcode because it requires an AppleID to find out.
--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
@@ -247,7 +247,7 @@ matrix: - env: - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu" os: osx - osx_image: xcode10.2 + osx_image: xcode10.3 compiler: clang
Signature · 1 line
2.20.1
Re: [PATCH v2 08/17] travis.yml: bump Xcode 10 to latest dot release
Quoted 19 lines · Alex Bennée
According to:
https://docs.travis-ci.com/user/reference/osx/#macos-version
we have 10.3 available so lets use it. I don't know what Apple's deprecation policy is for Xcode because it requires an AppleID to find out.
Signed-off-by Alex Bennée <[email protected]>--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).travis.yml +0
-0
.travis.yml matrix: · line 253
Quoted 8 lines
.travis.yml +1
-1@@ -247,7 +247,7 @@ matrix: - env: - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu" os: osx - osx_image: xcode10.2 + osx_image: xcode10.3 compiler: clang
PATCH v2 9/17 cirrus.yml: add latest Xcode build target
In reply to Alex BennéeCirrusCI provides a mojave-xcode alias for the latest Xcode available. Let's use it to make sure we track the latest releases.
--- .cirrus.yml | 11 +++++++++++ 1 file changed, 11 insertions(+)
.cirrus.yml +11 -0
@@ -26,3 +26,14 @@ macos_task: - ./configure --python=/usr/local/bin/python3 --target-list=${MACOS_ARCHES} || { cat config.log; exit 1; } - gmake -j$(sysctl -n hw.ncpu) - gmake check -j$(sysctl -n hw.ncpu) + +macos_xcode_task: + osx_instance: + # this is an alias for the latest Xcode + image: mojave-xcode + install_script: + - brew install pkg-config gnu-sed glib pixman make sdl2 + script: + - ./configure --cc=clang --target-list=${MACOS_ARCHES} || { cat config.log; exit 1; } + - gmake -j$(sysctl -n hw.ncpu) + - gmake check -j$(sysctl -n hw.ncpu)
Signature · 1 line
2.20.1
PATCH v2 10/17 tests/vm: netbsd autoinstall, using serial console
In reply to Alex BennéeFrom: Gerd Hoffmann <[email protected]>
Instead of fetching the prebuilt image from patchew download the install iso and prepare the image locally. Install to disk, using the serial console. Create qemu user, configure ssh login. Install packages needed for qemu builds.
Message-Id: <[email protected]>
--- tests/vm/basevm.py | 10 ++- tests/vm/netbsd | 188 ++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 186 insertions(+), 12 deletions(-)
tests/vm/basevm.py +8 -2
@@ -92,19 +92,25 @@ class BaseVM(object): logging.info("KVM not available, not using -enable-kvm") self._data_args = [] - def _download_with_cache(self, url, sha256sum=None): + def _download_with_cache(self, url, sha256sum=None, sha512sum=None): def check_sha256sum(fname): if not sha256sum: return True checksum = subprocess.check_output(["sha256sum", fname]).split()[0] return sha256sum == checksum.decode("utf-8") + def check_sha512sum(fname): + if not sha512sum: + return True + checksum = subprocess.check_output(["sha512sum", fname]).split()[0] + return sha512sum == checksum.decode("utf-8") + cache_dir = os.path.expanduser("~/.cache/qemu-vm/download") if not os.path.exists(cache_dir): os.makedirs(cache_dir) fname = os.path.join(cache_dir, hashlib.sha1(url.encode("utf-8")).hexdigest()) - if os.path.exists(fname) and check_sha256sum(fname): + if os.path.exists(fname) and check_sha256sum(fname) and check_sha512sum(fname): return fname logging.debug("Downloading %s to %s...", url, fname) subprocess.check_call(["wget", "-c", url, "-O", fname + ".download"],
tests/vm/netbsd +178 -10
218 lines not on this page · raw message
Signature · 1 line
2.20.1
PATCH v2 11/17 tests/vm: Let subclasses disable IPv6
In reply to Alex BennéeFrom: Eduardo Habkost <[email protected]>
The mechanism will be used to work around issues related to IPv6 on the netbsd image builder.
Message-Id: <[email protected]>
--- tests/vm/basevm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
tests/vm/basevm.py +4 -1
@@ -57,6 +57,8 @@ class BaseVM(object): arch = "#arch" # command to halt the guest, can be overridden by subclasses poweroff = "poweroff" + # enable IPv6 networking + ipv6 = True def __init__(self, debug=False, vcpus=None): self._guest = None self._tmpdir = os.path.realpath(tempfile.mkdtemp(prefix="vm-test-",
@@ -81,7 +83,8 @@ class BaseVM(object): self._args = [ \ "-nodefaults", "-m", "4G", "-cpu", "max", - "-netdev", "user,id=vnet,hostfwd=:127.0.0.1:0-:22", + "-netdev", "user,id=vnet,hostfwd=:127.0.0.1:0-:22" + + (",ipv6=no" if not self.ipv6 else ""), "-device", "virtio-net-pci,netdev=vnet", "-vnc", "127.0.0.1:0,to=20"] if vcpus and vcpus > 1:
Signature · 1 line
2.20.1
PATCH v2 12/17 tests/vm/netbsd: Disable IPv6
In reply to Alex BennéeFrom: Eduardo Habkost <[email protected]>
Workaround for issues when the host has no IPv6 connectivity.
Message-Id: <[email protected]>
--- tests/vm/netbsd | 7 +++++++ 1 file changed, 7 insertions(+)
tests/vm/netbsd +7 -0
@@ -63,6 +63,13 @@ class NetBSDVM(basevm.BaseVM): """ poweroff = "/sbin/poweroff" + # Workaround for NetBSD + IPv6 + slirp issues. + # NetBSD seems to ignore the ICMPv6 Destination Unreachable + # messages generated by slirp. When the host has no IPv6 + # connectivity, this causes every connection to ftp.NetBSD.org + # take more than a minute to be established. + ipv6 = False + def build_image(self, img): cimg = self._download_with_cache(self.link, sha512sum=self.csum) img_tmp = img + ".tmp"
Signature · 1 line
2.20.1
PATCH v2 13/17 travis.yml: cache the clang sanitizer build
In reply to Alex BennéeHopefully we'll see the same benefits as the other builds.
--- .travis.yml | 1 + 1 file changed, 1 insertion(+)
.travis.yml +1 -0
@@ -189,6 +189,7 @@ matrix: - env: - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} " + - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize" compiler: clang before_script: - ./configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log && exit 1; }
Signature · 1 line
2.20.1
PATCH v2 14/17 gitlab-ci.yml: Use libvdeplug-dev to compile-test the VDE network backend
In reply to Alex BennéeFrom: Thomas Huth <[email protected]>
The libvdeplug-dev package is required to compile-test net/vde.c.
Message-Id: <[email protected]>
--- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.yml +1 -1
@@ -5,7 +5,7 @@ before_script: build-system1: script: - apt-get install -y -qq libgtk-3-dev libvte-dev nettle-dev libcacard-dev - libusb-dev libvde-dev libspice-protocol-dev libgl1-mesa-dev + libusb-dev libvde-dev libspice-protocol-dev libgl1-mesa-dev libvdeplug-dev - ./configure --enable-werror --target-list="aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu lm32-softmmu moxie-softmmu microblazeel-softmmu mips64el-softmmu m68k-softmmu ppc-softmmu riscv64-softmmu sparc-softmmu"
Signature · 1 line
2.20.1
PATCH v2 15/17 travis.yml: --enable-debug-tcg to check-tcg
In reply to Alex BennéeThis adds a whole bunch of asserts which will catch bugs you might introduce into the TCG code.
--- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
.travis.yml +2 -2
@@ -334,14 +334,14 @@ matrix: # Run check-tcg against linux-user - env: - - CONFIG="--disable-system" + - CONFIG="--disable-system --enable-debug-tcg" - TEST_CMD="make -j3 check-tcg V=1" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" # Run check-tcg against softmmu targets - env: - - CONFIG="--target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" + - CONFIG="--enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" - TEST_CMD="make -j3 check-tcg V=1" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Signature · 1 line
2.20.1
Re: [PATCH v2 15/17] travis.yml: --enable-debug-tcg to check-tcg
Quoted 2 lines · Alex Bennée
This adds a whole bunch of asserts which will catch bugs you might introduce into the TCG code.
Very good idea.
Quoted 28 lines
Signed-off-by Alex Bennée <[email protected]>--- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-).travis.yml +2
-2@@ -334,14 +334,14 @@ matrix: # Run check-tcg against linux-user - env: - - CONFIG="--disable-system" + - CONFIG="--disable-system --enable-debug-tcg" - TEST_CMD="make -j3 check-tcg V=1" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" # Run check-tcg against softmmu targets - env: - - CONFIG="--target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" + - CONFIG="--enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" - TEST_CMD="make -j3 check-tcg V=1" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Re: [PATCH v2 15/17] travis.yml: --enable-debug-tcg to check-tcg
Quoted 20 lines · Philippe Mathieu-Daudé
Quoted 2 lines · Alex Bennée
This adds a whole bunch of asserts which will catch bugs you might introduce into the TCG code.
Very good idea.
Reviewed-by Philippe Mathieu-Daudé <[email protected]>Quoted 12 lines
Signed-off-by Alex Bennée <[email protected]>--- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-).travis.yml +0
-0@@ -334,14 +334,14 @@ matrix:
Quoted 6 lines
.travis.yml matrix: · line 339
Quoted 6 lines
.travis.yml +1
-1# Run check-tcg against linux-user - env: - - CONFIG="--disable-system" + - CONFIG="--disable-system --enable-debug-tcg" - TEST_CMD="make -j3 check-tcg V=1" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Hmm maybe we should change the ccache name now...
CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"?
Quoted 8 lines
.travis.yml matrix: · line 346
Quoted 8 lines
.travis.yml +1
-1# Run check-tcg against softmmu targets - env: - - CONFIG="--target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" + - CONFIG="--enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" - TEST_CMD="make -j3 check-tcg V=1" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Here too.
Re: [PATCH v2 15/17] travis.yml: --enable-debug-tcg to check-tcg
Quoted 31 lines · Philippe Mathieu-Daudé
Quoted 20 lines · Philippe Mathieu-Daudé
Quoted 2 lines · Alex Bennée
This adds a whole bunch of asserts which will catch bugs you might introduce into the TCG code.
Very good idea.
Reviewed-by Philippe Mathieu-Daudé <[email protected]>Quoted 12 lines
Signed-off-by Alex Bennée <[email protected]>--- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-).travis.yml +0
-0@@ -334,14 +334,14 @@ matrix:Quoted 6 lines
.travis.yml matrix: · line 339
Quoted 6 lines
.travis.yml +1
-1# Run check-tcg against linux-user - env: - - CONFIG="--disable-system" + - CONFIG="--disable-system --enable-debug-tcg" - TEST_CMD="make -j3 check-tcg V=1" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"Hmm maybe we should change the ccache name now...
Quoted 1 line
CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"?
I've sent a patch that applies to my currently brewing PR.
Quoted 11 lines
Quoted 9 lines
.travis.yml matrix: · line 346
Quoted 9 lines
.travis.yml +1
-1# Run check-tcg against softmmu targets - env: - - CONFIG="--target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" + - CONFIG="--enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" - TEST_CMD="make -j3 check-tcg V=1" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"Here too.
--
Alex Bennée
PATCH v2 16/17 tests/docker: set HOST_ARCH if we don't have ARCH
In reply to Alex BennéeAs the docker rules want to be able to be run on a virgin unconfigured checkout add a fallback and use it if we need to.
--- .shippable.yml | 2 -- tests/docker/Makefile.include | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-)
.shippable.yml +0 -2
@@ -27,8 +27,6 @@ env: TARGET_LIST=ppc64-softmmu,ppc64-linux-user,ppc64abi32-linux-user build: pre_ci: - # usually host ARCH is set by configure - - echo "ARCH=$(uname -m)" > config-host.mak - make docker-image-${IMAGE} V=1 pre_ci_boot: image_name: qemu
tests/docker/Makefile.include +4 -2
@@ -2,6 +2,8 @@ .PHONY: docker docker-test docker-clean docker-image docker-qemu-src +HOST_ARCH = $(if $(ARCH),$(ARCH),$(shell uname -m)) + DOCKER_SUFFIX := .docker DOCKER_FILES_DIR := $(SRC_PATH)/tests/docker/dockerfiles # we don't run tests on intermediate images (used as base by another image)
@@ -88,7 +90,7 @@ endif # Enforce dependencies for composite images docker-image-debian9-mxe: docker-image-debian9 -ifeq ($(ARCH),x86_64) +ifeq ($(HOST_ARCH),x86_64) docker-image-debian-amd64: docker-image-debian9 DOCKER_PARTIAL_IMAGES += debian-amd64-cross else
@@ -106,7 +108,7 @@ docker-image-debian-win32-cross: docker-image-debian9-mxe docker-image-debian-win64-cross: docker-image-debian9-mxe # For non-x86 hosts not all cross-compilers have been packaged -ifneq ($(ARCH),x86_64) +ifneq ($(HOST_ARCH),x86_64) DOCKER_PARTIAL_IMAGES += debian-mips-cross debian-mipsel-cross debian-mips64el-cross DOCKER_PARTIAL_IMAGES += debian-ppc64el-cross DOCKER_PARTIAL_IMAGES += debian-s390x-cross
Signature · 1 line
2.20.1
PATCH v2 17/17 tests/docker: update Travis image to a more current version
In reply to Alex BennéeThis isn't the latest one available on hub.docker.com but it does match the ID reported by the Xenial builds running on Travis:
instance: ... travis-ci-sardonyx-xenial-1553530528-f909ac5
--- tests/docker/dockerfiles/travis.docker | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
tests/docker/dockerfiles/travis.docker +5 -1
@@ -1,4 +1,8 @@ -FROM travisci/ci-sardonyx:packer-1546978056-2c98a19 +# +# Travis Image - this is broadly the same image that we run our CI +# tests on. +# +FROM travisci/ci-sardonyx:packer-1552557266-f909ac5 ENV DEBIAN_FRONTEND noninteractive ENV LANG en_US.UTF-8 ENV LC_ALL en_US.UTF-8
Signature · 1 line
2.20.1