mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
Add a new epoch pactest
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
1c39e4fbad
commit
0b92d9ed9c
25
test/pacman/tests/epoch005.py
Normal file
25
test/pacman/tests/epoch005.py
Normal file
@ -0,0 +1,25 @@
|
||||
self.description = "Sysupgrade with sync packages having absurd epochs"
|
||||
|
||||
versions = (
|
||||
"1234327518932650063289125782697890:1.0-1",
|
||||
"1234327518932650063289125782697891:0.9-1",
|
||||
"1234327518932650063289125782697891:1.0-1",
|
||||
"1234327518932650063289125782697891:1.1-1",
|
||||
"1234327518932650063289125782697892:1.0-1",
|
||||
)
|
||||
|
||||
pkgvers = [(n, versions[n]) for n in range(len(versions))]
|
||||
for k, v in pkgvers:
|
||||
sp = pmpkg("pkg_%d" % k, v)
|
||||
self.addpkg2db("sync", sp)
|
||||
|
||||
for k, v in pkgvers:
|
||||
lp = pmpkg("pkg_%d" % k, versions[2])
|
||||
self.addpkg2db("local", lp)
|
||||
|
||||
self.args = "-Su"
|
||||
|
||||
self.addrule("PACMAN_RETCODE=0")
|
||||
for k, v in pkgvers:
|
||||
right_ver = versions[max(k, 2)]
|
||||
self.addrule("PKG_VERSION=pkg_%d|%s" % (k, right_ver))
|
Loading…
Reference in New Issue
Block a user