]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-get-build-dep
a8e6f68430fd224702c6bad397085818c91bfa6a
4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
'i386'
10 insertpackage
'stable' 'debhelper' 'i386' '7'
11 insertpackage
'stable' 'build-essential' 'i386' '1'
12 insertinstalledpackage
'build-conflict' 'i386' '1'
16 msgmsg
'Test with' 'unsigned dsc'
17 cat > 2vcard_0.5
-3.dsc
<<EOF
23 Maintainer: Martin Albisetti <argentina@gmail.com>
24 Uploaders: Marcela Tiznado <mlt@debian.org>
25 Standards-Version: 3.8.0
26 Build-Depends: debhelper (>= 5.0.37)
27 Build-Conflicts: build-conflict (<< 2)
29 b7f1ce31ec856414a3f0f1090689f91aa7456d56 9398 2vcard_0.5.orig.tar.gz
30 5f9acd07ebda6ab00fa6b4fe3198c13e94090862 2036 2vcard_0.5-3.diff.gz
32 efdc22859ac2f8f030d038dc4faa9020082ebae34212498c288968ffd45c9764 9398 2vcard_0.5.orig.tar.gz
33 82673ff3456af571094066c89bcea87b25c23c87cf1d0050b731e5222563626b 2036 2vcard_0.5-3.diff.gz
35 f73a69c170f772f3f6e75f2d11bbb792 9398 2vcard_0.5.orig.tar.gz
36 1e806d32233af87437258d86b1561f57 2036 2vcard_0.5-3.diff.gz
39 test2vcardbuilddep
() {
40 testsuccessequal
"Reading package lists...
41 Building dependency tree...
42 Note, using file './2vcard_0.5-3.dsc' to get the build dependencies
43 The following packages will be REMOVED:
45 The following NEW packages will be installed:
46 build-essential debhelper
47 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
48 Remv build-conflict [1]
49 Inst build-essential (1 stable [i386])
50 Inst debhelper (7 stable [i386])
51 Conf build-essential (1 stable [i386])
52 Conf debhelper (7 stable [i386])" aptget build
-dep -s .
/2vcard_0.5
-3.dsc
53 testfailure aptget build
-dep --simulate 2vcard_0.5
-3.dsc
55 testsuccess aptget build
-dep --simulate ..
/2vcard_0.5
-3.dsc
56 testsuccess aptget build
-dep --simulate "$(readlink -f ../2vcard_0.5-3.dsc)"
61 msgmsg
'Test with' 'signed dsc'
62 cat > 2vcard_0.5
-3.dsc
<<EOF
63 -----BEGIN PGP SIGNED MESSAGE-----
71 Maintainer: Martin Albisetti <argentina@gmail.com>
72 Uploaders: Marcela Tiznado <mlt@debian.org>
73 Standards-Version: 3.8.0
74 Build-Depends: debhelper (>= 5.0.37)
75 Build-Conflicts: build-conflict (<< 2)
77 b7f1ce31ec856414a3f0f1090689f91aa7456d56 9398 2vcard_0.5.orig.tar.gz
78 5f9acd07ebda6ab00fa6b4fe3198c13e94090862 2036 2vcard_0.5-3.diff.gz
80 efdc22859ac2f8f030d038dc4faa9020082ebae34212498c288968ffd45c9764 9398 2vcard_0.5.orig.tar.gz
81 82673ff3456af571094066c89bcea87b25c23c87cf1d0050b731e5222563626b 2036 2vcard_0.5-3.diff.gz
83 f73a69c170f772f3f6e75f2d11bbb792 9398 2vcard_0.5.orig.tar.gz
84 1e806d32233af87437258d86b1561f57 2036 2vcard_0.5-3.diff.gz
86 -----BEGIN PGP SIGNATURE-----
87 Version: GnuPG v1.4.9 (GNU/Linux)
89 iEYEARECAAYFAkijKhsACgkQsrBfRdYmq7aA2gCfaOW9riTYVQMx5ajKQVAcctlC
90 z2UAn1oXgTai6opwhVfkxrlmJ+iRxzuc
92 -----END PGP SIGNATURE-----
97 msgmsg
'Test with' 'unpacked source dir'
98 mkdir -p foo
-1.0
/debian
99 cat > foo
-1.0
/debian
/control
<<'EOF'
103 Maintainer: Michael Vogt <mvo@ubuntu.com>
104 Build-Depends: debhelper (>= 7)
105 X-Python3-Version: >= 3.2
106 Standards-Version: 3.9.3
108 Package: apturl-common
110 Depends: ${python3:Depends},
114 python3-update-manager
115 Replaces: apturl (<< 0.3.6ubuntu2)
116 Description: install packages using the apt protocol - common data
117 AptUrl is a simple graphical application that takes an URL (which follows the
118 apt-protocol) as a command line option, parses it and carries out the
119 operations that the URL describes (that is, it asks the user if he wants the
120 indicated packages to be installed and if the answer is positive does so for
123 This package contains the common data shared between the frontends.
127 testsuccessequal
"Reading package lists...
128 Building dependency tree...
129 Note, using directory './foo-1.0' to get the build dependencies
130 The following NEW packages will be installed:
131 build-essential debhelper
132 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
133 Inst build-essential (1 stable [i386])
134 Inst debhelper (7 stable [i386])
135 Conf build-essential (1 stable [i386])
136 Conf debhelper (7 stable [i386])" aptget build
-dep --simulate .
/foo
-1.0
137 testfailure aptget build
-dep --simulate foo
-1.0
139 testsuccess aptget build
-dep --simulate ..
/foo
-1.0
140 testsuccess aptget build
-dep --simulate "$(readlink -f ../foo-1.0)"
143 testfailureequal
'Reading package lists...
144 Building dependency tree...
145 E: Must specify at least one package to check builddeps for' aptget build
-dep
146 testfailureequal
'Reading package lists...
147 Building dependency tree...
148 E: No architecture information available for armel. See apt.conf(5) APT::Architectures for setup' aptget build
-dep --simulate .
/foo
-1.0
-a armel
149 testfailureequal
'Reading package lists...
150 Building dependency tree...
151 E: Unable to find a source package for foo' aptget build
-dep --simulate foo