summaryrefslogtreecommitdiff
path: root/test/integration/test-ubuntu-bug-1876495-pkgnames-virtual
blob: 2391c7e2d4ac65ae33e7c909fee3cccaaa62c898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture 'i386'

insertinstalledpackage 'coolstuff' 'all' '1.0' 'Provides: virtual-package
Source: source-package'

setupaptarchive
changetowebserver

testsuccess aptget update -o Debug::Acquire::gpg=1
testsuccessequal "dpkg
coolstuff" aptcache pkgnames

testsuccessequal "dpkg
source-package
virtual-package
coolstuff" aptcache pkgnames --all-names