summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-selftest
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2018-07-23 22:29:11 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-02 10:18:27 +0100
commit1ac19d1bf111a4836625f5cbb28a751d5c427395 (patch)
treeae9fa1448b425522952cbc8af90cf79912c746b1 /bitbake/bin/bitbake-selftest
parent0dea95093115acc08f6ad19dc931d532a601cbec (diff)
downloadpoky-1ac19d1bf111a4836625f5cbb28a751d5c427395.tar.gz
bitbake: layerindexlib: Initial layer index processing module implementation
The layer index module is expected to be used by various parts of the system in order to access a layerindex-web (such as layers.openembedded.org) and perform basic processing on the information, such as dependency scanning. Along with the layerindex implementation are associated tests. The tests properly honor BB_SKIP_NETTESTS='yes' to prevent test failures. Tests Implemented: - Branch, LayerItem, LayerBranch, LayerDependency, Recipe, Machine and Distro objects - LayerIndex setup using the layers.openembedded.org restapi - LayerIndex storing and retrieving from a file - LayerIndex verify dependency resolution ordering - LayerIndex setup using simulated cooker data (Bitbake rev: fd0ee6c10dbb5592731e56f4c592fe687682a3e6) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-selftest')
-rwxr-xr-xbitbake/bin/bitbake-selftest6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-selftest b/bitbake/bin/bitbake-selftest
index afe1603d04..7564de304c 100755
--- a/bitbake/bin/bitbake-selftest
+++ b/bitbake/bin/bitbake-selftest
@@ -22,6 +22,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib
22import unittest 22import unittest
23try: 23try:
24 import bb 24 import bb
25 import layerindexlib
25except RuntimeError as exc: 26except RuntimeError as exc:
26 sys.exit(str(exc)) 27 sys.exit(str(exc))
27 28
@@ -31,7 +32,10 @@ tests = ["bb.tests.codeparser",
31 "bb.tests.event", 32 "bb.tests.event",
32 "bb.tests.fetch", 33 "bb.tests.fetch",
33 "bb.tests.parse", 34 "bb.tests.parse",
34 "bb.tests.utils"] 35 "bb.tests.utils",
36 "layerindexlib.tests.layerindexobj",
37 "layerindexlib.tests.restapi",
38 "layerindexlib.tests.cooker"]
35 39
36for t in tests: 40for t in tests:
37 t = '.'.join(t.split('.')[:3]) 41 t = '.'.join(t.split('.')[:3])