FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 08-11-2012, 12:30 PM
Allan McRae
 
Default Add pactests for displaying optdep installation status

From: Benedikt Morbach <benedikt.morbach@googlemail.com>

Signed-off-by: Allan McRae <allan@archlinux.org>
---

Extracted from https://mailman.archlinux.org/pipermail/pacman-dev/2011-November/014778.html

test/pacman/tests/query010.py | 12 ++++++++++++
test/pacman/tests/query011.py | 15 +++++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 test/pacman/tests/query010.py
create mode 100644 test/pacman/tests/query011.py

diff --git a/test/pacman/tests/query010.py b/test/pacman/tests/query010.py
new file mode 100644
index 0000000..76f82d9
--- /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 0000000..f487fb2
--- /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)
--
1.7.11.4
 

Thread Tools




All times are GMT. The time now is 10:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org