summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/upgrade4.repo26
-rw-r--r--test/upgrade4.test12
2 files changed, 38 insertions, 0 deletions
diff --git a/test/upgrade4.repo b/test/upgrade4.repo
new file mode 100644
index 0000000..cc3a84e
--- /dev/null
+++ b/test/upgrade4.repo
@@ -0,0 +1,26 @@
+C:Q1EyN5AdpAOBJWKMR89pp/C66o+OE=
+P:libold
+V:1
+S:1
+I:1
+
+C:Q1EyN5AdpAOBJWKMR89pp/C66o+FE=
+P:libnew
+V:1
+S:1
+I:1
+D:!libold
+
+C:Q1eVpkasfqZAukAXFYbgwt4xAEEEe=
+P:app
+V:1
+S:1
+I:1
+D:libold
+
+C:Q1EyN5AdpAOBJWKMR89pp/C77FFFF=
+P:app
+V:2
+S:1
+I:1
+D:libnew
diff --git a/test/upgrade4.test b/test/upgrade4.test
new file mode 100644
index 0000000..dcffe28
--- /dev/null
+++ b/test/upgrade4.test
@@ -0,0 +1,12 @@
+@ARGS
+--test-repo upgrade4.repo
+--test-instdb upgrade3.installed
+--test-world "app b"
+--prune
+upgrade
+@EXPECT
+(1/4) Purging b (1)
+(2/4) Purging libold (1)
+(3/4) Installing libnew (1)
+(4/4) Upgrading app (1 -> 2)
+OK: 0 MiB in 3 packages