summaryrefslogtreecommitdiffstats
path: root/pactest
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-09-06 23:01:55 +0200
committerDan McGee <dan@archlinux.org>2009-09-06 23:04:05 +0200
commit6e1b1aea5908fba6669b31a0a92f934a6a2aa244 (patch)
treef1799591d6540a8687627eae3fc31de2caf47455 /pactest
parentb53aa87ea9489f15c42c5213569be0b73789b77f (diff)
downloadpacman-6e1b1aea5908fba6669b31a0a92f934a6a2aa244.tar.gz
pacman-6e1b1aea5908fba6669b31a0a92f934a6a2aa244.tar.xz
Add pactest for 'any' architecture
Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest')
-rw-r--r--pactest/tests/upgrade084.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/pactest/tests/upgrade084.py b/pactest/tests/upgrade084.py
new file mode 100644
index 00000000..8268e3ff
--- /dev/null
+++ b/pactest/tests/upgrade084.py
@@ -0,0 +1,16 @@
+self.description = "Install a package ('any' architecture)"
+
+p = pmpkg("dummy")
+p.files = ["bin/dummy",
+ "usr/man/man1/dummy.1"]
+p.arch = 'any'
+self.addpkg(p)
+
+self.option["Architecture"] = ['auto']
+
+self.args = "-U %s" % p.filename()
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_EXIST=dummy")
+for f in p.files:
+ self.addrule("FILE_EXIST=%s" % f)