blob: 4d5f183dac1dd8f219c5a2ad8ade423a12e69a68 (
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
|
#!/bin/bash
set -e
. tests/lib
t-tstunt-parsechangelog
p=example
mkdir example
cd example
git init
r=1
v0=1.0-$r
t-dgit import-dsc $troot/pkg-srcs/${p}_${v0}.dsc +import
git reset --hard import
cat >debian/source/include-binaries <<END
# comment
enoent/file
bins/file
debian/binfile
END
git add debian/source/include-binaries
git commit -m 'specify include binaries'
t-prep () {
local m=$1
git checkout -B work master
t-git-next-date
r=$(( $r + 1 ))
v=1.0-$r
t-dch-commit -v$v -m "$1"
}
t-make-some-bin () {
local file="$1"
perl -e '
use autodie;
print pack "H*", "d41d8cd98f00b204e9800998ecf8427e";
print "\n'"$file $r"'\n";
' >"$file"
}
t-roundtrips () {
t-dgit --quilt=nofix --since-version=$v0 build-source
t-dgit import-dsc ../${p}_${v}.dsc +reimport
git diff --exit-code work reimport --
}
t-prep 'straightforward'
mkdir bins
t-make-some-bin bins/file
git add bins/file
git commit -m 'add bin'
t-roundtrips
t-ok
|