diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2018-07-23 22:29:11 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-02 10:18:27 +0100 |
commit | 1ac19d1bf111a4836625f5cbb28a751d5c427395 (patch) | |
tree | ae9fa1448b425522952cbc8af90cf79912c746b1 /bitbake/bin/bitbake-selftest | |
parent | 0dea95093115acc08f6ad19dc931d532a601cbec (diff) | |
download | poky-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-x | bitbake/bin/bitbake-selftest | 6 |
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 | |||
22 | import unittest | 22 | import unittest |
23 | try: | 23 | try: |
24 | import bb | 24 | import bb |
25 | import layerindexlib | ||
25 | except RuntimeError as exc: | 26 | except 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 | ||
36 | for t in tests: | 40 | for t in tests: |
37 | t = '.'.join(t.split('.')[:3]) | 41 | t = '.'.join(t.split('.')[:3]) |