summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-06 14:21:59 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-09-06 14:21:59 +0300
commit462bb3b8d3e9e88369e385ab770020e3ab20b041 (patch)
tree0b13c6b5bcd56a3f7e8ed762e0530edb2083dc98 /test
parent0fe8507f9d9fbb2843f5bb6638abd448023a9be9 (diff)
downloadapk-tools-462bb3b8d3e9e88369e385ab770020e3ab20b041.tar.gz
apk-tools-462bb3b8d3e9e88369e385ab770020e3ab20b041.tar.bz2
apk-tools-462bb3b8d3e9e88369e385ab770020e3ab20b041.tar.xz
apk-tools-462bb3b8d3e9e88369e385ab770020e3ab20b041.zip
solver: if pinning is specified, it overrides preferred repos
add also a test case for this
Diffstat (limited to 'test')
-rw-r--r--test/pinning-basic.repo6
-rw-r--r--test/pinning-overlay1.repo6
-rw-r--r--test/pinning13.test7
3 files changed, 19 insertions, 0 deletions
diff --git a/test/pinning-basic.repo b/test/pinning-basic.repo
index 23a8c65..c511f8a 100644
--- a/test/pinning-basic.repo
+++ b/test/pinning-basic.repo
@@ -18,3 +18,9 @@ S:1
I:1
D:a>=2
+C:Q1eVpkasfqZAukArrYbg324xt4WUX=
+P:samever
+V:10
+S:1
+I:1
+
diff --git a/test/pinning-overlay1.repo b/test/pinning-overlay1.repo
index c41ddf7..95a7551 100644
--- a/test/pinning-overlay1.repo
+++ b/test/pinning-overlay1.repo
@@ -18,3 +18,9 @@ S:1
I:1
D:a>=3
+C:Q1eVpkasfqZAukArrYbg324xt4WUr=
+P:samever
+V:10
+S:1
+I:1
+
diff --git a/test/pinning13.test b/test/pinning13.test
new file mode 100644
index 0000000..54ecba3
--- /dev/null
+++ b/test/pinning13.test
@@ -0,0 +1,7 @@
+@ARGS
+--test-repo pinning-basic.repo
+--test-repo testing:pinning-overlay1.repo
+add samever@testing
+@EXPECT
+(1/1) Installing samever@testing (10)
+OK: 0 MiB in 0 packages