Bug 7848 - Support external TC manifest as the input of TEST_SUITES
Summary: Support external TC manifest as the input of TEST_SUITES
Status: VERIFIED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 1.8.1
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 1.9 M1
Assignee: Costin
QA Contact: Cathy Shen
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-06-05 03:32 UTC by Cathy Shen
Modified: 2015-08-20 04:33 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cathy Shen 2015-06-05 03:32:47 UTC
Run a specific test case list flexibly by an manifest file, but not put the case names in TEST_SUITES value.

There are two solutions, but the first one is much flexible and we'll have patch submitted to Yocto.

1. TEST_SUITES = "${@read_testlist("/some/file")}"
2. bitbake -r mytests.conf <other options>
Comment 1 Cathy Shen 2015-06-11 09:05:55 UTC
For "bitbake -r mytests.conf <other options>", the limitation is it depend on bitbake, and the mytests.conf is a bitbake specific format, we'd like to run exported test in the environment which might not have bitbake environment with more generic format, like manifest or json. 
So we prefer the solution "TEST_SUITES = "${@read_testlist("/some/file")}""

One more additional request for this ticket: Is it possible to support multiple manifest file as the input? We'd like this capability as well. Thanks!
Comment 2 zjh 2015-07-02 09:18:36 UTC
User can specify TESTSUITE by external files in local.conf, e.g.
TEST_SUITES_MANIFEST = "test1.manifest  test2.manifest". The files lie in build/conf/. TEST_SUITES_MANIFEST supports relative path(which relative to build/conf/) and absolute path.
Although the way like TEST_SUITES = "${@read_testlist(d, "test1.manifest")"
is also workable, per testing, it has performance issue because running a couple of times during BB parsing stage.
Comment 3 Cathy Shen 2015-07-14 06:04:44 UTC
Merged to poky master branch. Commit ID: 245899cc98881d2be784f8e7302120765c2bc7f
Comment 4 Cathy Shen 2015-07-14 06:08:03 UTC
verified with poky master branch.