From 627ede877920d82ae6d1c9cc2d41c04cbc62ff25 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 6 Oct 2014 04:09:10 -0400 Subject: add pacman-db-upgrade test Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- test/scripts/pacman-db-upgrade-v9.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/scripts/pacman-db-upgrade-v9.py (limited to 'test') diff --git a/test/scripts/pacman-db-upgrade-v9.py b/test/scripts/pacman-db-upgrade-v9.py new file mode 100644 index 00000000..dc6f97d6 --- /dev/null +++ b/test/scripts/pacman-db-upgrade-v9.py @@ -0,0 +1,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/") -- cgit v1.2.3-24-g4f1b