[pacman-dev] CVS update of pacman-lib/pactest/tests (sync136.py sync137.py)
Dan McGee
dan at archlinux.org
Mon Apr 23 02:41:00 EDT 2007
Date: Monday, April 23, 2007 @ 02:41:00
Author: dan
Path: /home/cvs-pacman/pacman-lib/pactest/tests
Added: sync136.py (1.1) sync137.py (1.1)
Add two pactests
------------+
sync136.py | 15 +++++++++++++++
sync137.py | 14 ++++++++++++++
2 files changed, 29 insertions(+)
Index: pacman-lib/pactest/tests/sync136.py
diff -u /dev/null pacman-lib/pactest/tests/sync136.py:1.1
--- /dev/null Mon Apr 23 02:41:00 2007
+++ pacman-lib/pactest/tests/sync136.py Mon Apr 23 02:41:00 2007
@@ -0,0 +1,15 @@
+self.description = "Sysupgrade with a sync package forcing a downgrade"
+
+sp = pmpkg("dummy", "1.0-1")
+sp.force = 1
+
+self.addpkg2db("sync", sp)
+
+lp = pmpkg("dummy", "1.0-2")
+
+self.addpkg2db("local", lp)
+
+self.args = "-Su"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_VERSION=dummy|1.0-1")
Index: pacman-lib/pactest/tests/sync137.py
diff -u /dev/null pacman-lib/pactest/tests/sync137.py:1.1
--- /dev/null Mon Apr 23 02:41:00 2007
+++ pacman-lib/pactest/tests/sync137.py Mon Apr 23 02:41:00 2007
@@ -0,0 +1,14 @@
+self.description = "Sysupgrade with a force and ignore on same package"
+
+lp = pmpkg("dummy", "1.0-1")
+
+self.addpkg2db("local", lp)
+
+sp = pmpkg("dummy", "1.0-2")
+sp.force = 1
+self.addpkg2db("sync", sp)
+
+self.args = "-Su --ignore %s" % lp.name
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_VERSION=dummy|1.0-1")
More information about the pacman-dev
mailing list