From patchwork Thu Dec 20 15:40:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 154343 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6334508ljp; Thu, 20 Dec 2018 07:41:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/VFSd5GIu9BRinN/ZZj3Fw+J7K+rS41OTJ6OWwJDrR7jZrk9ja89qlueJBkl2U2ZdkKvM9I X-Received: by 2002:a63:2315:: with SMTP id j21mr23810239pgj.297.1545320466381; Thu, 20 Dec 2018 07:41:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545320466; cv=none; d=google.com; s=arc-20160816; b=B7aZRjF1Tp75lQw0ON0Q6iK8QPGCOiy/LoK5lZ3WmIfXH1mU+t7Kx6g9KiEStqwTBL yUD5JI/6Al6gGsutsZdEez88ubV0rZ7Rbq+m5w5tIQGyLgNxN3qxzsh3PszzPX1FlBvt J4/rlhqTJwJ2xkOuL8rMRQtOXn4bpi+pMAt4UH6/nYs9DJCjRHBQMK+vxRQMxNExZWqi lm08Yu39d5/PuHj5GHU2O0IDLO6EeFY9bDhTxwlZLZpA7fNGNHPGc+oPzeey4pjPk4EK hJG1r+pOOD7a8UMMGyDA7tFuZTysR9TxqfTLEZFe6lLPszCvk3rrauwn06vrU/CEqPRT +h8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=VJISTJmlYC/3nFlbzOT9UrDmb/uaG7WAea8XjlBIB9k=; b=b3ez2qBhYjx6noi9clkVAit54ybWtHcDOqOa0OayPCDCJgQwVbSFPf5y97qoZI3avj vlg6zuMez73DjWKvTm6kR5hLwEqu8xyj5kCxtQbyagxEs/QFjEorAfmq2O1NZQ+qEG+V 9n3wzcE4dq4ckfWbn3MrriuzodvfYc7xJfyzGlg6vANoah1U6OLHcv30dMBI01WDw4cd xuFmI8etPF40zcOgp5kfFLHVVj7TCR86rrfNw3iViJ+4CzyIdgfJsHZBb5zx5FQ25LYY 1fddedVf54cTyXNORwDJSJ+q1f+TavIfBYpiJV0EfcTTam0Xg1rNikjjoZmigBnxXTj1 v8yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=FvCJaxZJ; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d3si6100875pll.161.2018.12.20.07.41.06; Thu, 20 Dec 2018 07:41:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=FvCJaxZJ; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B95807BDEF; Thu, 20 Dec 2018 15:40:58 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mail.openembedded.org (Postfix) with ESMTP id EB2BD7BDBE for ; Thu, 20 Dec 2018 15:40:49 +0000 (UTC) Received: by mail-wr1-f48.google.com with SMTP id t27so2228514wra.6 for ; Thu, 20 Dec 2018 07:40:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=z2tPgVwKI9SfZJf0/x9NrLtyiudPIyK8r1f0sjoE4eA=; b=FvCJaxZJ23UHPIIs1UOGe4OHWqw93kQUUYZ/ip0LCDhBbzNjoQ25ezt0G+TNwyiPlP uTHAkSay/nif0zI2e8VqU7ja9T8Tcg4v7A03xj8hLZko6fOcrBWi6cA2xdBwrt+RaLIm eepxmNnk7FI6OOZdQlbLxPJaCAnnCIoexWq84NV2IiNlryfgALoInvnTdnBvSfazxw26 v/XX5iB/bW7R3zwxpdMUrfIHmWe2tyNNXKRJQvN51D9WRW48HhfGjv4Ka6S7DkT+N9zz M0SjzR8Nsu3RwL3/bVNYfAhONCxTEjErvCMLg1++hG9LrhEieIsrXYLZzy/8G3DDrVx8 Mifg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=z2tPgVwKI9SfZJf0/x9NrLtyiudPIyK8r1f0sjoE4eA=; b=B5SiU1Tvi9k6ykz9K+1AMKiRIQxmfoQUvWWbvZjTJ/lo634eYAgRC7UfPoo9p9JtDc FHywpUSOtKXGZnXruJIPVQRi8bzOTCxZgDv46tpyHEw+GVCHA7lwjQLgu5PLAV8GdZcv mGV3+X9HXXYwyumGfS9XWukcM5tc6JJdzYKCM0fkkUmFQw4AG+FEg9ePCSEKfsqV0vBw AbDqxgqVSW5rSFpu3sbLZjmzILlKhnEh91D9rO0uS34ZuL05hZzS/82R8VCpOgcADotO MRb+U3N5fKveUlQZ2NzBhj4nSCdiISk4B7N6s9zDkPd5VpOd0PWcAmnuqHXXusWps0ZV FmOQ== X-Gm-Message-State: AA+aEWZwYRQuV2Fx9lQm0VkUjFlJDyIoK7XO29UUas0FNlqV4d9dkyCQ Mmc4rZHllWQ61MgXRK7v/IWfZtk/GZE= X-Received: by 2002:adf:c846:: with SMTP id e6mr22245114wrh.243.1545320450107; Thu, 20 Dec 2018 07:40:50 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id h10sm8178307wmf.44.2018.12.20.07.40.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 07:40:48 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 20 Dec 2018 15:40:43 +0000 Message-Id: <20181220154043.7860-3-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181220154043.7860-1-ross.burton@intel.com> References: <20181220154043.7860-1-ross.burton@intel.com> Subject: [OE-core] [PATCH 3/3] oeqa/sdk: add test to exercise Meson X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Ross Burton --- meta/lib/oeqa/sdk/cases/buildepoxy.py | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta/lib/oeqa/sdk/cases/buildepoxy.py -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oeqa/sdk/cases/buildepoxy.py b/meta/lib/oeqa/sdk/cases/buildepoxy.py new file mode 100644 index 00000000000..47ae5e96df3 --- /dev/null +++ b/meta/lib/oeqa/sdk/cases/buildepoxy.py @@ -0,0 +1,36 @@ +import os +import subprocess +import tempfile +import unittest + +from oeqa.sdk.case import OESDKTestCase +from oeqa.utils.subprocesstweak import errors_have_output +errors_have_output() + +class EpoxyTest(OESDKTestCase): + """ + Test that Meson builds correctly. + """ + def setUp(self): + if not (self.tc.hasHostPackage("nativesdk-meson")): + raise unittest.SkipTest("GalculatorTest class: SDK doesn't contain Meson") + + def test_epoxy(self): + with tempfile.TemporaryDirectory(prefix="epoxy", dir=self.tc.sdk_dir) as testdir: + dl_dir = self.td.get('DL_DIR', None) + tarball = self.fetch(testdir, dl_dir, "https://github.com/anholt/libepoxy/releases/download/1.5.3/libepoxy-1.5.3.tar.xz") + + dirs = {} + dirs["source"] = os.path.join(testdir, "libepoxy-1.5.3") + dirs["build"] = os.path.join(testdir, "build") + dirs["install"] = os.path.join(testdir, "install") + + subprocess.check_output(["tar", "xf", tarball, "-C", testdir]) + self.assertTrue(os.path.isdir(dirs["source"])) + os.makedirs(dirs["build"]) + + self._run("meson -Degl=no -Dglx=no -Dx11=false {build} {source}".format(**dirs)) + self._run("ninja -C {build} -v".format(**dirs)) + self._run("DESTDIR={install} ninja -C {build} -v install".format(**dirs)) + + self.check_elf(os.path.join(dirs["install"], "usr", "local", "lib", "libepoxy.so"))