summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-07-27 20:27:41 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-07-27 20:45:38 +0300
commitad45a6de178e8680a325dbdd0da5f637fdd0efd6 (patch)
treee7d3dd896169e16e636f4f5fe4a3464722e65391 /test
parent034c02f0de8e3e98587937c170b26937cb15ec69 (diff)
downloadapk-tools-ad45a6de178e8680a325dbdd0da5f637fdd0efd6.tar.gz
apk-tools-ad45a6de178e8680a325dbdd0da5f637fdd0efd6.tar.bz2
apk-tools-ad45a6de178e8680a325dbdd0da5f637fdd0efd6.tar.xz
apk-tools-ad45a6de178e8680a325dbdd0da5f637fdd0efd6.zip
solver: permutate each preferred solution first
The first found solution is the most preferred one then.
Diffstat (limited to 'test')
-rw-r--r--test/basic.installed213
-rw-r--r--test/basic5.expect2
-rw-r--r--test/basic5.test1
-rw-r--r--test/basic6.expect0
-rw-r--r--test/basic6.test1
5 files changed, 17 insertions, 0 deletions
diff --git a/test/basic.installed2 b/test/basic.installed2
new file mode 100644
index 0000000..f5fb530
--- /dev/null
+++ b/test/basic.installed2
@@ -0,0 +1,13 @@
+C:Q1EyN5AdpAOBJWKMR89pdfC66o+OE=
+P:a
+V:2
+S:1
+I:1
+D:b
+
+C:Q1C4uoV7SdMdDdfg4OCVmI71D8HIA=
+P:b
+V:2
+S:1
+I:1
+
diff --git a/test/basic5.expect b/test/basic5.expect
new file mode 100644
index 0000000..269ff0c
--- /dev/null
+++ b/test/basic5.expect
@@ -0,0 +1,2 @@
+Replacing a (2 -> 2)
+Replacing b (2 -> 2)
diff --git a/test/basic5.test b/test/basic5.test
new file mode 100644
index 0000000..6e69db3
--- /dev/null
+++ b/test/basic5.test
@@ -0,0 +1 @@
+--raw-repository basic.repo --installed basic.installed2 -a a
diff --git a/test/basic6.expect b/test/basic6.expect
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/basic6.expect
diff --git a/test/basic6.test b/test/basic6.test
new file mode 100644
index 0000000..2a644c2
--- /dev/null
+++ b/test/basic6.test
@@ -0,0 +1 @@
+--raw-repository basic.repo --installed basic.installed2 a