]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-cli-search
fix ADT failure in downloadfile()
[apt.git] / test / integration / test-apt-cli-search
CommitLineData
1bef0dd5
MV
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
9
10DESCR='Some description that has a unusual word xxyyzz and aabbcc'
11DESCR2='Some other description with the unusual aabbcc only'
12insertpackage 'unstable' 'foo' 'all' '1.0' '' '' "$DESCR"
13insertpackage 'testing' 'bar' 'i386' '2.0' '' '' "$DESCR2"
14
15setupaptarchive
16
17APTARCHIVE=$(readlink -f ./aptarchive)
18
19# with OP progress
20testequal "Sorting...
21Full Text Search...
22foo/unstable 1.0 all
23 $DESCR
24" apt search xxyyzz
25
26# without op progress
27testequal "foo/unstable 1.0 all
28 $DESCR
29" apt search -qq xxyyzz
30
31# search with multiple words is a AND search
32testequal "foo/unstable 1.0 all
33 $DESCR
34" apt search -qq aabbcc xxyyzz
35
36# output is sorted and search word finds both package
37testequal "bar/testing 2.0 i386
38 $DESCR2
39
40foo/unstable 1.0 all
41 $DESCR
42" apt search -qq aabbcc