4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
8 configarchitecture 'i386'
10 insertpackage 'stable' 'build-essential' 'i386' '1'
11 insertpackage 'stable' 'build-essential2' 'i386' '1'
12 insertpackage 'stable' 'build-depends' 'i386' '1'
13 insertpackage 'stable' 'build-depends-arch' 'i386' '1'
14 insertpackage 'stable' 'build-depends-indep' 'i386' '1'
15 insertinstalledpackage 'build-conflicts' 'i386' '1'
16 insertinstalledpackage 'build-conflicts-arch' 'i386' '1'
17 insertinstalledpackage 'build-conflicts-indep' 'i386' '1'
21 cat > foobar.dsc <<EOF
27 Maintainer: Joe Sixpack <joe@example.org>
28 Build-Depends: build-depends (>= 1)
29 Build-Depends-Indep: build-depends-indep (>= 1)
30 Build-Depends-Arch: build-depends-arch (>= 1)
31 Build-Conflicts: build-conflicts (>= 1)
32 Build-Conflicts-Indep: build-conflicts-indep (>= 1)
33 Build-Conflicts-Arch: build-conflicts-arch (>= 1)
34 Standards-Version: 3.9.8
36 testsuccessequal "Note
, using
file './foobar.dsc' to get the build dependencies
37 Reading package lists...
38 Building dependency tree...
39 The following packages will be REMOVED
:
40 build
-conflicts build
-conflicts-arch build
-conflicts-indep
41 The following NEW packages will be installed
:
42 build
-depends build
-depends-arch build
-depends-indep build
-essential
43 0 upgraded
, 4 newly installed
, 3 to remove and
0 not upgraded.
44 Remv build
-conflicts [1]
45 Remv build
-conflicts-arch [1]
46 Remv build
-conflicts-indep [1]
47 Inst build
-depends (1 stable
[i386
])
48 Inst build
-depends-arch (1 stable
[i386
])
49 Inst build
-depends-indep (1 stable
[i386
])
50 Inst build
-essential (1 stable
[i386
])
51 Conf build
-depends (1 stable
[i386
])
52 Conf build
-depends-arch (1 stable
[i386
])
53 Conf build
-depends-indep (1 stable
[i386
])
54 Conf build
-essential (1 stable
[i386
])" aptget build-dep --simulate ./foobar.dsc
56 testsuccessequal "Note
, using
file './foobar.dsc' to get the build dependencies
57 Reading package lists...
58 Building dependency tree...
59 The following packages will be REMOVED
:
60 build
-conflicts build
-conflicts-arch build
-conflicts-indep
61 The following NEW packages will be installed
:
62 build
-depends build
-depends-arch build
-depends-indep build
-essential2
63 0 upgraded
, 4 newly installed
, 3 to remove and
0 not upgraded.
64 Remv build
-conflicts [1]
65 Remv build
-conflicts-arch [1]
66 Remv build
-conflicts-indep [1]
67 Inst build
-depends (1 stable
[i386
])
68 Inst build
-depends-arch (1 stable
[i386
])
69 Inst build
-depends-indep (1 stable
[i386
])
70 Inst build
-essential2 (1 stable
[i386
])
71 Conf build
-depends (1 stable
[i386
])
72 Conf build
-depends-arch (1 stable
[i386
])
73 Conf build
-depends-indep (1 stable
[i386
])
74 Conf build
-essential2 (1 stable
[i386
])" aptget build-dep --simulate ./foobar.dsc -o APT::Build-Essential="build
-essential2"
76 testsuccessequal "Note
, using
file './foobar.dsc' to get the build dependencies
77 Reading package lists...
78 Building dependency tree...
79 The following packages will be REMOVED
:
80 build
-conflicts build
-conflicts-arch build
-conflicts-indep
81 The following NEW packages will be installed
:
82 build
-depends build
-depends-arch build
-depends-indep
83 0 upgraded
, 3 newly installed
, 3 to remove and
0 not upgraded.
84 Remv build
-conflicts [1]
85 Remv build
-conflicts-arch [1]
86 Remv build
-conflicts-indep [1]
87 Inst build
-depends (1 stable
[i386
])
88 Inst build
-depends-arch (1 stable
[i386
])
89 Inst build
-depends-indep (1 stable
[i386
])
90 Conf build
-depends (1 stable
[i386
])
91 Conf build
-depends-arch (1 stable
[i386
])
92 Conf build
-depends-indep (1 stable
[i386
])" aptget build-dep --simulate ./foobar.dsc -o APT::Build-Essential=","
94 testsuccessequal "Note
, using
file './foobar.dsc' to get the build dependencies
95 Reading package lists...
96 Building dependency tree...
97 The following packages will be REMOVED
:
98 build
-conflicts build
-conflicts-arch build
-conflicts-indep
99 The following NEW packages will be installed
:
100 build
-depends build
-depends-arch build
-depends-indep build
-essential
102 0 upgraded
, 5 newly installed
, 3 to remove and
0 not upgraded.
103 Remv build
-conflicts [1]
104 Remv build
-conflicts-arch [1]
105 Remv build
-conflicts-indep [1]
106 Inst build
-depends (1 stable
[i386
])
107 Inst build
-depends-arch (1 stable
[i386
])
108 Inst build
-depends-indep (1 stable
[i386
])
109 Inst build
-essential (1 stable
[i386
])
110 Inst build
-essential2 (1 stable
[i386
])
111 Conf build
-depends (1 stable
[i386
])
112 Conf build
-depends-arch (1 stable
[i386
])
113 Conf build
-depends-indep (1 stable
[i386
])
114 Conf build
-essential (1 stable
[i386
])
115 Conf build
-essential2 (1 stable
[i386
])" aptget build-dep --simulate ./foobar.dsc -o APT::Build-Essential::="build
-essential2"
117 testsuccessequal "Note
, using
file './foobar.dsc' to get the build dependencies
118 Reading package lists...
119 Building dependency tree...
120 The following packages will be REMOVED
:
121 build
-conflicts build
-conflicts-arch
122 The following NEW packages will be installed
:
123 build
-depends build
-depends-arch build
-essential
124 0 upgraded
, 3 newly installed
, 2 to remove and
0 not upgraded.
125 Remv build
-conflicts [1]
126 Remv build
-conflicts-arch [1]
127 Inst build
-depends (1 stable
[i386
])
128 Inst build
-depends-arch (1 stable
[i386
])
129 Inst build
-essential (1 stable
[i386
])
130 Conf build
-depends (1 stable
[i386
])
131 Conf build
-depends-arch (1 stable
[i386
])
132 Conf build
-essential (1 stable
[i386
])" aptget build-dep --simulate ./foobar.dsc --arch-only
134 testsuccessequal "Note
, using
file './foobar.dsc' to get the build dependencies
135 Reading package lists...
136 Building dependency tree...
137 The following packages will be REMOVED
:
138 build
-conflicts build
-conflicts-indep
139 The following NEW packages will be installed
:
140 build
-depends build
-depends-indep build
-essential
141 0 upgraded
, 3 newly installed
, 2 to remove and
0 not upgraded.
142 Remv build
-conflicts [1]
143 Remv build
-conflicts-indep [1]
144 Inst build
-depends (1 stable
[i386
])
145 Inst build
-depends-indep (1 stable
[i386
])
146 Inst build
-essential (1 stable
[i386
])
147 Conf build
-depends (1 stable
[i386
])
148 Conf build
-depends-indep (1 stable
[i386
])
149 Conf build
-essential (1 stable
[i386
])" aptget build-dep --simulate ./foobar.dsc --indep-only