On 12/13/2016 10:32 AM, Burton, Ross wrote:
On 13 December 2016 at 16:17, Burton, Ross <[email protected]
<mailto:[email protected]>> 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é
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core