diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-11-01 17:07:44 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-11-01 17:07:44 +0100 |
commit | 50f0f552ee1af6b5d2b8b749f5413788f21bcb8a (patch) | |
tree | ec828f9720f76dc2602a83770de6363235ab4f13 /tests/test_profile.py | |
parent | c3391d185af458b65c668c9902f596f35bf93bff (diff) | |
download | gemato-50f0f552ee1af6b5d2b8b749f5413788f21bcb8a.tar.gz |
profile: Support controlling sub-Manifest files
Diffstat (limited to 'tests/test_profile.py')
-rw-r--r-- | tests/test_profile.py | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/tests/test_profile.py b/tests/test_profile.py index ebc9406..b8cb02d 100644 --- a/tests/test_profile.py +++ b/tests/test_profile.py @@ -6,6 +6,7 @@ import os.path import gemato.profile +import gemato.recursiveloader from tests.testutil import TempDirTestCase @@ -38,6 +39,18 @@ class EbuildRepositoryTests(TempDirTestCase): 'profiles/desc', 'profiles/updates', ] + EXPECTED_MANIFESTS = [ + 'dev-foo/Manifest', + 'dev-foo/bar/Manifest', + 'eclass/Manifest', + 'licenses/Manifest', + 'metadata/Manifest', + 'metadata/glsa/Manifest', + 'metadata/md5-cache/Manifest', + 'metadata/md5-cache/dev-foo/Manifest', + 'metadata/news/Manifest', + 'profiles/Manifest', + ] EXPECTED_TYPES = { 'header.txt': 'DATA', 'skel.ebuild': 'DATA', @@ -102,6 +115,9 @@ class EbuildRepositoryTests(TempDirTestCase): m.find_path_entry(f).tag, expt, "type mismatch for {}".format(f)) + for f in self.EXPECTED_MANIFESTS: + self.assertEqual(m.find_path_entry(f).tag, 'MANIFEST', + "type mismatch for {}".format(f)) return m class BackwardsCompatEbuildRepositoryTests(EbuildRepositoryTests): @@ -114,9 +130,6 @@ class BackwardsCompatEbuildRepositoryTests(EbuildRepositoryTests): 'dev-foo/bar/metadata.xml': 'MISC', 'dev-foo/bar/files/test.patch': 'AUX', }) - # TODO: this is only temporary until we have API to create - # the Manifest at this level automatically - self.FILES['dev-foo/bar/Manifest'] = u'' super(BackwardsCompatEbuildRepositoryTests, self).__init__( *args, **kwargs) |