]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-613420-new-garbage-dependency
CMake: Add coverage build type
[apt.git] / test / integration / test-bug-613420-new-garbage-dependency
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6setupenvironment
7configarchitecture "i386"
8
9insertpackage 'unstable' 'libreoffice' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core'
10insertpackage 'unstable' 'libreoffice-core' 'all' '1:3.3.1~rc1-2' 'Conflicts: openoffice.org-core'
11insertpackage 'unstable' 'libreoffice-officebean' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core'
12insertpackage 'unstable' 'openoffice.org-officebean' 'all' '1:3.3.0-5' 'Depends: libreoffice-officebean'
13
14setupaptarchive
15
16touch rootdir/var/lib/apt/extended_states
17testsuccess aptmark markauto openoffice.org-officebean
18testmarkedauto openoffice.org-officebean
19AUTOREMOVE='apt autoremove'
20if [ -n "$SUDO_USER" ]; then
21 AUTOREMOVE="sudo $AUTOREMOVE"
22fi
23
24testfailureequal "Reading package lists...
25Building dependency tree...
26Reading state information...
27The following packages were automatically installed and are no longer required:
28 libreoffice-officebean openoffice.org-officebean
29Use '$AUTOREMOVE' to remove them.
30The following additional packages will be installed:
31 libreoffice-core libreoffice-officebean openoffice.org-officebean
32The following packages will be REMOVED:
33 openoffice.org-core
34The following NEW packages will be installed:
35 libreoffice libreoffice-core libreoffice-officebean
36The following packages will be upgraded:
37 openoffice.org-officebean
381 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
39After this operation, 126 MB disk space will be freed.
40E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only
41testequal "Reading package lists...
42Building dependency tree...
43Reading state information...
442 packages were automatically installed and are no longer required.
45Use '$AUTOREMOVE' to remove them.
46The following additional packages will be installed:
47 libreoffice-core libreoffice-officebean openoffice.org-officebean
48The following packages will be REMOVED:
49 openoffice.org-core
50The following NEW packages will be installed:
51 libreoffice libreoffice-core libreoffice-officebean
52The following packages will be upgraded:
53 openoffice.org-officebean
541 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
55After this operation, 126 MB disk space will be freed.
56E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only -o APT::Get::HideAutoRemove=small