mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-04 16:45:07 -05:00
Add pactests for displaying optdep installation status
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
63a2874fe4
commit
9a24f1ffc5
12
test/pacman/tests/query010.py
Normal file
12
test/pacman/tests/query010.py
Normal file
@ -0,0 +1,12 @@
|
||||
self.description = "Query info on a package (optdep install status [uninstalled])"
|
||||
|
||||
optstr = "dep: for foobar"
|
||||
|
||||
pkg = pmpkg("dummy", "1.0-2")
|
||||
pkg.optdepends = [optstr]
|
||||
self.addpkg2db("local", pkg)
|
||||
|
||||
self.args = "-Qi %s" % pkg.name
|
||||
|
||||
self.addrule("PACMAN_RETCODE=0")
|
||||
self.addrule("PACMAN_OUTPUT=^Optional Deps.*%s$" % optstr)
|
15
test/pacman/tests/query011.py
Normal file
15
test/pacman/tests/query011.py
Normal file
@ -0,0 +1,15 @@
|
||||
self.description = "Query info on a package (optdep install status [installed])"
|
||||
|
||||
optstr = "dep: for foobar"
|
||||
|
||||
pkg = pmpkg("dummy", "1.0-2")
|
||||
pkg.optdepends = [optstr]
|
||||
self.addpkg2db("local", pkg)
|
||||
|
||||
dep = pmpkg("dep")
|
||||
self.addpkg2db("local", dep)
|
||||
|
||||
self.args = "-Qi %s" % pkg.name
|
||||
|
||||
self.addrule("PACMAN_RETCODE=0")
|
||||
self.addrule("PACMAN_OUTPUT=^Optional Deps.*%s \[installed\]$" % optstr)
|
Loading…
Reference in New Issue
Block a user