[pacman-dev] [PATCH] New sync070.py pactest
Nagy Gabor
ngaba at bibl.u-szeged.hu
Wed Jul 2 11:07:38 EDT 2008
From cfcaa50b83d6ce09a026e8275f19ce0665365e31 Mon Sep 17 00:00:00 2001
From: Nagy Gabor <ngaba at bibl.u-szeged.hu>
Date: Wed, 2 Jul 2008 17:04:29 +0200
Subject: [PATCH] New sync070.py pactest
This pactest tests the cooperation between front-end and back-end in case of "-S provision" operation.
Signed-off-by: Nagy Gabor <ngaba at bibl.u-szeged.hu>
---
pactest/tests/sync070.py | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
create mode 100644 pactest/tests/sync070.py
diff --git a/pactest/tests/sync070.py b/pactest/tests/sync070.py
new file mode 100644
index 0000000..2177ea7
--- /dev/null
+++ b/pactest/tests/sync070.py
@@ -0,0 +1,15 @@
+self.description = "Advanced -S provision test"
+
+sp1 = pmpkg("pkg", "1.0-1")
+self.addpkg2db("sync2", sp1)
+
+sp2 = pmpkg("pkg", "2.0-1")
+sp2.provides = [ "provision" ]
+sp2.conflicts = [ "pkg1=1.0-1" ]
+self.addpkg2db("sync1", sp2)
+
+self.args = "-S provision"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_EXIST=pkg")
+self.addrule("PKG_VERSION=pkg|2.0-1")
--
1.5.6.1
More information about the pacman-dev
mailing list