From patchwork Thu Oct 31 10:55:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 178159 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2649885ill; Thu, 31 Oct 2019 03:55:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDyPbhPz3z1kqQDBVeIxjhZ0U9DYH6QgAdWkuGIabxHtiZLMFQ+T8mF348X7+OfsLS+y9y X-Received: by 2002:a17:902:7d90:: with SMTP id a16mr5730605plm.149.1572519344096; Thu, 31 Oct 2019 03:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572519344; cv=none; d=google.com; s=arc-20160816; b=ZO7KiVjunO2h6y07PodI6TYxRaRdxpHvlRDpjr7WGFgkefBsoVNmLxG+s4a4LIf/y7 2R6FHniKKx5mE+L+R2Jm8Zqa6yu6Nz9lqoSQIyQYzM2XNTMSOqjDXuGCVMW50fn7p/Pz Y+el5cwtN8cA+S+Pz3dCOC8sJQGmQ5LHz0TsgqltlqgQG44OCZt6uw9vKcSrGeRNFAzf BKUo5E8eESBcmlZO+hif0YLNcm0HDOTOCvWQuno75lq5LXHEdqHJHxfR36XKDdaA617Y VzkCjxRMSByKfFWBUQM9gWpCcCqFmH8TTQ2QfOZbEFPc8rw7zg1sS/RG7BcdesEcvAH5 d7QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=Rn3yyXlX0WjNhio2zZStW3cOH9p4NJRmupFsj3slNYc=; b=cfgFz5yPsGCB25VuqJTGzRWGkxX3b0S8TEeKNry8H2zuHjcKMneVeQ902S0XY0UOnx 4RBY0edZdrIEbql5/wMybddI+4AufOasgiWzRi4t+dF+AL4Icuf20aaLmL/cjFKfKby1 Resyijtbs6syMlVOM+he4N9woy9tfAVWmLvDA1Cucn/WGzdfu2LM7TlHuf1GCF7BRUgo ENauK0eAciSFftISEy6Vo0EqlhbDk3L7rOcoFPuyFGKZYDycn5S/apvOEHi1avR6O/4C EWP4ZVqWj/sjmQzaWUxnapwlclmqMPn59cWQMFnWtCaS7d7DSSny3TGWB2DQWq4fBTey 9QJA== 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=Y+9XfQM0; 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 w3si6710878pjr.29.2019.10.31.03.55.43; Thu, 31 Oct 2019 03:55:44 -0700 (PDT) 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=Y+9XfQM0; 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 ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id CBAFF7F977; Thu, 31 Oct 2019 10:55:32 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mail.openembedded.org (Postfix) with ESMTP id 276747F8C1 for ; Thu, 31 Oct 2019 10:55:25 +0000 (UTC) Received: by mail-wr1-f54.google.com with SMTP id a15so5695075wrf.9 for ; Thu, 31 Oct 2019 03:55:26 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=8fIwJOX0fsnlGI01nmYMGTosD7a5R94DneBtFy6+O1Q=; b=Y+9XfQM0Tj5XXIjLZUcAW9+HhimTWHavM8nxEy01VKxhwWosQcdixqkfmGLTXUNDZ6 Own2SFIDM0O8GLZ6GXgwKvOHniIOFveYRXLMrtt8JjZZpd/Mo0BnIBpWzIc1vin8NKpc sU/OUSFhYk0v0IiC3NFPm9HIz4XFOgLhuz6HtNfZqJEuxWFlkzliD5F43lFoUDFU+YUU EEJnZ/tVFuTj+ILbE+lHSC7oi8PYF2Zrk2QJj6fJPXwSURaDhnWKs0h6NLIGapf00Ujn uPWlDX/nPkvwfXJng0V+6wUzv+DJw35qJ8UH71ZR3zSaJ3cX7b04VJXxrSfNI9e1oKK8 20UA== 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:mime-version:content-transfer-encoding; bh=8fIwJOX0fsnlGI01nmYMGTosD7a5R94DneBtFy6+O1Q=; b=dHMCU8LgW2z7v5ANEqc/vY/EkQAKaqre2Vwmlw0JcXUKVXZ7XBfo6ZFNTdhSaaUdJL qNOuv4b83wUfhgrUqzyBj3OoQpXHvKr9nZCaIcwRXt3V6JIaPXlbNVZe9LFnIGjVZ2EV gz5Lh8NtzHu6DoW10FWLvICC5+N1w65kvVuuMs9Bg6RDA5BYehf/k4JcsYJOqgpF+ZpK 9TWTbr47LrxHOfp/5qI3aXkdHwYylA39nVpl8ok9k5jAJvGw49GI1kSWS7qFaW+CX0Tw KzpphzQg5lul3j78U6ssSfNEl1p5e7P25trFsPlrmIDrEKmnAlN+EuK5c+PAqzA7r49b SRbA== X-Gm-Message-State: APjAAAXlrdIyS7nwopoa2kX0jhBm0S5WWFdONuQyhNTIPINj61fcMsBu o380s231H4jfMafAd3+I/fw2gdmTW5w= X-Received: by 2002:adf:ee03:: with SMTP id y3mr4862276wrn.116.1572519325741; Thu, 31 Oct 2019 03:55:25 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l4sm2836496wml.33.2019.10.31.03.55.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 03:55:25 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 31 Oct 2019 10:55:15 +0000 Message-Id: <20191031105518.7716-4-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191031105518.7716-1-ross.burton@intel.com> References: <20191031105518.7716-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 4/7] oeqa/selftest: add test for oe-run-native 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org A small test to verify that oe-run-native is correctly working. Signed-off-by: Ross Burton --- meta/lib/oeqa/selftest/cases/oescripts.py | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oeqa/selftest/cases/oescripts.py b/meta/lib/oeqa/selftest/cases/oescripts.py index c169885cf32..80d8b2c4cca 100644 --- a/meta/lib/oeqa/selftest/cases/oescripts.py +++ b/meta/lib/oeqa/selftest/cases/oescripts.py @@ -121,3 +121,9 @@ class OEGitproxyTests(OESelftestTestCase): if dash is None: self.skipTest("No \"dash\" found on test system.") self.run_oegitproxy(custom_shell=dash) + +class OeRunNativeTest(OESelftestTestCase): + def test_oe_run_native(self): + bitbake("qemu-helper-native -c addto_recipe_sysroot") + result = runCmd("oe-run-native qemu-helper-native tunctl -h") + self.assertIn("Delete: tunctl -d device-name [-f tun-clone-device]", result.output)