4 git='/home/felipec/dev/git'
6 if [ $ext == 'hg' ]; then
7 versions=(1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6)
8 tests=test-{hg,hg-bidi,hg-hg-git}.t
9 ext_dir='/home/felipec/tmp/hg'
11 versions=(bzr-2.6b1 bzr-2.5.0 bzr-2.4.0 bzr-2.3.0 bzr-2.2.0 bzr-2.1.4 bzr-2.0.6)
13 ext_dir='/home/felipec/tmp/bzr'
22 for version in "${versions[@]}"
24 dir=/tmp/$ext/$version &&
25 test -d $dir && continue
27 echo "preparing $version checkout" &&
29 git clone -n -q --shared $ext_dir $dir &&
31 git checkout -q $version &&
33 printf 'version = "%s"\n' $version > mercurial/__version__.py &&
34 # make local >& /dev/null
35 python setup.py build_py -c -d . build_ext -i build_scripts >& /dev/null
40 local ok=1 version dir tmpdir
44 for version in "${versions[@]}"
47 use_lib /tmp/$ext/$version &&
48 dir=$PWD/contrib/remote-helpers &&
49 tmpdir=$(mktemp -d) &&
50 export TEST_OUTPUT_DIRECTORY=$tmpdir &&
51 export TEST_DIRECTORY=$PWD/t &&
52 export PATH=$PWD:$PATH &&
54 eval prove -v $dir/$tests > $dir/output || ok=0
56 let ok && echo "$version: ok" || echo "$version: not ok"
57 let ok || { cat $dir/output && touch /tmp/error ; }
61 test -f /tmp/error && return 1 || return 0
65 git rev-list --reverse $1 | while read commit
67 git checkout -q $commit &&
68 git log -1 --oneline &&
69 check_commit || return 1
76 make -C contrib/remote-helpers links &&
83 old=$(sed -e 's/^ref: refs.heads.//' .git/HEAD) &&
84 check_revlist $1 && ret=0