aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts/regression.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/scripts/regression.sh')
-rwxr-xr-xcontrib/scripts/regression.sh54
1 files changed, 54 insertions, 0 deletions
diff --git a/contrib/scripts/regression.sh b/contrib/scripts/regression.sh
new file mode 100755
index 000000000..1f799797a
--- /dev/null
+++ b/contrib/scripts/regression.sh
@@ -0,0 +1,54 @@
1#!/bin/sh
2cd
3cd gnunet
4svn up > /dev/null
5H=`hostname`
6echo "================START===================" >> regression.$H
7RUN=`date +%0y%0m%0d%0k%0M`
8uname -a >> regression.$H
9date >> regression.$H
10echo "Run $RUN" >> regression.$H
11svn up >> regression.$H
12export GNUNET_PREFIX=$HOME
13export PATH=$HOME/bin:$PATH
14./bootstrap >> regression.$H.$RUN 2>&1
15./configure --prefix=$HOME --with-extractor=$HOME --with-microhttpd=$HOME >> regression.$H.$RUN 2>&1
16if [ $? != 0 ]
17then
18 echo configure failed >> regression.$H
19 exit
20fi
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