aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/test_pkgdev_commit.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/scripts/test_pkgdev_commit.py b/tests/scripts/test_pkgdev_commit.py
index 0cfd9dc..dc0da80 100644
--- a/tests/scripts/test_pkgdev_commit.py
+++ b/tests/scripts/test_pkgdev_commit.py
@@ -261,6 +261,18 @@ class TestPkgdevCommit:
repo.create_ebuild(f'cat/pkg-{v}')
assert commit() == 'cat/pkg: add versions'
+ # create Manifest
+ with open(pjoin(git_repo.path, 'cat/pkg/Manifest'), 'w') as f:
+ f.write('DIST pkg-3.tar.gz 101 BLAKE2B deadbeef SHA512 deadbeef\n')
+ assert commit() == 'cat/pkg: update Manifest'
+ # update Manifest
+ with open(pjoin(git_repo.path, 'cat/pkg/Manifest'), 'a+') as f:
+ f.write('DIST pkg-2.tar.gz 101 BLAKE2B deadbeef SHA512 deadbeef\n')
+ assert commit() == 'cat/pkg: update Manifest'
+ # remove Manifest
+ os.remove(pjoin(git_repo.path, 'cat/pkg/Manifest'))
+ assert commit() == 'cat/pkg: update Manifest'
+
# single removal
os.remove(pjoin(git_repo.path, 'cat/pkg/pkg-3.ebuild'))
assert commit() == 'cat/pkg: drop 3'