summaryrefslogtreecommitdiffstats
path: root/test/do_alltests
blob: 90ef6ae9e1023aaac9f542e217b989f7703933f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

LANGUAGE=C
LANG=C
export LANGUAGE
export LANG

for t in *.tar.bz2; do
    rm -rf tmp
    mkdir tmp
    cd tmp
    tar xvfj ../$t
    dir=$(dirname $(find . -name dotest))
    cd $dir
    ./dotest || exit 1
    perl -pi -e 's/.*urpmi called with.*//' urpmi_env.log urpmi_env_correct.log
    diff urpmi_env.log urpmi_env_correct.log || exit 2
    cd -
    cd ..
done

rm -rf tmp