summaryrefslogtreecommitdiff
path: root/test/integration/test-ubuntu-bug-1876495-pkgnames-virtual
blob: 627bd0c788be66efe879dc5b4549a02b7cdc0f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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 'coolstuff' aptcache pkgnames

testsuccessequal 'source-package
virtual-package
coolstuff' aptcache pkgnames --all-names