File: test-same-version-but-different

package info (click to toggle)
apt 3.1.12
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 22,736 kB
  • sloc: cpp: 71,048; sh: 31,750; xml: 5,553; perl: 217; python: 197; ansic: 191; makefile: 41
file content (119 lines) | stat: -rwxr-xr-x 4,104 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture 'amd64'

insertpackage 'unstable' 'all-same' 'all' '1'
insertpackage 'testing' 'all-same' 'all' '1'

insertpackage 'unstable' 'diff-depends' 'all' '1' 'Depends: all-same (= 1)'
insertpackage 'testing' 'diff-depends' 'all' '1' 'Depends: all-same (= 2)'

insertpackage 'unstable' 'diff-arch' 'all' '1'
insertpackage 'testing' 'diff-arch' 'amd64' '1'

insertpackage 'unstable' 'diff-ma-1' 'all' '1' 'Multi-Arch: foreign'
insertpackage 'testing' 'diff-ma-1' 'all' '1'

insertpackage 'unstable' 'diff-ma-2' 'all' '1' 'Multi-Arch: foreign'
insertpackage 'testing' 'diff-ma-2' 'all' '1' 'Multi-Arch: no'

insertpackage 'unstable' 'diff-ma-3' 'amd64' '1' 'Multi-Arch: foreign'
insertpackage 'testing' 'diff-ma-3' 'amd64' '1' 'Multi-Arch: same'

insertpackage 'unstable' 'diff-size' 'all' '1' 'Size: 21'
insertpackage 'testing' 'diff-size' 'all' '1' 'Size: 42'

insertpackage 'unstable' 'diff-instsize' 'all' '1' 'Installed-Size: 21'
insertpackage 'testing' 'diff-instsize' 'all' '1' 'Installed-Size: 42'

insertpackage 'unstable' 'diff-sha256' 'all' '1' 'SHA256: 0000000000000000000000000000000000000000000000000000000000000000'
insertpackage 'testing' 'diff-sha256' 'all' '1' 'SHA256: 0000000000000000000000000000000000000000000000000000000000000001'

setupaptarchive

APTARCHIVE="$(readlink -f ./aptarchive)"
testsuccessequal "all-same:
  Installed: (none)
  Candidate: 1
  Version table:
     1 500
        500 file:${APTARCHIVE} testing/main all Packages
        500 file:${APTARCHIVE} unstable/main all Packages" apt policy all-same
testsuccessequal "diff-depends:
  Installed: (none)
  Candidate: 1
  Version table:
     1 500
        500 file:${APTARCHIVE} testing/main all Packages
     1 500
        500 file:${APTARCHIVE} unstable/main all Packages" apt policy diff-depends
testsuccessequal "diff-arch:
  Installed: (none)
  Candidate: 1
  Version table:
     1 500
        500 file:${APTARCHIVE} testing/main amd64 Packages
     1 500
        500 file:${APTARCHIVE} unstable/main all Packages" apt policy diff-arch
testsuccessequal "diff-ma-1:
  Installed: (none)
  Candidate: 1
  Version table:
     1 500
        500 file:${APTARCHIVE} testing/main all Packages
     1 500
        500 file:${APTARCHIVE} unstable/main all Packages" apt policy diff-ma-1
testsuccessequal "diff-ma-2:
  Installed: (none)
  Candidate: 1
  Version table:
     1 500
        500 file:${APTARCHIVE} testing/main all Packages
     1 500
        500 file:${APTARCHIVE} unstable/main all Packages" apt policy diff-ma-2
testsuccessequal "diff-ma-3:
  Installed: (none)
  Candidate: 1
  Version table:
     1 500
        500 file:${APTARCHIVE} testing/main amd64 Packages
     1 500
        500 file:${APTARCHIVE} unstable/main amd64 Packages" apt policy diff-ma-3
testsuccessequal "diff-size:
  Installed: (none)
  Candidate: 1
  Version table:
     1 500
        500 file:${APTARCHIVE} testing/main all Packages
     1 500
        500 file:${APTARCHIVE} unstable/main all Packages" apt policy diff-size
testsuccessequal "diff-instsize:
  Installed: (none)
  Candidate: 1
  Version table:
     1 500
        500 file:${APTARCHIVE} testing/main all Packages
     1 500
        500 file:${APTARCHIVE} unstable/main all Packages" apt policy diff-instsize
testsuccessequal "diff-sha256:
  Installed: (none)
  Candidate: 1
  Version table:
     1 500
        500 file:${APTARCHIVE} testing/main all Packages
     1 500
        500 file:${APTARCHIVE} unstable/main all Packages" apt policy diff-sha256
testsuccessequal "diff-sha256:
  Installed: (none)
  Candidate: 1
  Version table:
     1 500
        500 file:${APTARCHIVE} testing/main all Packages
        500 ${APTARCHIVE}/dists/unstable/main/binary-all/Packages
        500 ${APTARCHIVE}/dists/testing/main/binary-all/Packages
     1 500
        500 file:${APTARCHIVE} unstable/main all Packages" apt policy diff-sha256 --with-source ${APTARCHIVE}/dists/unstable/main/binary-all/Packages --with-source ${APTARCHIVE}/dists/testing/main/binary-all/Packages