diff options
-rwxr-xr-x | contrib/regression.sh | 62 |
1 files changed, 49 insertions, 13 deletions
diff --git a/contrib/regression.sh b/contrib/regression.sh index ca8316542..1f799797a 100755 --- a/contrib/regression.sh +++ b/contrib/regression.sh | |||
@@ -1,18 +1,54 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | cd | 2 | cd |
3 | cd gnunet | 3 | cd gnunet |
4 | svn up | 4 | svn up > /dev/null |
5 | echo "================START===================" >> regression.txt | 5 | H=`hostname` |
6 | uname -a >> regression.txt | 6 | echo "================START===================" >> regression.$H |
7 | date >> regression.txt | 7 | RUN=`date +%0y%0m%0d%0k%0M` |
8 | svn up >> regression.txt | 8 | uname -a >> regression.$H |
9 | date >> regression.$H | ||
10 | echo "Run $RUN" >> regression.$H | ||
11 | svn up >> regression.$H | ||
9 | export GNUNET_PREFIX=$HOME | 12 | export GNUNET_PREFIX=$HOME |
10 | export PATH=$HOME/bin:$PATH | 13 | export PATH=$HOME/bin:$PATH |
11 | ./bootstrap | 14 | ./bootstrap >> regression.$H.$RUN 2>&1 |
12 | ./configure --prefix=$HOME --with-extractor=$HOME --with-microhttpd=$HOME | 15 | ./configure --prefix=$HOME --with-extractor=$HOME --with-microhttpd=$HOME >> regression.$H.$RUN 2>&1 |
13 | make clean | 16 | if [ $? != 0 ] |
14 | make install | 17 | then |
15 | make check || echo Failed >> regression.txt | 18 | echo configure failed >> regression.$H |
16 | make check && echo Success >> regression.txt | 19 | exit |
17 | echo "================END====================" >> regression.txt | 20 | fi |
18 | svn commit -m reg regression.txt | 21 | KEEP=0 |
22 | make clean >> regression.$H.$RUN 2>&1 | ||
23 | make install >> regression.$H.$RUN 2>&1 | ||
24 | cd src | ||
25 | for n in `ls --hide "Makefile*"` | ||
26 | do | ||
27 | cd $n | ||
28 | if [ -f Makefile ] | ||
29 | then | ||
30 | make check >> ../regression.$H.$RUN.$n 2>&1 | ||
31 | if [ $? != 0 ] | ||
32 | then | ||
33 | echo Tests for $n failed >> ../regression.$H | ||
34 | echo "--------- Details for $n -----------" >> ../regression.$H | ||
35 | cat regression.$H.$RUN.$n >> ../regression.$H | ||
36 | echo "----- End of Details for $n --------" >> ../regression.$H | ||
37 | KEEP=1 | ||
38 | else | ||
39 | echo Tests for $n succeeded >> ../regression.$H | ||
40 | fi | ||
41 | fi | ||
42 | cd .. | ||
43 | done | ||
44 | echo "================END====================" >> regression.$H | ||
45 | |||
46 | if [ $KEEP == 0] | ||
47 | then | ||
48 | rm regression.$H.$RUN* | ||
49 | rm regression.$H | ||
50 | else | ||
51 | svn add regression.$H > /dev/null | ||
52 | svn commit -m "Regression in tests on $H" regression.$H | ||
53 | fi | ||
54 | |||