[pacman-dev] [PATCH] New fileconflict003.py and fileconflict004.py pactests

Nagy Gabor ngaba at bibl.u-szeged.hu
Sat Dec 22 16:38:57 EST 2007


From e22982584b226b541779fbe63aee18d9eea6b781 Mon Sep 17 00:00:00 2001
From: Nagy Gabor <ngaba at bibl.u-szeged.hu>
Date: Sat, 22 Dec 2007 22:33:43 +0100
Subject: [PATCH] New fileconflict003.py and fileconflict004.py pactests

These pactests check whether pacman detects filesystem vs package directory-symlink (file)conflicts.

Signed-off-by: Nagy Gabor <ngaba at bibl.u-szeged.hu>
---
 pactest/tests/fileconflict003.py |   16 ++++++++++++++++
 pactest/tests/fileconflict004.py |   16 ++++++++++++++++
 2 files changed, 32 insertions(+), 0 deletions(-)
 create mode 100644 pactest/tests/fileconflict003.py
 create mode 100644 pactest/tests/fileconflict004.py

diff --git a/pactest/tests/fileconflict003.py b/pactest/tests/fileconflict003.py
new file mode 100644
index 0000000..1a6b354
--- /dev/null
+++ b/pactest/tests/fileconflict003.py
@@ -0,0 +1,16 @@
+self.description = "Fileconflict with symlinks (3)"
+
+lp = pmpkg("dummy")
+lp.files = ["dir/realdir/",
+            "dir/symdir -> realdir"]
+self.addpkg2db("local", lp)
+
+p1 = pmpkg("pkg1")
+p1.files = ["dir/realdir/",
+            "dir/symdir -> realdir"]
+self.addpkg(p1)
+
+self.args = "-A %s" % p1.filename()
+
+self.addrule("PACMAN_RETCODE=1")
+self.addrule("!PKG_EXIST=pkg1")
diff --git a/pactest/tests/fileconflict004.py b/pactest/tests/fileconflict004.py
new file mode 100644
index 0000000..5078f29
--- /dev/null
+++ b/pactest/tests/fileconflict004.py
@@ -0,0 +1,16 @@
+self.description = "Fileconflict with symlinks (4)"
+
+lp = pmpkg("dummy")
+lp.files = ["dir/localdir/",
+            "dir/symdir -> localdir"]
+self.addpkg2db("local", lp)
+
+p1 = pmpkg("pkg1")
+p1.files = ["dir/realdir/",
+            "dir/symdir -> realdir"]
+self.addpkg(p1)
+
+self.args = "-A %s" % p1.filename()
+
+self.addrule("PACMAN_RETCODE=1")
+self.addrule("!PKG_EXIST=pkg1")
-- 
1.5.3.7





More information about the pacman-dev mailing list