Source

aurum / test / gentests-setuptestrepos.zsh

Full commit
#!/bin/zsh
emulate -L zsh
tar xJf testrepo.tar.xz

tar xJf gittestrepo.tar.xz
tar xJf gitteststatusrepo.tar.xz

for test in annotate-buffers commit record stat statmaps vimdiff diff update \
            prevmessage vimdiff-usewin vimdiff-full cmdaus
do
    mkdir ${test}repo
    tar c -C testrepo . | (cd ${test}repo && tar x)
done
hg clone testrepo testrepo-cloned
for test in *.in ; do
    [[ $test == git.in ]] && continue
    test=$test:r
    [[ -d ${test}repo ]] && continue
    mkdir ${test}repo
    tar c -C testrepo-cloned . | (cd ${test}repo && tar x)
done