summaryrefslogtreecommitdiff
path: root/pactest/tests/upgrade072.py
diff options
context:
space:
mode:
Diffstat (limited to 'pactest/tests/upgrade072.py')
-rw-r--r--pactest/tests/upgrade072.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pactest/tests/upgrade072.py b/pactest/tests/upgrade072.py
new file mode 100644
index 00000000..f88e150c
--- /dev/null
+++ b/pactest/tests/upgrade072.py
@@ -0,0 +1,15 @@
+self.description = "Install a package with a missing dependency (nodeps)"
+
+p = pmpkg("dummy")
+p.files = ["bin/dummy",
+ "usr/man/man1/dummy.1"]
+p.depends = ["dep1"]
+self.addpkg(p)
+
+self.args = "-Ud %s" % p.filename()
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_EXIST=dummy")
+self.addrule("PKG_DEPENDS=dummy|dep1")
+for f in p.files:
+ self.addrule("FILE_EXIST=%s" % f)