summaryrefslogtreecommitdiff
path: root/pactest/tests/upgrade084.py
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 16:04:05 -0500
commit6e1b1aea5908fba6669b31a0a92f934a6a2aa244 (patch)
treef1799591d6540a8687627eae3fc31de2caf47455 /pactest/tests/upgrade084.py
parentb53aa87ea9489f15c42c5213569be0b73789b77f (diff)
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/tests/upgrade084.py')
-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)