]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-cache-showsrc
show apt-key warnings in apt update
[apt.git] / test / integration / test-apt-cache-showsrc
CommitLineData
a8275acf
MV
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
a8275acf
MV
6
7setupenvironment
8configarchitecture "i386"
9
10# we have a foo source package
11insertsource 'unstable' 'foo' 'all' '1.0' '' 'foo-binary'
12
13# and a similar one that builds a foo binary package
14insertsource 'unstable' 'unreleated' 'all' '1.0' '' 'foo'
15
16# just here to workaround the need for a authenticated package
17insertpackage 'unstable' 'workaround' 'all' '1.0'
18
19setupaptarchive
20
21# by default apt-cache showsrc will look into "binary" and "source" names
22# and show all matches
23aptcache showsrc foo > output.txt
24testsuccess grep "Package: foo" output.txt
25testsuccess grep "Package: unreleated" output.txt
26
27# by default apt-cache showsrc will look into "binary" and "source" names
28# and show all matches
29aptcache showsrc --only-source foo > output.txt
30testsuccess grep "Package: foo" output.txt
31testfailure grep "Package: unreleated" output.txt