Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pacman/tests/query012.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/pacman/tests/query012.py b/test/pacman/tests/query012.py
new file mode 100644
index 00000000..cdb71207
--- /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)