]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-get-build-dep
add support for apt-get build-dep foo.dsc
[apt.git] / test / integration / test-apt-get-build-dep
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6
7 setupenvironment
8 configarchitecture "i386"
9
10 buildsimplenativepackage 'debhelper' 'i386' '7' 'stable'
11 buildsimplenativepackage 'build-essential' 'i386' '1' 'stable'
12
13 setupaptarchive
14 cat > 2vcard_0.5-3.dsc <<EOF
15 Format: 1.0
16 Source: 2vcard
17 Binary: 2vcard
18 Architecture: all
19 Version: 0.5-3
20 Maintainer: Martin Albisetti <argentina@gmail.com>
21 Uploaders: Marcela Tiznado <mlt@debian.org>
22 Standards-Version: 3.8.0
23 Build-Depends: debhelper (>= 5.0.37)
24 Checksums-Sha1:
25 b7f1ce31ec856414a3f0f1090689f91aa7456d56 9398 2vcard_0.5.orig.tar.gz
26 5f9acd07ebda6ab00fa6b4fe3198c13e94090862 2036 2vcard_0.5-3.diff.gz
27 Checksums-Sha256:
28 efdc22859ac2f8f030d038dc4faa9020082ebae34212498c288968ffd45c9764 9398 2vcard_0.5.orig.tar.gz
29 82673ff3456af571094066c89bcea87b25c23c87cf1d0050b731e5222563626b 2036 2vcard_0.5-3.diff.gz
30 Files:
31 f73a69c170f772f3f6e75f2d11bbb792 9398 2vcard_0.5.orig.tar.gz
32 1e806d32233af87437258d86b1561f57 2036 2vcard_0.5-3.diff.gz
33 EOF
34
35 testequal "Reading package lists...
36 Building dependency tree...
37 The following NEW packages will be installed:
38 build-essential debhelper
39 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
40 Inst build-essential (1 stable [i386])
41 Inst debhelper (7 stable [i386])
42 Conf build-essential (1 stable [i386])
43 Conf debhelper (7 stable [i386])" aptget build-dep -s 2vcard_0.5-3.dsc
44
45 cat > 2vcard_0.5-3.dsc <<EOF
46 -----BEGIN PGP SIGNED MESSAGE-----
47 Hash: SHA1
48
49 Format: 1.0
50 Source: 2vcard
51 Binary: 2vcard
52 Architecture: all
53 Version: 0.5-3
54 Maintainer: Martin Albisetti <argentina@gmail.com>
55 Uploaders: Marcela Tiznado <mlt@debian.org>
56 Standards-Version: 3.8.0
57 Build-Depends: debhelper (>= 5.0.37)
58 Checksums-Sha1:
59 b7f1ce31ec856414a3f0f1090689f91aa7456d56 9398 2vcard_0.5.orig.tar.gz
60 5f9acd07ebda6ab00fa6b4fe3198c13e94090862 2036 2vcard_0.5-3.diff.gz
61 Checksums-Sha256:
62 efdc22859ac2f8f030d038dc4faa9020082ebae34212498c288968ffd45c9764 9398 2vcard_0.5.orig.tar.gz
63 82673ff3456af571094066c89bcea87b25c23c87cf1d0050b731e5222563626b 2036 2vcard_0.5-3.diff.gz
64 Files:
65 f73a69c170f772f3f6e75f2d11bbb792 9398 2vcard_0.5.orig.tar.gz
66 1e806d32233af87437258d86b1561f57 2036 2vcard_0.5-3.diff.gz
67
68 -----BEGIN PGP SIGNATURE-----
69 Version: GnuPG v1.4.9 (GNU/Linux)
70
71 iEYEARECAAYFAkijKhsACgkQsrBfRdYmq7aA2gCfaOW9riTYVQMx5ajKQVAcctlC
72 z2UAn1oXgTai6opwhVfkxrlmJ+iRxzuc
73 =4eRd
74 -----END PGP SIGNATURE-----
75 EOF
76
77 testequal "Reading package lists...
78 Building dependency tree...
79 The following NEW packages will be installed:
80 build-essential debhelper
81 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
82 Inst build-essential (1 stable [i386])
83 Inst debhelper (7 stable [i386])
84 Conf build-essential (1 stable [i386])
85 Conf debhelper (7 stable [i386])" aptget build-dep --simulate 2vcard_0.5-3.dsc