summaryrefslogtreecommitdiffstats
path: root/test/scripts/pacman-db-upgrade-v9.py
blob: dc6f97d6e07d3fab024329e931e266b1155fd7fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
self.description = "pacman-db-upgrade DB version 9 (symlink support removal)"

self.filesystem = [ "mnt_real/subdir/", "mnt -> mnt_real/subdir/", "bar -> ./" ]

fpkg = pmpkg("filesystem")
fpkg.files = ["mnt_real/", "mnt/", "mnt/foo", "bar/", "bar/baz"]
fpkg.backup = ["mnt/foo"]

self.addpkg2db("local", fpkg)
self.dbver = 8

self.cmd = ["pacman-db-upgrade", "--root", self.root + "/"]

self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_BACKUP=filesystem|mnt_real/subdir/foo")
self.addrule("PKG_FILES=filesystem|mnt_real/")
self.addrule("PKG_FILES=filesystem|mnt_real/subdir/")
self.addrule("PKG_FILES=filesystem|mnt_real/subdir/foo")
self.addrule("PKG_FILES=filesystem|baz")
self.addrule("!PKG_FILES=filesystem|mnt/")
self.addrule("!PKG_FILES=filesystem|bar/")