summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-01-02 04:42:43 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-01-02 04:42:43 +0000
commit467ba0cee0d1508babcb8bf3d8d97c30ca350ea6 (patch)
treeccc0b995bd1f0bc0c18d624b85ba356bc19feaff
parent7b3023ec496275be3b05643f03633acf5f6b0b94 (diff)
downloadapk-tools-467ba0cee0d1508babcb8bf3d8d97c30ca350ea6.tar.gz
apk-tools-467ba0cee0d1508babcb8bf3d8d97c30ca350ea6.tar.bz2
apk-tools-467ba0cee0d1508babcb8bf3d8d97c30ca350ea6.tar.xz
apk-tools-467ba0cee0d1508babcb8bf3d8d97c30ca350ea6.zip
test: add testcases to ensure provider collisions generate an error
-rw-r--r--test/provides.repo14
-rw-r--r--test/provides10.test11
-rw-r--r--test/provides11.test11
3 files changed, 36 insertions, 0 deletions
diff --git a/test/provides.repo b/test/provides.repo
index 69f18cb..8776803 100644
--- a/test/provides.repo
+++ b/test/provides.repo
@@ -83,3 +83,17 @@ V:0.1
S:1
I:1
p:conflicted-provider
+
+C:Q1EyN5AdpAOBJWKMR89ppC66ccccj=
+P:conflicted-dep
+V:0.1
+S:1
+I:1
+D:conflicted-provider
+
+C:Q1EyN5AdpAOBJWKMR89ppC66ddddj=
+P:conflicted-parent
+V:0.1
+S:1
+I:1
+D:conflicted-dep
diff --git a/test/provides10.test b/test/provides10.test
new file mode 100644
index 0000000..4485543
--- /dev/null
+++ b/test/provides10.test
@@ -0,0 +1,11 @@
+
+@ARGS
+--test-repo provides.repo
+add conflicted-dep
+@EXPECT
+ERROR: unsatisfiable constraints:
+ conflicted-provider (virtual):
+ provided by: conflicted-provider-a
+ conflicted-provider-b
+ required by:
+ conflicted-dep-0.1[conflicted-provider]
diff --git a/test/provides11.test b/test/provides11.test
new file mode 100644
index 0000000..47af3b2
--- /dev/null
+++ b/test/provides11.test
@@ -0,0 +1,11 @@
+
+@ARGS
+--test-repo provides.repo
+add conflicted-parent
+@EXPECT
+ERROR: unsatisfiable constraints:
+ conflicted-provider (virtual):
+ provided by: conflicted-provider-a
+ conflicted-provider-b
+ required by:
+ conflicted-dep-0.1[conflicted-provider]