aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-06-10 15:06:09 +0000
committerChristian Grothoff <christian@grothoff.org>2009-06-10 15:06:09 +0000
commit9fcac1639c8cad5188b74bb0daed52f3952925ec (patch)
tree7ca494dc36285792ffc0453242a872a145215c36 /contrib
parente47974a478900632e2b3710bef93aae2a6e4b214 (diff)
downloadgnunet-9fcac1639c8cad5188b74bb0daed52f3952925ec.tar.gz
gnunet-9fcac1639c8cad5188b74bb0daed52f3952925ec.zip
script
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/regression.sh62
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
2cd 2cd
3cd gnunet 3cd gnunet
4svn up 4svn up > /dev/null
5echo "================START===================" >> regression.txt 5H=`hostname`
6uname -a >> regression.txt 6echo "================START===================" >> regression.$H
7date >> regression.txt 7RUN=`date +%0y%0m%0d%0k%0M`
8svn up >> regression.txt 8uname -a >> regression.$H
9date >> regression.$H
10echo "Run $RUN" >> regression.$H
11svn up >> regression.$H
9export GNUNET_PREFIX=$HOME 12export GNUNET_PREFIX=$HOME
10export PATH=$HOME/bin:$PATH 13export 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
13make clean 16if [ $? != 0 ]
14make install 17then
15make check || echo Failed >> regression.txt 18 echo configure failed >> regression.$H
16make check && echo Success >> regression.txt 19 exit
17echo "================END====================" >> regression.txt 20fi
18svn commit -m reg regression.txt 21KEEP=0
22make clean >> regression.$H.$RUN 2>&1
23make install >> regression.$H.$RUN 2>&1
24cd src
25for n in `ls --hide "Makefile*"`
26do
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 ..
43done
44echo "================END====================" >> regression.$H
45
46if [ $KEEP == 0]
47then
48 rm regression.$H.$RUN*
49 rm regression.$H
50else
51 svn add regression.$H > /dev/null
52 svn commit -m "Regression in tests on $H" regression.$H
53fi
54