summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/provides.repo44
-rw-r--r--test/provides1.test7
-rw-r--r--test/provides2.test9
-rw-r--r--test/provides3.test6
-rw-r--r--test/provides4.test5
5 files changed, 71 insertions, 0 deletions
diff --git a/test/provides.repo b/test/provides.repo
new file mode 100644
index 0000000..73875f4
--- /dev/null
+++ b/test/provides.repo
@@ -0,0 +1,44 @@
+C:Q1EyN5AdpAOBJWKMR89pp/C66o+OE=
+P:libfoo
+V:1
+S:1
+I:1
+p:so:foo.so.1=1.0
+
+C:Q1eVpkasfqZAukAXFYbgwt4xAMZWU=
+P:app
+V:2
+S:1
+I:1
+D:so:foo.so.1
+
+C:Q1EyN5AdpAOBJWKMR89pp/C66FFFF=
+P:mymailreader
+V:1
+S:1
+I:1
+p:mail-reader
+
+C:Q1eVpkasfqZAukAXFYbgwt4xAEEEe=
+P:mailreadplus
+V:1
+S:1
+I:1
+p:mail-reader
+
+C:Q1EyN5AdpAOBJWKMR89pp/C77FFFF=
+P:server-a
+V:1
+S:1
+I:1
+p:theservice
+D:!theservice
+
+C:Q1eVpkasfqZAukAXFYbgwt444EEEe=
+P:server-b
+V:1
+S:1
+I:1
+p:theservice
+D:!theservice
+
diff --git a/test/provides1.test b/test/provides1.test
new file mode 100644
index 0000000..22b111a
--- /dev/null
+++ b/test/provides1.test
@@ -0,0 +1,7 @@
+@ARGS
+--test-repo provides.repo
+add app
+@EXPECT
+(1/2) Installing libfoo (1)
+(2/2) Installing app (2)
+OK: 0 MiB in 0 packages
diff --git a/test/provides2.test b/test/provides2.test
new file mode 100644
index 0000000..36a0637
--- /dev/null
+++ b/test/provides2.test
@@ -0,0 +1,9 @@
+@ARGS
+--test-repo provides.repo
+add mail-reader
+@EXPECT
+ERROR: 1 unsatisfiable dependencies:
+ world: mail-reader
+
+ mail-reader is a virtual package provided by:
+ mymailreader-1 mailreadplus-1
diff --git a/test/provides3.test b/test/provides3.test
new file mode 100644
index 0000000..8ab8af7
--- /dev/null
+++ b/test/provides3.test
@@ -0,0 +1,6 @@
+@ARGS
+--test-repo provides.repo
+add mail-reader mymailreader
+@EXPECT
+(1/1) Installing mymailreader (1)
+OK: 0 MiB in 0 packages
diff --git a/test/provides4.test b/test/provides4.test
new file mode 100644
index 0000000..daf6386
--- /dev/null
+++ b/test/provides4.test
@@ -0,0 +1,5 @@
+@ARGS
+--test-repo provides.repo
+add mymailreader mailreadplus
+@EXPECT
+