]> code.ossystems Code Review - openembedded-core.git/commit
oe-selftest: devtool: add some tests for devtool add -f
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 28 Apr 2015 16:49:55 +0000 (17:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 May 2015 16:08:11 +0000 (17:08 +0100)
commit0e626639ee75d42cb44d357efe2d9c4d2ff65294
tree1c1dd53df7834df20d3883181169b7f3b9ae7f2e
parentc9304fcb0a2b81700d0ed5c13b4d976bd4230ce3
oe-selftest: devtool: add some tests for devtool add -f

Tests the following aspects of "devtool add" with the -f option:
* Works for a git and https URI
* Extracts to the appropriate directory
* Uses the correct recipe file name with and without -V
* Sets SRC_URI and S appropriately with and without -V
* Sets SRCREV if rev= is specified in the URI

A lot of this functionality relies on "recipetool create" which
"devtool add" wraps around, so the associated behaviour of that is also
being tested here.

Refactor out the code to check a recipe for variable values / inherits
at the same time so we can use it to check the generated recipe.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/lib/oeqa/selftest/devtool.py