1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

scripts: rename yocto-compat-layer to remove "compatible" nomenclature

"Yocto Project Compatible" [1] is a programme which requires you meet
specific criteria including going through an application process - it is
not sufficient simply to run the script we have created here and have it
produce no warnings/errors. To avoid people being confused by the fact
that this script uses the term "compatible" or variations thereof,
substitute usage of that word with "check" instead. The functionality of
the script is unchanged.

[1] https://www.yoctoproject.org/ecosystem/yocto-project-branding-program

(From OE-Core rev: 2a6126a115f10750ea89f95629d3699ad41c5665)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton
2017-09-19 15:57:07 +12:00
committed by Richard Purdie
parent 455877548e
commit b32174e58e
9 changed files with 31 additions and 31 deletions
@@ -1,4 +1,4 @@
# Yocto Project compatibility layer tool
# Yocto Project layer check tool
#
# Copyright (C) 2017 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
@@ -3,5 +3,5 @@
from oeqa.core.case import OETestCase
class OECompatLayerTestCase(OETestCase):
class OECheckLayerTestCase(OETestCase):
pass
@@ -3,14 +3,14 @@
import unittest
from compatlayer import LayerType, get_signatures, check_command, get_depgraph
from compatlayer.case import OECompatLayerTestCase
from checklayer import LayerType, get_signatures, check_command, get_depgraph
from checklayer.case import OECheckLayerTestCase
class BSPCompatLayer(OECompatLayerTestCase):
class BSPCheckLayer(OECheckLayerTestCase):
@classmethod
def setUpClass(self):
if self.tc.layer['type'] != LayerType.BSP:
raise unittest.SkipTest("BSPCompatLayer: Layer %s isn't BSP one." %\
raise unittest.SkipTest("BSPCheckLayer: Layer %s isn't BSP one." %\
self.tc.layer['name'])
def test_bsp_defines_machines(self):
@@ -62,7 +62,7 @@ class BSPCompatLayer(OECompatLayerTestCase):
This criteria can only be tested by testing different machines in combination,
i.e. one main layer, potentially several additional BSP layers and an explicit
choice of machines:
yocto-compat-layer --additional-layers .../meta-intel --machines intel-corei7-64 imx6slevk -- .../meta-freescale
yocto-check-layer --additional-layers .../meta-intel --machines intel-corei7-64 imx6slevk -- .../meta-freescale
'''
if not self.td['machines']:
@@ -4,10 +4,10 @@
import glob
import os
import unittest
from compatlayer import get_signatures, LayerType, check_command, get_depgraph, compare_signatures
from compatlayer.case import OECompatLayerTestCase
from checklayer import get_signatures, LayerType, check_command, get_depgraph, compare_signatures
from checklayer.case import OECheckLayerTestCase
class CommonCompatLayer(OECompatLayerTestCase):
class CommonCheckLayer(OECheckLayerTestCase):
def test_readme(self):
# The top-level README file may have a suffix (like README.rst or README.txt).
readme_files = glob.glob(os.path.join(self.tc.layer['path'], 'README*'))
@@ -3,14 +3,14 @@
import unittest
from compatlayer import LayerType
from compatlayer.case import OECompatLayerTestCase
from checklayer import LayerType
from checklayer.case import OECheckLayerTestCase
class DistroCompatLayer(OECompatLayerTestCase):
class DistroCheckLayer(OECheckLayerTestCase):
@classmethod
def setUpClass(self):
if self.tc.layer['type'] != LayerType.DISTRO:
raise unittest.SkipTest("DistroCompatLayer: Layer %s isn't Distro one." %\
raise unittest.SkipTest("DistroCheckLayer: Layer %s isn't Distro one." %\
self.tc.layer['name'])
def test_distro_defines_distros(self):
@@ -8,8 +8,8 @@ import re
from oeqa.core.context import OETestContext
class CompatLayerTestContext(OETestContext):
class CheckLayerTestContext(OETestContext):
def __init__(self, td=None, logger=None, layer=None, test_software_layer_signatures=True):
super(CompatLayerTestContext, self).__init__(td, logger)
super(CheckLayerTestContext, self).__init__(td, logger)
self.layer = layer
self.test_software_layer_signatures = test_software_layer_signatures