similarity index 100%
rename from meta/lib/oe/tests/__init__.py
rename to meta/lib/oeqa/selftest/oelib/__init__.py
similarity index 100%
rename from meta/lib/oe/tests/test_elf.py
rename to meta/lib/oeqa/selftest/oelib/elf.py
similarity index 100%
rename from meta/lib/oe/tests/test_license.py
rename to meta/lib/oeqa/selftest/oelib/license.py
similarity index 100%
rename from meta/lib/oe/tests/test_path.py
rename to meta/lib/oeqa/selftest/oelib/path.py
similarity index 79%
rename from meta/lib/oe/tests/test_types.py
rename to meta/lib/oeqa/selftest/oelib/types.py
@@ -1,19 +1,7 @@
import unittest
-from oe.maketype import create, factory
+from oe.maketype import create
-class TestTypes(unittest.TestCase):
- def assertIsInstance(self, obj, cls):
- return self.assertTrue(isinstance(obj, cls))
-
- def assertIsNot(self, obj, other):
- return self.assertFalse(obj is other)
-
- def assertFactoryCreated(self, value, type, **flags):
- cls = factory(type)
- self.assertIsNot(cls, None)
- self.assertIsInstance(create(value, type, **flags), cls)
-
-class TestBooleanType(TestTypes):
+class TestBooleanType(unittest.TestCase):
def test_invalid(self):
self.assertRaises(ValueError, create, '', 'boolean')
self.assertRaises(ValueError, create, 'foo', 'boolean')
@@ -43,7 +31,7 @@ class TestBooleanType(TestTypes):
self.assertEqual(create('y', 'boolean'), True)
self.assertNotEqual(create('y', 'boolean'), False)
-class TestList(TestTypes):
+class TestList(unittest.TestCase):
def assertListEqual(self, value, valid, sep=None):
obj = create(value, 'list', separator=sep)
self.assertEqual(obj, valid)
similarity index 96%
rename from meta/lib/oe/tests/test_utils.py
rename to meta/lib/oeqa/selftest/oelib/utils.py
@@ -1,5 +1,5 @@
import unittest
-from oe.utils import packages_filter_out_system
+from oe.utils import packages_filter_out_system, trim_version
class TestPackagesFilterOutSystem(unittest.TestCase):
def test_filter(self):
These tests don't get ran often (as demonstrated by the fact that some were not ported to Python 3), so move them to oeqa/selftest so they get executed frequently and can be extended easily. [ YOCTO #7376 ] Signed-off-by: Ross Burton <ross.burton@intel.com> --- meta/lib/{oe/tests => oeqa/selftest/oelib}/__init__.py | 0 .../tests/test_elf.py => oeqa/selftest/oelib/elf.py} | 0 .../test_license.py => oeqa/selftest/oelib/license.py} | 0 .../tests/test_path.py => oeqa/selftest/oelib/path.py} | 0 .../test_types.py => oeqa/selftest/oelib/types.py} | 18 +++--------------- .../test_utils.py => oeqa/selftest/oelib/utils.py} | 2 +- 6 files changed, 4 insertions(+), 16 deletions(-) rename meta/lib/{oe/tests => oeqa/selftest/oelib}/__init__.py (100%) rename meta/lib/{oe/tests/test_elf.py => oeqa/selftest/oelib/elf.py} (100%) rename meta/lib/{oe/tests/test_license.py => oeqa/selftest/oelib/license.py} (100%) rename meta/lib/{oe/tests/test_path.py => oeqa/selftest/oelib/path.py} (100%) rename meta/lib/{oe/tests/test_types.py => oeqa/selftest/oelib/types.py} (79%) rename meta/lib/{oe/tests/test_utils.py => oeqa/selftest/oelib/utils.py} (96%) -- 2.8.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core