File: test-solver3-suggests-last

package info (click to toggle)
apt 3.1.16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,788 kB
  • sloc: cpp: 71,226; sh: 31,791; xml: 5,553; perl: 217; python: 197; ansic: 191; makefile: 41
file content (26 lines) | stat: -rwxr-xr-x 795 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture 'amd64'

insertpackage 'installed' 'avahi-daemon' 'all' '1' 'Suggests: avahi-autoipd'
insertpackage 'installed' 'dhcpd-base' 'all' '1' 'Provides: avahi-autoipd'
insertpackage 'unstable' 'avahi-autoipd' 'all'  2
insertpackage 'unstable' 'dhcpd-base' 'all' '2'

setupaptarchive

for command in "aptget upgrade" "aptget dist-upgrade" "apt upgrade" "apt dist-upgrade"; do
testsuccessequal "Reading package lists...
Building dependency tree...
Calculating upgrade...
The following packages will be upgraded:
  dhcpd-base
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst dhcpd-base [1] (2 unstable [all])
Conf dhcpd-base (2 unstable [all])" $command -s -q
done