aboutsummaryrefslogtreecommitdiffstats
path: root/tests/setup.sh
diff options
context:
space:
mode:
authorLars Hjemli2008-11-06 19:18:27 +0100
committerLars Hjemli2008-11-06 19:18:27 +0100
commitb8a7eb12d459c48943e31762b24b169af8c427a1 (patch)
treebb5bfcf6e5f71a478e7586bd1d128aa94bfd7dbe /tests/setup.sh
parent140012d7a8e51df5a9f9c556696778b86ade4fc9 (diff)
parente4d2f2b042100182ff5b214fd6848b71d70fad7d (diff)
downloadcgit-b8a7eb12d459c48943e31762b24b169af8c427a1.tar.gz
cgit-b8a7eb12d459c48943e31762b24b169af8c427a1.tar.bz2
cgit-b8a7eb12d459c48943e31762b24b169af8c427a1.zip
Merge branch 'stable'
Diffstat (limited to 'tests/setup.sh')
-rwxr-xr-xtests/setup.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index 1457dd5..95acb54 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -25,11 +25,13 @@ mkrepo() {
25 mkdir -p $name 25 mkdir -p $name
26 cd $name 26 cd $name
27 git init 27 git init
28 for ((n=1; n<=count; n++)) 28 n=1
29 while test $n -le $count
29 do 30 do
30 echo $n >file-$n 31 echo $n >file-$n
31 git add file-$n 32 git add file-$n
32 git commit -m "commit $n" 33 git commit -m "commit $n"
34 n=$(expr $n + 1)
33 done 35 done
34 if test "$3" = "testplus" 36 if test "$3" = "testplus"
35 then 37 then
@@ -101,7 +103,7 @@ run_test()
101{ 103{
102 desc=$1 104 desc=$1
103 script=$2 105 script=$2
104 ((test_count++)) 106 test_count=$(expr $test_count + 1)
105 printf "\ntest %d: name='%s'\n" $test_count "$desc" >>test-output.log 107 printf "\ntest %d: name='%s'\n" $test_count "$desc" >>test-output.log
106 printf "test %d: eval='%s'\n" $test_count "$2" >>test-output.log 108 printf "test %d: eval='%s'\n" $test_count "$2" >>test-output.log
107 eval "$2" >>test-output.log 2>>test-output.log 109 eval "$2" >>test-output.log 2>>test-output.log