Diffstat (limited to 'tests/setup.sh')
| -rwxr-xr-x | tests/setup.sh | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/tests/setup.sh b/tests/setup.sh index b2f1169..30f90d5 100755 --- a/tests/setup.sh +++ b/tests/setup.sh @@ -20,10 +20,10 @@ mkrepo() { name=$1 count=$2 dir=$PWD - test -d "$name" && return + test -d $name && return printf "Creating testrepo %s\n" $name - mkdir -p "$name" - cd "$name" + mkdir -p $name + cd $name git init n=1 while test $n -le $count @@ -50,7 +50,6 @@ setup_repos() mkrepo trash/repos/foo 5 >/dev/null mkrepo trash/repos/bar 50 >/dev/null mkrepo trash/repos/foo+bar 10 testplus >/dev/null - mkrepo "trash/repos/with space" 2 >/dev/null cat >trash/cgitrc <<EOF virtual-root=/ cache-root=$PWD/trash/cache @@ -76,10 +75,6 @@ repo.desc=the bar repo repo.url=foo+bar repo.path=$PWD/trash/repos/foo+bar/.git repo.desc=the foo+bar repo - -repo.url=with space -repo.path=$PWD/trash/repos/with space/.git -repo.desc=spaced repo EOF } @@ -106,12 +101,6 @@ tests_done() run_test() { - bug=0 - if test "$1" = "BUG" - then - bug=1 - shift - fi desc=$1 script=$2 test_count=$(expr $test_count + 1) @@ -120,15 +109,9 @@ run_test() eval "$2" >>test-output.log 2>>test-output.log res=$? printf "test %d: exitcode=%d\n" $test_count $res >>test-output.log - if test $res = 0 -a $bug = 0 + if test $res = 0 then printf " %2d) %-60s [ok]\n" $test_count "$desc" - elif test $res = 0 -a $bug = 1 - then - printf " %2d) %-60s [BUG FIXED]\n" $test_count "$desc" - elif test $bug = 1 - then - printf " %2d) %-60s [KNOWN BUG]\n" $test_count "$desc" else test_failed=$(expr $test_failed + 1) printf " %2d) %-60s [failed]\n" $test_count "$desc" |