summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-07-14 18:29:16 -0600
committerTimo Teräs <timo.teras@iki.fi>2020-07-30 11:42:17 +0300
commit82de29cf7bad3d9cbb0aeb4dbe756ad2bde73eb3 (patch)
tree0daa7a487fd1c76265273ebb83fa279f95032860 /test
parentbef1faf1cba44b6d4106a37728f769edaf90ee87 (diff)
downloadapk-tools-82de29cf7bad3d9cbb0aeb4dbe756ad2bde73eb3.tar.gz
apk-tools-82de29cf7bad3d9cbb0aeb4dbe756ad2bde73eb3.tar.bz2
apk-tools-82de29cf7bad3d9cbb0aeb4dbe756ad2bde73eb3.tar.xz
apk-tools-82de29cf7bad3d9cbb0aeb4dbe756ad2bde73eb3.zip
test: add test for granular upgrade
Diffstat (limited to 'test')
-rw-r--r--test/upgrade.repo5
-rw-r--r--test/upgrade3.installed18
-rw-r--r--test/upgrade3.test8
3 files changed, 31 insertions, 0 deletions
diff --git a/test/upgrade.repo b/test/upgrade.repo
index 032a29b..7f691c6 100644
--- a/test/upgrade.repo
+++ b/test/upgrade.repo
@@ -25,3 +25,8 @@ S:1
I:1
D:libnew
+C:Q1C4uoV7SdMdDhYg4OCVmI71D8HIE=
+P:b
+V:2
+S:1
+I:1
diff --git a/test/upgrade3.installed b/test/upgrade3.installed
new file mode 100644
index 0000000..7eabd8f
--- /dev/null
+++ b/test/upgrade3.installed
@@ -0,0 +1,18 @@
+C:Q1EyN5AdpAOBJWKMR89pp/C66o+OE=
+P:libold
+V:1
+S:1
+I:1
+
+C:Q1eVpkasfqZAukAXFYbgwt4xAEEEe=
+P:app
+V:1
+S:1
+I:1
+D:libold
+
+C:Q1C4uoV7SdMdDhYg4OCVmI71D8HIA=
+P:b
+V:1
+S:1
+I:1
diff --git a/test/upgrade3.test b/test/upgrade3.test
new file mode 100644
index 0000000..ac7a674
--- /dev/null
+++ b/test/upgrade3.test
@@ -0,0 +1,8 @@
+@ARGS
+--test-repo upgrade.repo
+--test-instdb upgrade3.installed
+--test-world "app b"
+upgrade b
+@EXPECT
+(1/1) Upgrading b (1 -> 2)
+OK: 0 MiB in 3 packages