]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-apt-get-build-dep
Don't download "optional" files not in Release :/.
[apt.git] / test / integration / test-apt-get-build-dep
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6
7setupenvironment
8configarchitecture 'i386'
9
10insertpackage 'stable' 'build-essential' 'i386' '1'
11insertpackage 'stable' 'build-depends' 'i386' '1'
12insertpackage 'stable' 'build-depends-arch' 'i386' '1'
13insertpackage 'stable' 'build-depends-indep' 'i386' '1'
14insertinstalledpackage 'build-conflicts' 'i386' '1'
15insertinstalledpackage 'build-conflicts-arch' 'i386' '1'
16insertinstalledpackage 'build-conflicts-indep' 'i386' '1'
17
18setupaptarchive
19
20cat > foobar.dsc <<EOF
21Format: 3.0 (native)
22Source: foobar
23Binary: foobar
24Architecture: all
25Version: 1
26Maintainer: Joe Sixpack <joe@example.org>
27Build-Depends: build-depends (>= 1)
28Build-Depends-Indep: build-depends-indep (>= 1)
29Build-Depends-Arch: build-depends-arch (>= 1)
30Build-Conflicts: build-conflicts (>= 1)
31Build-Conflicts-Indep: build-conflicts-indep (>= 1)
32Build-Conflicts-Arch: build-conflicts-arch (>= 1)
33Standards-Version: 3.9.8
34EOF
35testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
36Reading package lists...
37Building dependency tree...
38The following packages will be REMOVED:
39 build-conflicts build-conflicts-arch build-conflicts-indep
40The following NEW packages will be installed:
41 build-depends build-depends-arch build-depends-indep build-essential
420 upgraded, 4 newly installed, 3 to remove and 0 not upgraded.
43Remv build-conflicts [1]
44Remv build-conflicts-arch [1]
45Remv build-conflicts-indep [1]
46Inst build-depends (1 stable [i386])
47Inst build-depends-arch (1 stable [i386])
48Inst build-depends-indep (1 stable [i386])
49Inst build-essential (1 stable [i386])
50Conf build-depends (1 stable [i386])
51Conf build-depends-arch (1 stable [i386])
52Conf build-depends-indep (1 stable [i386])
53Conf build-essential (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc
54
55testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
56Reading package lists...
57Building dependency tree...
58The following packages will be REMOVED:
59 build-conflicts build-conflicts-arch
60The following NEW packages will be installed:
61 build-depends build-depends-arch build-essential
620 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
63Remv build-conflicts [1]
64Remv build-conflicts-arch [1]
65Inst build-depends (1 stable [i386])
66Inst build-depends-arch (1 stable [i386])
67Inst build-essential (1 stable [i386])
68Conf build-depends (1 stable [i386])
69Conf build-depends-arch (1 stable [i386])
70Conf build-essential (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc --arch-only