blob: 4b72470aade6d44e00cf1d2724e7c5616a8fcd0d (
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
63
64
65
66
67
68
69
70
71
|
#!/bin/bash
set -e
. tests/lib
. $troot/lib-reprepro
t-setup-import examplegit
t-tstunt-parsechangelog
# rewrite some things, so we test the rewriting code
mkdir map
cd map
git init
cd ..
record-map () {
old=$(t-git-get-ref-exact "refs/original/$r")
new=$(t-git-get-ref-exact "$r")
if [ "$old" = "$new" ]; then return; fi
echo >>$tmp/map/map "$old $new"
}
filter () {
git filter-branch \
--msg-filter 'sed s/Sid/Spong/' \
--tag-name-filter cat \
^archive/test-dummy/2.0 \
"$@"
for r in "$@"; do
record-map "$r"
done
}
cd $p
filter \
refs/heads/master \
refs/remotes/dgit/dgit/sid \
cd ../git/$p.git
filter \
refs/dgit/sid
cd $tmp/map
git add map
git commit -m 'by test suite'
git push $tmp/git/$p.git master:refs/dgit-rewrite/map
cd ..
suitespecs=avon
t-reprepro-cfg ds- downstream
t-reprepro-setup ds-
t-reprepro-includedsc avon $tmp/mirror/pool/main/example_1.1.dsc ds-
t-reprepro-regen ds-
distro=''
t-git-config dgit-suite.avon.distro downstream
t-git-config dgit-distro.downstream.git-check false
t-dgit clone example avon example.avon
t-reprepro-includedsc avon $tmp/mirror/pool/main/example_2.1.dsc ds-
cd $p.avon
t-dgit fetch
#t-ok
|