From f19820cba8c4da8d6b7c84c694f3d327e94095a4 Mon Sep 17 00:00:00 2001 From: Nagy Gabor Date: Thu, 29 Nov 2007 18:56:50 +0100 Subject: New sync1005 and sync1006 pactests This pactest checks what happens if a package exists in two sync repos. Signed-off-by: Nagy Gabor [Dan: added sync1006, same test with different versions] Signed-off-by: Dan McGee --- pactest/tests/sync1005.py | 14 ++++++++++++++ pactest/tests/sync1006.py | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 pactest/tests/sync1005.py create mode 100644 pactest/tests/sync1006.py diff --git a/pactest/tests/sync1005.py b/pactest/tests/sync1005.py new file mode 100644 index 00000000..4fa82478 --- /dev/null +++ b/pactest/tests/sync1005.py @@ -0,0 +1,14 @@ +self.description = "Conflicting package names in sync repos" + +sp1 = pmpkg("pkg") +sp1.provides = [ "provision1" ] +self.addpkg2db("sync1", sp1) + +sp2 = pmpkg("pkg") +sp2.provides = [ "provision2" ] +self.addpkg2db("sync2", sp2) + +self.args = "-S provision1 provision2" + +self.addrule("PACMAN_RETCODE=1") +self.addrule("!PKG_EXIST=pkg") diff --git a/pactest/tests/sync1006.py b/pactest/tests/sync1006.py new file mode 100644 index 00000000..c331f42e --- /dev/null +++ b/pactest/tests/sync1006.py @@ -0,0 +1,14 @@ +self.description = "Conflicting package names in sync repos (diff versions)" + +sp1 = pmpkg("pkg", "1.0-1") +sp1.provides = [ "provision1" ] +self.addpkg2db("sync1", sp1) + +sp2 = pmpkg("pkg", "2.0-1") +sp2.provides = [ "provision2" ] +self.addpkg2db("sync2", sp2) + +self.args = "-S provision1 provision2" + +self.addrule("PACMAN_RETCODE=1") +self.addrule("!PKG_EXIST=pkg") -- cgit v1.2.3-70-g09d2