diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-08-11 08:14:13 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-11 11:36:58 -0500 |
commit | a58dc9283c6a48d4e664dfe622d8be38b6999409 (patch) | |
tree | cf612831992a8b4e13441990c5748e3f21a807b2 | |
parent | 09034520325efcc2e684f05fa7a99c02bad1f5be (diff) | |
download | pacman-a58dc9283c6a48d4e664dfe622d8be38b6999409.tar.xz |
pactest: add sync302 to test recursive syncfirst
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | test/pacman/tests/sync302.py | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/test/pacman/tests/sync302.py b/test/pacman/tests/sync302.py new file mode 100644 index 00000000..b44aaed4 --- /dev/null +++ b/test/pacman/tests/sync302.py @@ -0,0 +1,49 @@ +self.description = "Sysupgrade : pacman needs to be upgraded and has updated deps" + +sp = pmpkg("pacman", "1.0-2") +sp.depends = ["zlib", "curl", "libarchive"] +self.addpkg2db("sync", sp) + +libcdep = pmpkg("glibc", "2.15-1") +self.addpkg2db("sync", libcdep) + +curldep = pmpkg("curl", "7.22-1") +self.addpkg2db("sync", curldep) + +libadep = pmpkg("libarchive", "2.8.5-1") +self.addpkg2db("sync", libadep) + +zlibdep = pmpkg("zlib", "1.2.5-3") +zlibdep.depends = ["glibc"] +self.addpkg2db("sync", zlibdep) + + +lp = pmpkg("pacman", "1.0-1") +self.addpkg2db("local", lp) + +lp1 = pmpkg("curl", "7.21.7-1") +self.addpkg2db("local", lp1) + +lp2 = pmpkg("glibc", "2.13-1") +self.addpkg2db("local", lp2) + +lp3 = pmpkg("libarchive", "2.8.4-1") +self.addpkg2db("local", lp3) + +lp4 = pmpkg("zlib", "1.2.5-3") +self.addpkg2db("local", lp4) + +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_EXIST=glibc") +self.addrule("PKG_VERSION=glibc|2.15-1") +self.addrule("PKG_EXIST=curl") +self.addrule("PKG_VERSION=curl|7.22-1") +self.addrule("PKG_EXIST=libarchive") +self.addrule("PKG_VERSION=libarchive|2.8.5-1") +self.addrule("PKG_EXIST=zlib") |