From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mail.openembedded.org (Postfix) with ESMTP id 289EC71E14 for ; Tue, 13 Dec 2016 16:43:35 +0000 (UTC) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 13 Dec 2016 08:42:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,342,1477983600"; d="scan'208,217";a="1098613439" Received: from jgperezc.zpn.intel.com (HELO [10.219.5.150]) ([10.219.5.150]) by fmsmga002.fm.intel.com with ESMTP; 13 Dec 2016 08:42:33 -0800 To: "Burton, Ross" References: <1479227073-13133-1-git-send-email-jose.perez.carranza@linux.intel.com> From: Jose Perez Carranza Message-ID: Date: Tue, 13 Dec 2016 10:53:27 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Cc: OE-core Subject: Re: [PATCH v2] oe-tests: Migrate tests from /oe/test to /oeqa/selftest/oe-tests 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: , X-List-Received-Date: Tue, 13 Dec 2016 16:43:37 -0000 Content-Type: multipart/alternative; boundary="------------3D0F63277BD71E46D2FD5E2F" --------------3D0F63277BD71E46D2FD5E2F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 12/13/2016 10:32 AM, Burton, Ross wrote: > > On 13 December 2016 at 16:17, Burton, Ross > wrote: > > It took over a minute to load a few tests. Do you have any idea > why the discovery is so slow? > > at my host is very fast the load (1 second) jgperezc@jgperezc:~/poky-oetest/build$ oe-selftest -r oelib-tests.elf oelib-tests.license oelib-tests.path oelib-tests.types oelib-tests.utils 2016-12-13 10:48:28,333 - selftest - INFO - Running bitbake -e to get BBPATH 2016-12-13 10:48:29,125 - selftest - INFO - Checking that everything is in order before running the tests 2016-12-13 10:48:29,833 - selftest - INFO - Running bitbake -p 2016-12-13 10:48:52,181 - selftest - INFO - test runner init'ed like unittest 2016-12-13 10:48:52,995 - selftest - INFO - Loading tests from: oeqa.selftest.oelib-tests.elf 2016-12-13 10:48:52,998 - selftest - INFO - Loading tests from: oeqa.selftest.oelib-tests.license 2016-12-13 10:48:53,000 - selftest - INFO - Loading tests from: oeqa.selftest.oelib-tests.path 2016-12-13 10:48:53,001 - selftest - INFO - Loading tests from: oeqa.selftest.oelib-tests.types 2016-12-13 10:48:53,003 - selftest - INFO - Loading tests from: oeqa.selftest.oelib-tests.utils 2016-12-13 10:48:53,005 - selftest - INFO - Adding: "include selftest.inc" in local.conf 2016-12-13 10:48:53,005 - selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf > Oh, it's because oeselftest does bitbake calls isn't it. > > Good news: you don't need to use oeSelfTest at all, the discovery > works fine with standard unittest.TestCase objects. > > Patch incoming. :) > Ok, just wondering if oe-selftest -l will also list those test cases ?? > Ross > -- Saludos José --------------3D0F63277BD71E46D2FD5E2F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit



On 12/13/2016 10:32 AM, Burton, Ross wrote:

On 13 December 2016 at 16:17, Burton, Ross <ross.burton@intel.com> wrote:
It took over a minute to load a few tests.  Do you have any idea why the discovery is so slow?

at my host is very fast the load (1 second)

jgperezc@jgperezc:~/poky-oetest/build$ oe-selftest  -r oelib-tests.elf oelib-tests.license oelib-tests.path oelib-tests.types oelib-tests.utils
2016-12-13 10:48:28,333 - selftest - INFO - Running bitbake -e to get BBPATH
2016-12-13 10:48:29,125 - selftest - INFO - Checking that everything is in order before running the tests
2016-12-13 10:48:29,833 - selftest - INFO - Running bitbake -p
2016-12-13 10:48:52,181 - selftest - INFO - test runner init'ed like unittest
2016-12-13 10:48:52,995 - selftest - INFO - Loading tests from: oeqa.selftest.oelib-tests.elf
2016-12-13 10:48:52,998 - selftest - INFO - Loading tests from: oeqa.selftest.oelib-tests.license
2016-12-13 10:48:53,000 - selftest - INFO - Loading tests from: oeqa.selftest.oelib-tests.path
2016-12-13 10:48:53,001 - selftest - INFO - Loading tests from: oeqa.selftest.oelib-tests.types
2016-12-13 10:48:53,003 - selftest - INFO - Loading tests from: oeqa.selftest.oelib-tests.utils
2016-12-13 10:48:53,005 - selftest - INFO - Adding: "include selftest.inc" in local.conf
2016-12-13 10:48:53,005 - selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf

Oh, it's because oeselftest does bitbake calls isn't it.

Good news: you don't need to use oeSelfTest at all, the discovery works fine with standard unittest.TestCase objects.

Patch incoming. :)

Ok, just wondering if oe-selftest -l will also list those test cases ??
Ross
 


-- 
Saludos 
José 
--------------3D0F63277BD71E46D2FD5E2F--