From nobody Sat May 4 14:33:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1496023750096761.3189544106641; Sun, 28 May 2017 19:09:10 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B462881F07; Mon, 29 May 2017 02:09:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8813C17173; Mon, 29 May 2017 02:09:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 48E3C180BAF7; Mon, 29 May 2017 02:08:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v4T28D0H017472 for ; Sun, 28 May 2017 22:08:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1E95C18101; Mon, 29 May 2017 02:08:13 +0000 (UTC) Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1715C60F83 for ; Mon, 29 May 2017 02:08:11 +0000 (UTC) Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8717485540 for ; Mon, 29 May 2017 02:08:09 +0000 (UTC) Received: by mail-qk0-f196.google.com with SMTP id u75so7293873qka.1 for ; Sun, 28 May 2017 19:08:09 -0700 (PDT) Received: from localhost.localdomain ([189.103.224.91]) by smtp.gmail.com with ESMTPSA id u51sm5555165qta.56.2017.05.28.19.08.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 May 2017 19:08:08 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B462881F07 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B462881F07 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MpC8CDWV" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8717485540 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=claudioandre.br@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8717485540 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VdrE/PCnoB+w0nGtgy5C4A04YEpMltYSu2N6qosDRew=; b=MpC8CDWVgQQcPfPLpAwTBuGfoigevWRWQpBg4iUG9Geu2AYJijOcq5APD42FOxqWQp iTBWCG/PdFQZXQCQrYz9V3gwyluAxep4kt/bEzE3ztiWGdBkQs8qGN60+5We9emi6aXj sePFOKNX7ufx0ktjjX4vZMIAsvu/8fsJ//pWZ7152a/0OWspI8M3j5zfgiWlMS0Wrjvw ileWvUFcMoFE2vObQyZNC4HYMiCMDYIqnivvMi08OVdvMYKv1GviZhff11X1cdLhc0wP GB/kIfbyPDEbgLdbNWF55cYBc9pmSA89U0kLsBm9DwOf5b0Fh33lsuD+qHRGy7q6Uqow nObA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VdrE/PCnoB+w0nGtgy5C4A04YEpMltYSu2N6qosDRew=; b=l9IBLI/eblCoY/1VHGNq/olj6gkJ1OmjZw0rjtBAIloXdMujvwbM1lI0OYzloXKblY bg5PmKgYgYWZE90R0SzvyfVwHuRMZ1VShfIqDBFVFEPAgelA18d5cM9G4FFSJsBFoPgA Fmo9gShMZWuMm+pgnSxfstxCx4lvLoxu6JJksxrpYDu1zJk1tWoIJ5rfKb93uh0W4uO+ /47G5LYVBACmXe/maE7qQ4inlDN6xaZ4DEtQQxYLR+C0abChJW3jKfbgzx+PuMO4Quz1 yqPJCdyVk2RxUq8VSswTrkcPrPjx7iNtMbf5+egsIGyCLIDowzmw7NHIxwTnlPXUBW4b sW4A== X-Gm-Message-State: AODbwcBLJeTWL2+x2lopK1teppZOWv59GupNtVqoMU7QVSsTieIoD84J DjfSDFh09BCcqaao X-Received: by 10.55.41.102 with SMTP id p99mr8570765qkh.75.1496023688677; Sun, 28 May 2017 19:08:08 -0700 (PDT) From: claudioandre.br@gmail.com To: libvir-list@redhat.com Date: Sun, 28 May 2017 23:07:41 -0300 Message-Id: <20170529020741.14898-1-claudioandre.br@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 29 May 2017 02:08:09 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 29 May 2017 02:08:09 +0000 (UTC) for IP:'209.85.220.196' DOMAIN:'mail-qk0-f196.google.com' HELO:'mail-qk0-f196.google.com' FROM:'claudioandre.br@gmail.com' RCPT:'' X-RedHat-Spam-Score: 2.17 ** (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, SPF_PASS) 209.85.220.196 mail-qk0-f196.google.com 209.85.220.196 mail-qk0-f196.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Claudio=20Andr=C3=A9?= Subject: [libvirt] [PATCH] CI: also run tests using updated distro(s) X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 29 May 2017 02:09:07 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 From: Claudio Andr=C3=A9 It is possible to test libvirt using other distros in Travis via Docker; in= cluding (but not limited to) Fedora and Ubuntu. --- Notes: * see it working at: https://travis-ci.org/claudioandre/libvirt/builds/2370= 15534 * now, I introduced an error: https://travis-ci.org/claudioandre/libvirt/bu= ilds/237018298 * I'm using Ubuntu 17.04 because I need to pick something. Could be Xenial = and/or Fedora and/or ...; * One test is failing in Ubuntu 17.04 in Travis. The error log says: ----- TEST: virkmodtest Failed to get config !... 4 FAIL FAIL virkmodtest (exit status: 1) ----- * Since it is failing, I used the 'allow_failures'. .travis.yml | 19 +++++++++------- tests/travis-ci.sh | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++= ++++ 2 files changed, 75 insertions(+), 8 deletions(-) create mode 100755 tests/travis-ci.sh diff --git a/.travis.yml b/.travis.yml index 5a3e765..7b73761 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,11 +62,8 @@ git: before_install: - if [ "$TRAVIS_OS_NAME" =3D=3D "osx" ]; then brew update && brew instal= l gnutls libgcrypt yajl gettext rpcgen ; fi =20 -# the custom PATH is just to pick up OS-X homebrew & its harmless on Linux -before_script: - - PATH=3D"/usr/local/opt/gettext/bin:/usr/local/opt/rpcgen/bin:$PATH" ./= autogen.sh script: - - VIR_TEST_DEBUG=3D1 make -j3 && make -j3 syntax-check && make -j3 check + - tests/travis-ci.sh =20 # Environments here are run in addition to the main environment defined ab= ove matrix: @@ -79,10 +76,16 @@ matrix: dist: trusty - compiler: clang os: osx - script: - # many unit tests fail & so does syntax-check, so skip for now - # one day we must fix it though.... - - make -j3 + - services: docker + env: IMAGE=3Dubuntu:17.04 CCO=3Dgcc + dist: trusty + - services: docker + env: IMAGE=3Dubuntu:17.04 CCO=3Dclang + dist: trusty + + allow_failures: + - env: IMAGE=3Dubuntu:17.04 CCO=3Dgcc + - env: IMAGE=3Dubuntu:17.04 CCO=3Dclang =20 after_failure: - echo '=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D' diff --git a/tests/travis-ci.sh b/tests/travis-ci.sh new file mode 100755 index 0000000..d115564 --- /dev/null +++ b/tests/travis-ci.sh @@ -0,0 +1,64 @@ +#!/bin/bash -e + +function do_Install_Dependencies(){ + echo + echo '-- Installing Dependencies --' + + apt-get update -qq + apt-get -y -qq install \ + build-essential git clang autoconf libtool libcmpicppimpl0 get= text \ + xsltproc autopoint libxml2-dev libncurses5-dev libreadline-dev= \ + zlib1g-dev libgnutls28-dev libgcrypt11-dev libavahi-client-dev= libsasl2-dev \ + libxen-dev lvm2 libgcrypt11-dev libparted0-dev libdevmapper-de= v uuid-dev \ + libudev-dev libpciaccess-dev libcap-ng-dev libnl-3-dev libnl-r= oute-3-dev \ + libyajl-dev libpcap0.8-dev libnuma-dev libnetcf-dev libaudit-d= ev \ + libxml2-utils libapparmor-dev dnsmasq-base librbd-dev w3c-mark= up-validator +} + + +function do_Show_Info(){ + echo + echo '-- Environment --' + echo "Running on Docker: $DISTRO" +} + + +function do_Show_Compiler(){ + + if [[ -n $CC ]]; then + echo + echo '-- Compiler in use --' + "$CC" --version + fi +} + + +# ----------- Build and Test libvirt ----------- + +if [[ -n $IMAGE ]]; then + # Run docker using the selected image; then build and test + docker run -v "$(pwd)":/cwd -e CC=3D$CCO -e DISTRO=3D$IMAGE "$IMAGE" s= h -e -c " \ + cd /cwd; \ + tests/travis-ci.sh" + exit $? +fi + +if [[ -n $DISTRO ]]; then + do_Show_Info + do_Install_Dependencies + do_Show_Compiler +fi + +# The custom PATH is just to pick up OS-X homebrew & its harmless on Linux +PATH=3D"/usr/local/opt/gettext/bin:/usr/local/opt/rpcgen/bin:$PATH" ./auto= gen.sh + +# Build and test +if [[ "$TRAVIS_OS_NAME" =3D "osx" ]]; then + # many unit tests fail & so does syntax-check, so skip for now + # one day we must fix it though.... + make -j3 +else + VIR_TEST_DEBUG=3D1 make -j3 && make -j3 syntax-check && make -j3 check +fi + +exit $? --=20 2.11.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list