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