summaryrefslogtreecommitdiff
path: root/test/pacman/tests/query011.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/pacman/tests/query011.py')
-rw-r--r--test/pacman/tests/query011.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/pacman/tests/query011.py b/test/pacman/tests/query011.py
new file mode 100644
index 00000000..f487fb29
--- /dev/null
+++ b/test/pacman/tests/query011.py
@@ -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)