diff options
Diffstat (limited to 'bitbake/lib/layerindexlib/tests/testdata')
6 files changed, 104 insertions, 0 deletions
diff --git a/bitbake/lib/layerindexlib/tests/testdata/README b/bitbake/lib/layerindexlib/tests/testdata/README new file mode 100644 index 0000000000..36ab40bebe --- /dev/null +++ b/bitbake/lib/layerindexlib/tests/testdata/README | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | This test data is used to verify the 'cooker' module of the layerindex. | ||
| 2 | |||
| 3 | The module consists of a faux project bblayers.conf with four layers defined. | ||
| 4 | |||
| 5 | layer1 - openembedded-core | ||
| 6 | layer2 - networking-layer | ||
| 7 | layer3 - meta-python | ||
| 8 | layer4 - openembedded-layer (meta-oe) | ||
| 9 | |||
| 10 | Since we do not have a fully populated cooker, we use this to test the | ||
| 11 | basic index generation, and not any deep recipe based contents. | ||
diff --git a/bitbake/lib/layerindexlib/tests/testdata/build/conf/bblayers.conf b/bitbake/lib/layerindexlib/tests/testdata/build/conf/bblayers.conf new file mode 100644 index 0000000000..40429b2f66 --- /dev/null +++ b/bitbake/lib/layerindexlib/tests/testdata/build/conf/bblayers.conf | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | LAYERSERIES_CORENAMES = "sumo" | ||
| 2 | |||
| 3 | # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf | ||
| 4 | # changes incompatibly | ||
| 5 | LCONF_VERSION = "7" | ||
| 6 | |||
| 7 | BBPATH = "${TOPDIR}" | ||
| 8 | BBFILES ?= "" | ||
| 9 | |||
| 10 | BBLAYERS ?= " \ | ||
| 11 | ${TOPDIR}/layer1 \ | ||
| 12 | ${TOPDIR}/layer2 \ | ||
| 13 | ${TOPDIR}/layer3 \ | ||
| 14 | ${TOPDIR}/layer4 \ | ||
| 15 | " | ||
diff --git a/bitbake/lib/layerindexlib/tests/testdata/layer1/conf/layer.conf b/bitbake/lib/layerindexlib/tests/testdata/layer1/conf/layer.conf new file mode 100644 index 0000000000..966d531959 --- /dev/null +++ b/bitbake/lib/layerindexlib/tests/testdata/layer1/conf/layer.conf | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # We have a conf and classes directory, add to BBPATH | ||
| 2 | BBPATH .= ":${LAYERDIR}" | ||
| 3 | # We have recipes-* directories, add to BBFILES | ||
| 4 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb" | ||
| 5 | |||
| 6 | BBFILE_COLLECTIONS += "core" | ||
| 7 | BBFILE_PATTERN_core = "^${LAYERDIR}/" | ||
| 8 | BBFILE_PRIORITY_core = "5" | ||
| 9 | |||
| 10 | LAYERSERIES_CORENAMES = "sumo" | ||
| 11 | |||
| 12 | # This should only be incremented on significant changes that will | ||
| 13 | # cause compatibility issues with other layers | ||
| 14 | LAYERVERSION_core = "11" | ||
| 15 | LAYERSERIES_COMPAT_core = "sumo" | ||
| 16 | |||
| 17 | BBLAYERS_LAYERINDEX_NAME_core = "openembedded-core" | ||
diff --git a/bitbake/lib/layerindexlib/tests/testdata/layer2/conf/layer.conf b/bitbake/lib/layerindexlib/tests/testdata/layer2/conf/layer.conf new file mode 100644 index 0000000000..7569d1c217 --- /dev/null +++ b/bitbake/lib/layerindexlib/tests/testdata/layer2/conf/layer.conf | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # We have a conf and classes directory, add to BBPATH | ||
| 2 | BBPATH .= ":${LAYERDIR}" | ||
| 3 | |||
| 4 | # We have a packages directory, add to BBFILES | ||
| 5 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ | ||
| 6 | ${LAYERDIR}/recipes-*/*/*.bbappend" | ||
| 7 | |||
| 8 | BBFILE_COLLECTIONS += "networking-layer" | ||
| 9 | BBFILE_PATTERN_networking-layer := "^${LAYERDIR}/" | ||
| 10 | BBFILE_PRIORITY_networking-layer = "5" | ||
| 11 | |||
| 12 | # This should only be incremented on significant changes that will | ||
| 13 | # cause compatibility issues with other layers | ||
| 14 | LAYERVERSION_networking-layer = "1" | ||
| 15 | |||
| 16 | LAYERDEPENDS_networking-layer = "core" | ||
| 17 | LAYERDEPENDS_networking-layer += "openembedded-layer" | ||
| 18 | LAYERDEPENDS_networking-layer += "meta-python" | ||
| 19 | |||
| 20 | LAYERSERIES_COMPAT_networking-layer = "sumo" | ||
diff --git a/bitbake/lib/layerindexlib/tests/testdata/layer3/conf/layer.conf b/bitbake/lib/layerindexlib/tests/testdata/layer3/conf/layer.conf new file mode 100644 index 0000000000..7089071faf --- /dev/null +++ b/bitbake/lib/layerindexlib/tests/testdata/layer3/conf/layer.conf | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # We might have a conf and classes directory, append to BBPATH | ||
| 2 | BBPATH .= ":${LAYERDIR}" | ||
| 3 | |||
| 4 | # We have recipes directories, add to BBFILES | ||
| 5 | BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" | ||
| 6 | |||
| 7 | BBFILE_COLLECTIONS += "meta-python" | ||
| 8 | BBFILE_PATTERN_meta-python := "^${LAYERDIR}/" | ||
| 9 | BBFILE_PRIORITY_meta-python = "7" | ||
| 10 | |||
| 11 | # This should only be incremented on significant changes that will | ||
| 12 | # cause compatibility issues with other layers | ||
| 13 | LAYERVERSION_meta-python = "1" | ||
| 14 | |||
| 15 | LAYERDEPENDS_meta-python = "core openembedded-layer" | ||
| 16 | |||
| 17 | LAYERSERIES_COMPAT_meta-python = "sumo" | ||
| 18 | |||
| 19 | LICENSE_PATH += "${LAYERDIR}/licenses" | ||
diff --git a/bitbake/lib/layerindexlib/tests/testdata/layer4/conf/layer.conf b/bitbake/lib/layerindexlib/tests/testdata/layer4/conf/layer.conf new file mode 100644 index 0000000000..6649ee0208 --- /dev/null +++ b/bitbake/lib/layerindexlib/tests/testdata/layer4/conf/layer.conf | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # We have a conf and classes directory, append to BBPATH | ||
| 2 | BBPATH .= ":${LAYERDIR}" | ||
| 3 | |||
| 4 | # We have a recipes directory, add to BBFILES | ||
| 5 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" | ||
| 6 | |||
| 7 | BBFILE_COLLECTIONS += "openembedded-layer" | ||
| 8 | BBFILE_PATTERN_openembedded-layer := "^${LAYERDIR}/" | ||
| 9 | |||
| 10 | # Define the priority for recipes (.bb files) from this layer, | ||
| 11 | # choosing carefully how this layer interacts with all of the | ||
| 12 | # other layers. | ||
| 13 | |||
| 14 | BBFILE_PRIORITY_openembedded-layer = "6" | ||
| 15 | |||
| 16 | # This should only be incremented on significant changes that will | ||
| 17 | # cause compatibility issues with other layers | ||
| 18 | LAYERVERSION_openembedded-layer = "1" | ||
| 19 | |||
| 20 | LAYERDEPENDS_openembedded-layer = "core" | ||
| 21 | |||
| 22 | LAYERSERIES_COMPAT_openembedded-layer = "sumo" | ||
