]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-691453-apt-cache-search-multi-pattern
show apt-key warnings in apt update
[apt.git] / test / integration / test-bug-691453-apt-cache-search-multi-pattern
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6setupenvironment
7configarchitecture 'native'
8
9insertpackage 'unstable' 'foobar' 'native' '1' '' '' 'funky tool'
10insertpackage 'unstable' 'coolstuff' 'native' '1' '' '' 'funky tool just like foo and bar'
11insertpackage 'unstable' 'foo' 'native' '1' '' '' 'tool best used with bar'
12insertpackage 'unstable' 'bar' 'native' '1' '' '' 'tool best used with foo'
13insertpackage 'unstable' 'baz' 'native' '1' 'Provides: bar' '' 'alternative tool best used with foo'
14
15setupaptarchive
16
17# in this special case the following queries should be equal
18FOOBAR='foobar - funky tool
19coolstuff - funky tool just like foo and bar
20foo - tool best used with bar
21bar - tool best used with foo
22baz - alternative tool best used with foo'
23
24testsuccessequal "$FOOBAR" aptcache search foo
25testsuccessequal "$FOOBAR" aptcache search bar
26testsuccessequal "$FOOBAR" aptcache search foo bar
27
28testsuccessequal 'foobar - funky tool
29foo - tool best used with bar' aptcache search -n foo
30testsuccessequal 'foobar - funky tool
31bar - tool best used with foo
32baz - alternative tool best used with foo' aptcache search -n bar
33testsuccessequal 'foobar - funky tool' aptcache search -n foo bar