summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-get-build-dep
blob: 403de8f351369e36fcb6179fec9c134ff9db0375 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/bin/sh
set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"

setupenvironment
configarchitecture 'i386'

insertpackage 'stable' 'build-essential' 'i386' '1'
insertpackage 'stable' 'build-essential2' 'i386' '1'
insertpackage 'stable' 'build-depends' 'i386' '1'
insertpackage 'stable' 'build-depends-arch' 'i386' '1'
insertpackage 'stable' 'build-depends-indep' 'i386' '1'
insertinstalledpackage 'build-conflicts' 'i386' '1'
insertinstalledpackage 'build-conflicts-arch' 'i386' '1'
insertinstalledpackage 'build-conflicts-indep' 'i386' '1'

setupaptarchive

cat > foobar.dsc <<EOF
Format: 3.0 (native)
Source: foobar
Binary: foobar
Architecture: all
Version: 1
Maintainer: Joe Sixpack <joe@example.org>
Build-Depends: build-depends (>= 1)
Build-Depends-Indep: build-depends-indep (>= 1)
Build-Depends-Arch: build-depends-arch (>= 1)
Build-Conflicts: build-conflicts (>= 1)
Build-Conflicts-Indep: build-conflicts-indep (>= 1)
Build-Conflicts-Arch: build-conflicts-arch (>= 1)
Standards-Version: 3.9.8
EOF
testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
The following packages will be REMOVED:
  build-conflicts build-conflicts-arch build-conflicts-indep
The following NEW packages will be installed:
  build-depends build-depends-arch build-depends-indep build-essential
0 upgraded, 4 newly installed, 3 to remove and 0 not upgraded.
Remv build-conflicts [1]
Remv build-conflicts-arch [1]
Remv build-conflicts-indep [1]
Inst build-depends (1 stable [i386])
Inst build-depends-arch (1 stable [i386])
Inst build-depends-indep (1 stable [i386])
Inst build-essential (1 stable [i386])
Conf build-depends (1 stable [i386])
Conf build-depends-arch (1 stable [i386])
Conf build-depends-indep (1 stable [i386])
Conf build-essential (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc

testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
The following packages will be REMOVED:
  build-conflicts build-conflicts-arch build-conflicts-indep
The following NEW packages will be installed:
  build-depends build-depends-arch build-depends-indep build-essential2
0 upgraded, 4 newly installed, 3 to remove and 0 not upgraded.
Remv build-conflicts [1]
Remv build-conflicts-arch [1]
Remv build-conflicts-indep [1]
Inst build-depends (1 stable [i386])
Inst build-depends-arch (1 stable [i386])
Inst build-depends-indep (1 stable [i386])
Inst build-essential2 (1 stable [i386])
Conf build-depends (1 stable [i386])
Conf build-depends-arch (1 stable [i386])
Conf build-depends-indep (1 stable [i386])
Conf build-essential2 (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc -o APT::Build-Essential="build-essential2"

testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
The following packages will be REMOVED:
  build-conflicts build-conflicts-arch build-conflicts-indep
The following NEW packages will be installed:
  build-depends build-depends-arch build-depends-indep
0 upgraded, 3 newly installed, 3 to remove and 0 not upgraded.
Remv build-conflicts [1]
Remv build-conflicts-arch [1]
Remv build-conflicts-indep [1]
Inst build-depends (1 stable [i386])
Inst build-depends-arch (1 stable [i386])
Inst build-depends-indep (1 stable [i386])
Conf build-depends (1 stable [i386])
Conf build-depends-arch (1 stable [i386])
Conf build-depends-indep (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc -o APT::Build-Essential=","

testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
The following packages will be REMOVED:
  build-conflicts build-conflicts-arch build-conflicts-indep
The following NEW packages will be installed:
  build-depends build-depends-arch build-depends-indep build-essential
  build-essential2
0 upgraded, 5 newly installed, 3 to remove and 0 not upgraded.
Remv build-conflicts [1]
Remv build-conflicts-arch [1]
Remv build-conflicts-indep [1]
Inst build-depends (1 stable [i386])
Inst build-depends-arch (1 stable [i386])
Inst build-depends-indep (1 stable [i386])
Inst build-essential (1 stable [i386])
Inst build-essential2 (1 stable [i386])
Conf build-depends (1 stable [i386])
Conf build-depends-arch (1 stable [i386])
Conf build-depends-indep (1 stable [i386])
Conf build-essential (1 stable [i386])
Conf build-essential2 (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc -o APT::Build-Essential::="build-essential2"

testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
The following packages will be REMOVED:
  build-conflicts build-conflicts-arch
The following NEW packages will be installed:
  build-depends build-depends-arch build-essential
0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
Remv build-conflicts [1]
Remv build-conflicts-arch [1]
Inst build-depends (1 stable [i386])
Inst build-depends-arch (1 stable [i386])
Inst build-essential (1 stable [i386])
Conf build-depends (1 stable [i386])
Conf build-depends-arch (1 stable [i386])
Conf build-essential (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc --arch-only

testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
The following packages will be REMOVED:
  build-conflicts build-conflicts-indep
The following NEW packages will be installed:
  build-depends build-depends-indep build-essential
0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
Remv build-conflicts [1]
Remv build-conflicts-indep [1]
Inst build-depends (1 stable [i386])
Inst build-depends-indep (1 stable [i386])
Inst build-essential (1 stable [i386])
Conf build-depends (1 stable [i386])
Conf build-depends-indep (1 stable [i386])
Conf build-essential (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc --indep-only