#!/bin/sh

echo "start cgit test (pid=$$, fork=$1, count=$2)"

for ((a=0; $a<$1; a=$a+1))
do
  ./cgit.sh 0 $(($2*2)) &
done


for ((a=0; $a<$2; a=$a+1))
do
  curl -s -S http://box1/git/cgit/log/?h=master > /dev/null
  curl -s -S http://box1/git/git/log/?h=master > /dev/null
  curl -s -S http://box1/git/linux-2.6.19/log/?h=master > /dev/null
done

echo "test done (pid=$$)"
