diff options
author | Benedikt Morbach <benedikt.morbach@googlemail.com> | 2012-08-11 14:29:04 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2012-12-14 03:35:34 +0100 |
commit | 9a24f1ffc50deb7d979430ac85475b10b4a98d28 (patch) | |
tree | 36e18a1d483fecea4a5434b08c7b96b9825b27dd /test | |
parent | 63a2874fe4db43ab1b0299163b1ceb82c4d8e00b (diff) | |
download | pacman-9a24f1ffc50deb7d979430ac85475b10b4a98d28.tar.gz pacman-9a24f1ffc50deb7d979430ac85475b10b4a98d28.tar.xz |
Add pactests for displaying optdep installation status
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/pacman/tests/query010.py | 12 | ||||
-rw-r--r-- | test/pacman/tests/query011.py | 15 |
2 files changed, 27 insertions, 0 deletions
diff --git a/test/pacman/tests/query010.py b/test/pacman/tests/query010.py new file mode 100644 index 00000000..76f82d9c --- /dev/null +++ b/test/pacman/tests/query010.py @@ -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) 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) |