[pacman-dev] CVS update of pacman-lib/pactest/tests (xfercommand001.py)
Aaron Griffin
aaron at archlinux.org
Mon Mar 5 13:06:45 EST 2007
Date: Monday, March 5, 2007 @ 13:06:45
Author: aaron
Path: /home/cvs-pacman/pacman-lib/pactest/tests
Added: xfercommand001.py (1.1)
Added this test to check the XferCommand functionality
-------------------+
xfercommand001.py | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
Index: pacman-lib/pactest/tests/xfercommand001.py
diff -u /dev/null pacman-lib/pactest/tests/xfercommand001.py:1.1
--- /dev/null Mon Mar 5 13:06:45 2007
+++ pacman-lib/pactest/tests/xfercommand001.py Mon Mar 5 13:06:45 2007
@@ -0,0 +1,20 @@
+self.description = "Quick check for using XferCommand"
+
+# this setting forces us to download packages
+self.cachepkgs = False
+#wget doesn't support file:// urls. curl does
+self.option['xfercommand'] = ['/usr/bin/curl %u > %o']
+
+numpkgs = 10
+pkgnames = []
+for i in xrange(numpkgs):
+ name = "pkg_%s" % i
+ pkgnames.append(name)
+ p = pmpkg(name)
+ p.files = ["usr/bin/foo-%s" % i]
+ self.addpkg2db("sync", p)
+
+self.args = "-S %s" % ' '.join(pkgnames)
+
+for name in pkgnames:
+ self.addrule("PKG_EXIST=%s" % name)
More information about the pacman-dev
mailing list