1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 08:18:51 -05:00

New pactests for the phonon/qt issue

Original-work-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Nagy Gabor 2010-04-24 16:48:14 +02:00 committed by Dan McGee
parent 6995aed9ae
commit 652762488a
2 changed files with 57 additions and 0 deletions

26
pactest/tests/sync405.py Normal file
View File

@ -0,0 +1,26 @@
self.description = "phonon/qt issue"
sp1 = pmpkg("kdelibs")
sp1.depends = ["phonon"]
self.addpkg2db("sync", sp1);
sp2 = pmpkg("qt", "4.6.1-1")
self.addpkg2db("sync", sp2)
sp3 = pmpkg("phonon")
self.addpkg2db("sync", sp3)
lp = pmpkg("qt", "4.5.3-1")
lp.provides = ["phonon"]
lp.conflicts = ["phonon"]
self.addpkg2db("local", lp)
self.args = "-S %s" % " ".join([p.name for p in sp1, sp2])
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=kdelibs")
self.addrule("PKG_EXIST=qt")
self.addrule("PKG_EXIST=phonon")
self.addrule("PKG_VERSION=qt|4.6.1-1")
self.expectfailure = True

31
pactest/tests/sync406.py Normal file
View File

@ -0,0 +1,31 @@
self.description = "phonon/qt issue (2)"
sp1 = pmpkg("kdelibs")
sp1.depends = ["phonon"]
self.addpkg2db("sync", sp1);
sp2 = pmpkg("qt", "4.6.1-1")
self.addpkg2db("sync", sp2)
sp3 = pmpkg("phonon")
self.addpkg2db("sync", sp3)
sp4 = pmpkg("kdeapp")
sp4.depends = ["qt>=4.6"]
self.addpkg2db("sync", sp4)
lp = pmpkg("qt", "4.5.3-1")
lp.provides = ["phonon"]
lp.conflicts = ["phonon"]
self.addpkg2db("local", lp)
self.args = "-S %s" % " ".join([p.name for p in sp1, sp4])
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=kdelibs")
self.addrule("PKG_EXIST=qt")
self.addrule("PKG_EXIST=phonon")
self.addrule("PKG_EXIST=kdeapp")
self.addrule("PKG_VERSION=qt|4.6.1-1")
self.expectfailure = True