File: test-runner.sh

package info (click to toggle)
evolution-data-server 3.4.4-3%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 47,788 kB
  • sloc: ansic: 248,622; sh: 12,008; makefile: 2,874; xml: 428; perl: 204; python: 30
file content (28 lines) | stat: -rwxr-xr-x 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh
# Usage : Argument 1 specifies the no. of libecal client instances would be
# executed 

if [ -z $XDG_DATA_HOME ]
then
	XDG_DATA_HOME=$HOME/.local
fi

i=0
if [ ! -d tmp ] 
then
	mkdir tmp
fi
while [ $i -ne $1 ] 
do
i=$(($i+1))
if [ ! -d $XDG_DATA_HOME/calendar/local/OnThisComputer/TestCal$i ] 
then
	mkdir $XDG_DATA_HOME/calendar/local/OnThisComputer/TestCal$i
fi
cp -f testdata.ics $XDG_DATA_HOME/calendar/local/OnThisComputer/TestCal$i/calendar.ics
./test-ecal $XDG_DATA_HOME/calendar/local/OnThisComputer/TestCal $i | tee -i "tmp/$i.out" & 
#./test-ecal $XDG_DATA_HOME/calendar/local/OnThisComputer/TestCal $i > "tmp/$i.out" & 
done
dateTest=`date`
echo "End of testing at: $dateTest"
exit 0