summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/provides-swap.installed6
-rw-r--r--test/provides-swap.test9
-rw-r--r--test/provides.repo1
-rw-r--r--test/provides2.test6
-rw-r--r--test/provides8.test6
5 files changed, 24 insertions, 4 deletions
diff --git a/test/provides-swap.installed b/test/provides-swap.installed
new file mode 100644
index 0000000..480def8
--- /dev/null
+++ b/test/provides-swap.installed
@@ -0,0 +1,6 @@
+C:Q1EyN5AdpAOBJWKMR89pp/C66o+OE=
+P:mailreadplus
+V:1
+S:1
+I:1
+
diff --git a/test/provides-swap.test b/test/provides-swap.test
new file mode 100644
index 0000000..d38c227
--- /dev/null
+++ b/test/provides-swap.test
@@ -0,0 +1,9 @@
+@ARGS
+--test-repo provides.repo
+--test-instdb provides-swap.installed
+--test-world mail-reader
+add mymailreader
+@EXPECT
+(1/2) Purging mailreadplus (1)
+(2/2) Installing mymailreader (1)
+OK: 0 MiB in 1 packages
diff --git a/test/provides.repo b/test/provides.repo
index 6418f18..8bc0c62 100644
--- a/test/provides.repo
+++ b/test/provides.repo
@@ -45,6 +45,7 @@ V:1
S:1
I:1
p:mail-reader
+k:1
C:Q1EyN5AdpAOBJWKMR89pp/C77FFFF=
P:server-a
diff --git a/test/provides2.test b/test/provides2.test
index 37fc9d8..a0fca43 100644
--- a/test/provides2.test
+++ b/test/provides2.test
@@ -2,7 +2,5 @@
--test-repo provides.repo
add mail-reader
@EXPECT
-ERROR: unsatisfiable constraints:
- mail-reader (virtual):
- provided by: mymailreader-1 mailreadplus
- required by: world[mail-reader]
+(1/1) Installing mailreadplus (1)
+OK: 0 MiB in 0 packages
diff --git a/test/provides8.test b/test/provides8.test
new file mode 100644
index 0000000..9cc13f5
--- /dev/null
+++ b/test/provides8.test
@@ -0,0 +1,6 @@
+@ARGS
+--test-repo provides.repo
+add mail-reader mailreadplus
+@EXPECT
+(1/1) Installing mailreadplus (1)
+OK: 0 MiB in 0 packages