7 : ---- "setup up the mirror hook in a basic way" ----
9 reposmirror=$tmp/git-mirror
10 queuedir=$tmp/git/_mirror-queue
13 mhook=$drs_dispatch/mirror-hook
14 ln -sf ${DGIT_INFRA_PFX}dgit-mirror-rsync $mhook
16 "$mhook" "$drs_dispatch" "$@"
19 >$drs_dispatch/mirror-settings
20 mset () { echo >>$drs_dispatch/mirror-settings "$1"; }
22 mset remoterepos="$reposmirror"
26 t-reporefs mirror $pmirror
27 diff $tmp/show-refs.{master,mirror}
29 t-files-notexist $queuedir/$p.{n,a,lock,err}
32 check-not-mirrored () {
33 # uses previous t-reporefs-master
34 t-reporefs mirror $pmirror
35 diff $tmp/show-refs.{master,mirror}
38 : ---- "basic test" ----
40 t-tstunt-parsechangelog
41 t-prep-newpackage example 1.0
43 pmirror=$reposmirror/$p.git
54 : ---- "stunt ssh test" ----
56 sentinel=$tmp/stunt-ssh-sentinel
58 cat <<END >$tmp/stunt-ssh
68 chmod +x $tmp/stunt-ssh
70 mset rsyncssh=$tmp/stunt-ssh
71 mset remoterepos=HOST:$reposmirror
73 t-commit "stunt ssh test"
76 # ^ mirror should fail due to lack of stunt-ssh-sentinel
86 : ----- "stall timeout test" -----
88 rm -f $sentinel ${sentinel}2
89 mkfifo $sentinel ${sentinel}2
93 t-commit "stall timeout test"