Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   Add pactest for "Optional for" output (http://www.linux-archive.org/archlinux-pacman-development/693130-add-pactest-optional-output.html)

Allan McRae 08-12-2012 06:40 AM

Add pactest for "Optional for" output
 
From: Benedikt Morbach <benedikt.morbach@googlemail.com>

Signed-off-by: Allan McRae <allan@archlinux.org>
---
test/pacman/tests/query012.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 test/pacman/tests/query012.py

diff --git a/test/pacman/tests/query012.py b/test/pacman/tests/query012.py
new file mode 100644
index 0000000..cdb7120
--- /dev/null
+++ b/test/pacman/tests/query012.py
@@ -0,0 +1,13 @@
+self.description = "Query info on a package (reverse optdeps)"
+
+pkg = pmpkg("dummy", "1.0-2")
+pkg.optdepends = ["dep: for foobar"]
+self.addpkg2db("local", pkg)
+
+dep = pmpkg("dep")
+self.addpkg2db("local", dep)
+
+self.args = "-Qi %s" % dep.name
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PACMAN_OUTPUT=^Optional For.*%s" % pkg.name)
--
1.7.11.4


All times are GMT. The time now is 01:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.