From patchwork Tue Jul 17 19:55:45 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: 142206 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4071007ljj; Tue, 17 Jul 2018 12:59:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpckIN+fePGpJJIKx7A09cFllvBAHuMCDgItDI2f+GODgw7PlFqmEx25djZG631IXomaqVNr X-Received: by 2002:ac8:1bdd:: with SMTP id m29-v6mr3033004qtk.318.1531857574361; Tue, 17 Jul 2018 12:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531857574; cv=none; d=google.com; s=arc-20160816; b=shOd28oZqWkvqhfuf8xNxDMwIKp6pPvW/g4ZSC2Xp2sXO+PNtQsyves7WzojZNQYj4 unD8N0fSzBMzEMgl/INoapAL7XubPnOT0NLaFkIOsV4wUxMuHh/LGrO7QfVWYm3FqCbd IYrP+KC16wBDNgH0iKwQzzLctcvw3rWfYQi+eNgw4GM6w2aea4Qi3GpM3dWBHlUZ9K9C b8nE1qg2Q/X9twniOvjQv3UErnQQ2qPcIfRTojNjTBrPeJ5wmMN8ABO6gwve/Em0cg9R a/okWpmCTepTg+VEp7YsIBqD2pyShwnW8xLjGPhwrvTa7HIzYpkvwjceXVr/IrTXkuGE ZEXw== 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=q0tIQwCUMfDfDvaDmnBY9FLc57UmCoUBHB+PkCRBiOo=; b=t0333J1DJ9g/O7o5AdF52R4OLPxkeKoHOReu3NELXtfYiMR5ghR5O1V46JZ9sLVjws imJWeKar7i983whqrgsWABX85C1MwSgazo5NRu2ZYkN+g3SM7ANt7OZWAA4XqpbJvctG BbmrEjTdnNGD/EVHD6WosbQH6JUVB0wT3hDKnTTQ1SP8uEX8lLtbvzLeAYK/D+huCZ6s 8nIEVcbBJBsXWgSBLkjLY4D1xsCMAc9l3bzvMaVIWPM26lvue02+wFCoh6DEg89f4wmd GAuNsWmtpqu5qMzNOuwGxxd1AYY9IWnFnTbrwjICC76AbzVvxSPxKU1NChAkBJpMW3l9 LevA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bWf5H1uq; 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 r25-v6si115213qkh.82.2018.07.17.12.59.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Jul 2018 12:59:34 -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=bWf5H1uq; 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]:32933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffW8D-0005mY-O8 for patch@linaro.org; Tue, 17 Jul 2018 15:59:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffW4s-00033u-4v for qemu-devel@nongnu.org; Tue, 17 Jul 2018 15:56:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffW4r-0004iT-86 for qemu-devel@nongnu.org; Tue, 17 Jul 2018 15:56:06 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:35307) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ffW4r-0004hU-1e for qemu-devel@nongnu.org; Tue, 17 Jul 2018 15:56:05 -0400 Received: by mail-wr1-x443.google.com with SMTP id a3-v6so2390104wrt.2 for ; Tue, 17 Jul 2018 12:56:04 -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=q0tIQwCUMfDfDvaDmnBY9FLc57UmCoUBHB+PkCRBiOo=; b=bWf5H1uqZjwLPWqIVBuaNrEx26HttnC6C8imB+M1DFZwCCTE+arARkuFCFHPXRsEir 9UAxENkUbTtPkWx0/iVVt+5dYb8e8gmGMiQjzk+NlcsjF/epMDRKm76qHWfbZRl9rOLa bjVO/wQYl5pkqhQ20P9VEyyBI2RChnKo27RhE= 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=q0tIQwCUMfDfDvaDmnBY9FLc57UmCoUBHB+PkCRBiOo=; b=P2u1RmKNpSUlgk6JNwU+sWaLqJZZhCxnL7QAb04dxJuZpRR5P3HGLSzG56OChTIxvu qMoS9EO4uW60edrS/zKtCkRDwcgVX5+F3ddEB8h8QZP9dAsee3+550mjZxeFbjqbRirI gLUG72n0QopNvkoMT4t2It7IOhwUQRqQluR+CgWXmxNmEMoAvMoKHjFcDawrfRUC/PYp clgrEgGjNiQjK2PMHXt9XfhuKaom6a0TBNLwsBcTqdfulCXfv3c3LdGcvviN9AuYSeRp wJc3iSQCL0Sh5iI0wZ0m8g7ZeVdMYGcez5/ItkG8VMSJ2uEVr0BTlhgUtnGgfggBC9t9 KVHg== X-Gm-Message-State: AOUpUlFaQTHPQa6aSAKry2PIhh5IerNNEt/ziI2oqjrfJABWLGrgN+co EHtRl46InEsjAGax/GfmU9yA5Q== X-Received: by 2002:adf:8385:: with SMTP id 5-v6mr2340448wre.13.1531857363869; Tue, 17 Jul 2018 12:56:03 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t184-v6sm637141wmf.18.2018.07.17.12.55.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 12:56:01 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id A17643E075F; Tue, 17 Jul 2018 20:55:54 +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: Tue, 17 Jul 2018 20:55:45 +0100 Message-Id: <20180717195553.9111-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180717195553.9111-1-alex.bennee@linaro.org> References: <20180717195553.9111-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:4864:20::443 Subject: [Qemu-devel] [PATCH v3 for 3.0 10/18] 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 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- 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 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