diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-11 21:20:10 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-11 21:20:10 -0600 |
commit | 57c5afd69c4c70ad85676bab32150d6182a3def9 (patch) | |
tree | d0205a02cf32351441f32c37a954890e1a76b6dc /test/pacman/tests/upgrade006.py | |
parent | 0284cf2128eb0179a3598ee21a951c5b3c11be40 (diff) | |
parent | 33240e87b99e5aebd0e64a672ea307a698edb32f (diff) |
Merge branch 'fix-double-load'
Diffstat (limited to 'test/pacman/tests/upgrade006.py')
-rw-r--r-- | test/pacman/tests/upgrade006.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/pacman/tests/upgrade006.py b/test/pacman/tests/upgrade006.py new file mode 100644 index 00000000..5e5173b5 --- /dev/null +++ b/test/pacman/tests/upgrade006.py @@ -0,0 +1,18 @@ +self.description = "Upgrade a package with several files" + +lp = pmpkg("dummy") +lp.files = ["usr/share/file_%d" % n for n in range(250, 750)] +self.addpkg2db("local", lp) + +p = pmpkg("dummy", "1.1-1") +p.files = ["usr/share/file_%d" % n for n in range(600, 1000)] +self.addpkg(p) + +self.args = "-U %s" % p.filename() + +self.addrule("PACMAN_RETCODE=0") +self.addrule("PKG_VERSION=dummy|1.1-1") +self.addrule("!FILE_EXIST=usr/share/file_250") +self.addrule("!FILE_EXIST=usr/share/file_599") +self.addrule("FILE_EXIST=usr/share/file_600") +self.addrule("FILE_EXIST=usr/share/file_999") |