1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-12 04:15:06 -05:00
pacman/test/pacman/tests/sync301.py
Allan McRae 844d82fad8 Move pacman test suite
Move the test suite to test/pacman in order to make a logical
location for a future makepkg test suite.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-02 13:14:51 -05:00

28 lines
621 B
Python

self.description = "Sysupgrade : pacman needs to be upgraded and has new deps"
sp = pmpkg("pacman", "1.0-2")
sp.depends = ["dep"]
self.addpkg2db("sync", sp)
spdep = pmpkg("dep")
self.addpkg2db("sync", spdep)
sp1 = pmpkg("pkg1", "1.0-2")
self.addpkg2db("sync", sp1)
lp = pmpkg("pacman", "1.0-1")
self.addpkg2db("local", lp)
lp1 = pmpkg("pkg1", "1.0-1")
self.addpkg2db("local", lp1)
self.option["SyncFirst"] = ["pacman"]
self.args = "-Su"
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=pacman")
self.addrule("PKG_VERSION=pacman|1.0-2")
self.addrule("PKG_VERSION=pkg1|1.0-1")
self.addrule("PKG_EXIST=dep")