X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/bb0f6a34c4cebea7884de828c011dc85765ff820..e7e10e47476606e3b2274cf66b1e8ea74b236757:/test/integration/test-apt-cache diff --git a/test/integration/test-apt-cache b/test/integration/test-apt-cache index 1d90eed5c..c254aa602 100755 --- a/test/integration/test-apt-cache +++ b/test/integration/test-apt-cache @@ -34,6 +34,7 @@ testempty aptcache unmet dpkg testsuccess aptcache stats cp rootdir/tmp/testsuccess.output stats.output testsuccess test -s stats.output +testfailureequal 'E: apt-cache stats does not take any arguments' aptcache stats foo testsuccess aptcache xvcg foo cp rootdir/tmp/testsuccess.output xvcg.output testsuccess test -s xvcg.output @@ -54,7 +55,8 @@ testsuccessequal 'bar' aptcache pkgnames bar testsuccessequal 'fancy foo' aptcache pkgnames f -testsuccessequal " foo | 1 | file:$(readlink -f .)/aptarchive unstable/main amd64 Packages" aptcache madison foo +testsuccessequal " foo | 1 | file:$(readlink -f .)/aptarchive unstable/main amd64 Packages + foo | 1 | file:$(readlink -f .)/aptarchive unstable/main i386 Packages" aptcache madison foo ### depends @@ -119,12 +121,9 @@ bar Depends: bar Breaks: foo Replaces: foo - Breaks: - Replaces: - -' aptcache depends foo --recurse --implicit +' aptcache depends foo --recurse --implicit testsuccessequal 'foo Depends: bar bar @@ -134,9 +133,7 @@ testsuccessequal 'foo Depends: bar bar Depends: bar - Replaces: foo - Replaces: -' aptcache depends foo --recurse --important --replaces --implicit + Replaces: foo' aptcache depends foo --recurse --important --replaces --implicit testsuccessequal 'bar Depends: bar Breaks: foo @@ -144,38 +141,37 @@ testsuccessequal 'bar testsuccessequal 'bar Depends: bar Breaks: foo - Replaces: foo - Breaks: - Replaces: ' aptcache depends bar --implicit + Replaces: foo' aptcache depends bar --implicit + testsuccessequal 'specific Depends: - Depends: specific:amd64 - Breaks: foo:amd64 + Depends: + specific + Breaks: Replaces: ' aptcache depends specific testsuccessequal 'specific Depends: - Depends: specific:amd64 - Breaks: foo:amd64 + Depends: + specific + Breaks: Replaces: ' aptcache depends specific --implicit -## rdpends +## rdepends +# Note that specific does not appear in this list as it doesn't depend on foo, +# but on an arch-specific foo! testsuccessequal 'foo Reverse Depends: bar - specific bar' aptcache rdepends foo testsuccessequal 'foo Reverse Depends: Breaks: bar - Breaks: specific Replaces: bar' aptcache rdepends foo -o APT::Cache::ShowDependencyType=1 testsuccessequal 'foo Reverse Depends: Breaks: bar (<< 1) - Breaks: specific (<< 1) Replaces: bar (<< 1)' aptcache rdepends foo -o APT::Cache::ShowDependencyType=1 -o APT::Cache::ShowVersion=1 testsuccessequal 'foo Reverse Depends: - Breaks: bar (<< 1) - Breaks: specific (<< 1)' aptcache rdepends foo -o APT::Cache::ShowDependencyType=1 -o APT::Cache::ShowVersion=1 --important --breaks + Breaks: bar (<< 1)' aptcache rdepends foo -o APT::Cache::ShowDependencyType=1 -o APT::Cache::ShowVersion=1 --important --breaks