]>
Commit | Line | Data |
---|---|---|
69335858 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | setupenvironment | |
7 | configarchitecture 'native' | |
8 | ||
9 | insertpackage 'unstable' 'foo' 'all' '1' 'Provides: stuff' 'important' | |
10 | insertpackage 'unstable' 'bar' 'all' '1' 'Provides: stuff' 'optional' | |
11 | insertpackage 'unstable' 'baz' 'all' '1' 'Provides: stuff' 'extra' | |
12 | insertpackage 'unstable' 'awesome' 'all' '1' 'Depends: stuff' | |
13 | ||
14 | setupaptarchive | |
15 | ||
16 | testequal 'Reading package lists... | |
17 | Building dependency tree... | |
18 | The following extra packages will be installed: | |
19 | foo | |
20 | The following NEW packages will be installed: | |
21 | awesome foo | |
22 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
23 | Inst foo (1 unstable [all]) | |
24 | Inst awesome (1 unstable [all]) | |
25 | Conf foo (1 unstable [all]) | |
26 | Conf awesome (1 unstable [all])' aptget install awesome -s | |
27 | ||
28 | testequal 'Reading package lists... | |
29 | Building dependency tree... | |
30 | The following NEW packages will be installed: | |
31 | awesome foo | |
32 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
33 | Inst foo (1 unstable [all]) | |
34 | Inst awesome (1 unstable [all]) | |
35 | Conf foo (1 unstable [all]) | |
36 | Conf awesome (1 unstable [all])' aptget install awesome foo -s |