From patchwork Fri Jul 13 12:17:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 141877 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp741970ljj; Fri, 13 Jul 2018 05:29:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcVngChlEUQajN04gRapBcOVRsXQBwmOfncAwgOfcAwqYKzGw4O7chRio38F4aF8UwpQg2f X-Received: by 2002:ac8:2d8c:: with SMTP id p12-v6mr5556460qta.262.1531484958701; Fri, 13 Jul 2018 05:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531484958; cv=none; d=google.com; s=arc-20160816; b=gG3kT1SeZ60VoXxOIHbYRwCLEEf9s1OlOBxIjSlr6lYbSrswxu7zL+JHDJJNU670D0 VE57+6lTMdXWYiQjwQoxovP2wSP4q2ovKCLgFZyrGwpnHUIJxS2tIXTI8WaGEGlsRi/S /1dFRq8viGgxEVEgE+GfmIDOlgMSoQwKGHmln0FD+hIeA7RQT02yMbfFv8jPsaWLp+e8 zeixpAFAy9XGSz6ertQ4xcPbCxfALavvj1cyua1BOJNseFNy95GPuEwQciq+8Mmi80Dm 2lslQ3aiaYfGC0rIQKuARbJ/Jub9dHLoFwK8OLyCDQQXwZV/blUXBT8h4BA6quLG0IbC XpPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=xuGTdDm3QUQTf7D3BLWtPMdNmJ0jQ/xVW6mgIgF9oa8=; b=zRiOfv/ZQ6jg/9AwVBl12LHqmuugQgVgvd3FsySOCoBU0DPgiUii27iAqHObHt+Xg0 FMzCsCR8SLO4TTnuzacEJLefXG7zkMuAJaIqHFsdk/+LAzcdxYObwxmyf72eo0GoyNAP e1D8uIoTfsJxyqc4bdNM4DQE9o/bW75aZ3764JeHU0bxcSU76FKTPVOquxT6llVto8PY XUWcrcnAzTJaafIPWqSkYWgovD7JXSAU7IGuarKoQD1HvxgKJ9wBGLJmzJnaJurTO1qE ttlAIINBRlGnDBG+XnDzy+ooVAVCYAuzyPhYFx5j7Mgau0P7CJTt4CMYgnYRwr68kjHd uXLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=c6dIBPE1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c9-v6si3886457qtp.72.2018.07.13.05.29.18 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 13 Jul 2018 05:29:18 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=c6dIBPE1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:37026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdxCI-0004up-42 for patch@linaro.org; Fri, 13 Jul 2018 08:29:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdx1I-0004p7-DO for qemu-devel@nongnu.org; Fri, 13 Jul 2018 08:17:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdx1G-0003q6-0X for qemu-devel@nongnu.org; Fri, 13 Jul 2018 08:17:56 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:53801) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdx1F-0003ol-QD for qemu-devel@nongnu.org; Fri, 13 Jul 2018 08:17:53 -0400 Received: by mail-wm0-x242.google.com with SMTP id s9-v6so1304801wmh.3 for ; Fri, 13 Jul 2018 05:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xuGTdDm3QUQTf7D3BLWtPMdNmJ0jQ/xVW6mgIgF9oa8=; b=c6dIBPE1phj0wKHX4zvJHuda+jrpZyccGPxWNTPydiVzOBg0xsqxg83n/YKu0URdRn FxnJjgP/ojRCUUcyUsloHFc3jNwF8JuZOJj+qgSWFe7LifUTTNHM69jcLjL736oUIJH0 vXzzx1VznvAldU0vxotsxPAxQmjzL0Lt4t5js= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=xuGTdDm3QUQTf7D3BLWtPMdNmJ0jQ/xVW6mgIgF9oa8=; b=biphfYDak+KtElh08T916cSyAfljcMqAxPRcfbD+IW/670doHH1lTXkml3+cY2DoBI Si47iLYiRqDOzUZpgVSTgdVSvfjFJSv09iiKUw+FiSIoXxDD6BRvovLkGF73WvFOPKqf ex99v0iIKhl5uVMyS4qCOUo7xqDMK/drRZ5nvKodrPSmMf8K4XsqMXvH8MM471D/5t1p 94RLzOYud2qMS8KwcYzaEnDCRqFXeFEl3/vqSHy61y9Zeon5fbo56r6NeuvHzS0jZTzr TR8c9+rEkVMTX+pV7F28mu/mdVUVW0sCwDk2bx1TWCvqpkEvnni9ibzcaxELKoL656uY yq8A== X-Gm-Message-State: AOUpUlFaBOSJO5M2uqSZeqTZCoePlgYFzCr/RHPNKT/y8nvn+whno5vV r+W9VTt/a3jy0x4upSy6XmMmUw== X-Received: by 2002:a1c:5e48:: with SMTP id s69-v6mr3641405wmb.19.1531484272819; Fri, 13 Jul 2018 05:17:52 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b11-v6sm15998438wrv.82.2018.07.13.05.17.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Jul 2018 05:17:48 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id B4E963E07B9; Fri, 13 Jul 2018 13:17:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Fri, 13 Jul 2018 13:17:35 +0100 Message-Id: <20180713121741.19262-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180713121741.19262-1-alex.bennee@linaro.org> References: <20180713121741.19262-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::242 Subject: [Qemu-devel] [PATCH v2 for 3.0 10/16] docker: add test-unit runner X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This test doesn't even build QEMU, it just builds and runs all the unit tests. Intended to make checking unit tests on all docker images easier. Signed-off-by: Alex Bennée --- v2 - make script -e to error out on failure - add comment as to why the configure step is run --- tests/docker/test-unit | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tests/docker/test-unit -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/test-unit b/tests/docker/test-unit new file mode 100755 index 0000000000..8905d01150 --- /dev/null +++ b/tests/docker/test-unit @@ -0,0 +1,21 @@ +#!/bin/bash -e +# +# Build and run the unit tests +# +# Copyright (c) 2018 Linaro Ltd. +# +# Authors: +# Alex Bennée +# +# 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" + +# although we are not building QEMU itself we still need a configured +# build for the unit tests to be built and run +configure_qemu +check_qemu check-unit