aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-03-19 15:43:46 -0600
committerTim Harder <radhermit@gmail.com>2021-03-19 15:43:46 -0600
commit58312181486fb089a77025c4f22fd03b6dcc94e2 (patch)
treec372bb4e347184fc7306e570fe6ae3adb4a476a0 /tests
parenttests: override GIT_EDITOR so stdin is never required (diff)
downloadpkgdev-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.py18
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}')