summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-05-30 08:46:30 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-05-30 08:48:32 +0300
commitaec93ee730f7a2e0196ae05fdd45e866d2510e41 (patch)
treeb51fdb4924941ea15eea0356fa6e69a7afc91e14 /test
parent035da870362494bcb4ed092e27278c290b204410 (diff)
downloadapk-tools-aec93ee730f7a2e0196ae05fdd45e866d2510e41.tar.gz
apk-tools-aec93ee730f7a2e0196ae05fdd45e866d2510e41.tar.bz2
apk-tools-aec93ee730f7a2e0196ae05fdd45e866d2510e41.tar.xz
apk-tools-aec93ee730f7a2e0196ae05fdd45e866d2510e41.zip
db: unify handling of special packages
make cache a special kind of repository, and automatically cache special packages (virtual packages, or ones installed from command line). add test cases for handling virtual packages. fixes #1617.
Diffstat (limited to 'test')
-rw-r--r--test/basic8.test6
-rw-r--r--test/basic9.test8
2 files changed, 14 insertions, 0 deletions
diff --git a/test/basic8.test b/test/basic8.test
new file mode 100644
index 0000000..4d5ebb2
--- /dev/null
+++ b/test/basic8.test
@@ -0,0 +1,6 @@
+@ARGS
+--no-network
+add -t .virtual
+@EXPECT
+(1/1) Installing .virtual (0)
+OK: 0 MiB in 0 packages
diff --git a/test/basic9.test b/test/basic9.test
new file mode 100644
index 0000000..34bcb63
--- /dev/null
+++ b/test/basic9.test
@@ -0,0 +1,8 @@
+@ARGS
+--no-network
+--test-instdb basic.installed
+--test-world a
+add -t .virtual a
+@EXPECT
+(1/1) Installing .virtual (0)
+OK: 0 MiB in 2 packages