mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 09:51:50 -05:00
Add a few pactests for PGP integration
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
88746ec067
commit
cedc633757
9
test/pacman/tests/sign001.py
Normal file
9
test/pacman/tests/sign001.py
Normal file
@ -0,0 +1,9 @@
|
||||
self.description = "Add a signature to a package DB"
|
||||
|
||||
sp = pmpkg("pkg1")
|
||||
sp.pgpsig = "asdfasdfsdfasdfsdafasdfsdfasd"
|
||||
self.addpkg2db("sync", sp)
|
||||
|
||||
self.args = "-Ss"
|
||||
|
||||
self.addrule("PACMAN_RETCODE=0")
|
11
test/pacman/tests/smoke004.py
Normal file
11
test/pacman/tests/smoke004.py
Normal file
@ -0,0 +1,11 @@
|
||||
self.description = "Read a package DB with several PGP signatures"
|
||||
|
||||
for i in range(1000):
|
||||
sp = pmpkg("pkg%03d" % i)
|
||||
sp.desc = "test description for package %d" % i
|
||||
sp.pgpsig = "asdfasdfsdfasdfsdafasdfsdfasd"
|
||||
self.addpkg2db("sync", sp)
|
||||
|
||||
self.args = "-Ss"
|
||||
|
||||
self.addrule("PACMAN_RETCODE=0")
|
Loading…
x
Reference in New Issue
Block a user