]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-cli-search
4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
10 DESCR
='Some description that has a unusual word xxyyzz and aabbcc'
11 DESCR2
='Some other description with the unusual aabbcc only'
12 insertpackage
'unstable' 'foo' 'all' '1.0' '' '' "$DESCR"
13 insertpackage
'testing' 'bar' 'i386' '2.0' '' '' "$DESCR2"
17 APTARCHIVE
=$(readlink -f ./aptarchive)
27 testequal
"foo/unstable 1.0 all
29 " apt search
-qq xxyyzz
31 # search with multiple words is a AND search
32 testequal
"foo/unstable 1.0 all
34 " apt search
-qq aabbcc xxyyzz
36 # output is sorted and search word finds both package
37 testequal
"bar/testing 2.0 i386
42 " apt search
-qq aabbcc