summaryrefslogtreecommitdiffstats
path: root/pactest/tests/remove050.py
diff options
context:
space:
mode:
authorNagy Gabor <ngaba@bibl.u-szeged.hu>2008-03-03 22:09:21 +0100
committerDan McGee <dan@archlinux.org>2008-03-11 01:16:01 +0100
commit35135c0a0cbac592e72296c0ca64e9def0308942 (patch)
tree8ec7fecabc1f17ba2a7cfd514b640c4afeaafa26 /pactest/tests/remove050.py
parentd060e31be3586ce27382f80eaed7a9edf2c86aeb (diff)
downloadpacman-35135c0a0cbac592e72296c0ca64e9def0308942.tar.gz
pacman-35135c0a0cbac592e72296c0ca64e9def0308942.tar.xz
Add -Rss option
* -Rss removes all dependencies (including explicitly installed ones). * updated documentation * two pactest files added to test the difference between -Rs and -Rss Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Diffstat (limited to 'pactest/tests/remove050.py')
-rw-r--r--pactest/tests/remove050.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/pactest/tests/remove050.py b/pactest/tests/remove050.py
new file mode 100644
index 00000000..44b0d18c
--- /dev/null
+++ b/pactest/tests/remove050.py
@@ -0,0 +1,20 @@
+self.description = "-Rs test (exclude explicit)"
+
+lp1 = pmpkg("pkg1")
+lp1.depends = ["pkg2" , "pkg3"]
+self.addpkg2db("local", lp1)
+
+lp2 = pmpkg("pkg2")
+lp2.reason = 1
+self.addpkg2db("local", lp2)
+
+lp3 = pmpkg("pkg3")
+lp3.reason = 0
+self.addpkg2db("local", lp3)
+
+self.args = "-Rs %s" % lp1.name
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("!PKG_EXIST=pkg1")
+self.addrule("!PKG_EXIST=pkg2")
+self.addrule("PKG_EXIST=pkg3")