diff options
author | 2021-03-19 15:43:46 -0600 | |
---|---|---|
committer | 2021-03-19 15:43:46 -0600 | |
commit | 58312181486fb089a77025c4f22fd03b6dcc94e2 (patch) | |
tree | c372bb4e347184fc7306e570fe6ae3adb4a476a0 /tests | |
parent | tests: override GIT_EDITOR so stdin is never required (diff) | |
download | pkgdev-58312181486fb089a77025c4f22fd03b6dcc94e2.tar.gz pkgdev-58312181486fb089a77025c4f22fd03b6dcc94e2.tar.bz2 pkgdev-58312181486fb089a77025c4f22fd03b6dcc94e2.zip |
tests: add initial keywording summary generation tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scripts/test_pkgdev_commit.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/scripts/test_pkgdev_commit.py b/tests/scripts/test_pkgdev_commit.py index 18d01a2..793c539 100644 --- a/tests/scripts/test_pkgdev_commit.py +++ b/tests/scripts/test_pkgdev_commit.py @@ -425,6 +425,24 @@ class TestPkgdevCommit: ) assert commit() == 'cat/pkg: add 5, drop 4' + # keyword version + repo.create_ebuild('cat/pkg-6') + git_repo.add_all('cat/pkg-6') + repo.create_ebuild('cat/pkg-6', keywords=['~amd64']) + assert commit() == 'cat/pkg: keyword 6 for ~amd64' + + # stabilize version + repo.create_ebuild('cat/pkg-6', keywords=['amd64']) + assert commit() == 'cat/pkg: stabilize 6 for amd64' + + # destabilize version + repo.create_ebuild('cat/pkg-6', keywords=['~amd64']) + assert commit() == 'cat/pkg: destabilize 6 for ~amd64' + + # unkeyword version + repo.create_ebuild('cat/pkg-6') + assert commit() == 'cat/pkg: unkeyword 6 for ~amd64' + # large number of additions in a single commit for v in range(10000, 10010): repo.create_ebuild(f'cat/pkg-{v}') |