X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=contrib%2Fregression.sh;h=1f799797aca58afa6aba8dc934469baf3de92c4c;hb=a7bb525278fcf8a29daa8f841e99515dba690d09;hp=c629f12d1e0eb1323db01b46e70e4883ee205176;hpb=6ba2f7ddb34b523c2be7de0fb4bcb7ffd210247c;p=oweals%2Fgnunet.git diff --git a/contrib/regression.sh b/contrib/regression.sh index c629f12d1..1f799797a 100755 --- a/contrib/regression.sh +++ b/contrib/regression.sh @@ -1,16 +1,54 @@ #!/bin/sh cd cd gnunet -echo "================START===================" >> regression.txt -uname -a >> regression.txt -svn up >> regression.txt +svn up > /dev/null +H=`hostname` +echo "================START===================" >> regression.$H +RUN=`date +%0y%0m%0d%0k%0M` +uname -a >> regression.$H +date >> regression.$H +echo "Run $RUN" >> regression.$H +svn up >> regression.$H export GNUNET_PREFIX=$HOME export PATH=$HOME/bin:$PATH -./bootstrap -./configure --prefix=$HOME --with-extractor=$HOME --with-microhttpd=$HOME -make clean -make install -make check || echo Failed >> regression.txt -make check && echo Success >> regression.txt -echo "================END====================" >> regression.txt -svn commit -m reg regression.txt +./bootstrap >> regression.$H.$RUN 2>&1 +./configure --prefix=$HOME --with-extractor=$HOME --with-microhttpd=$HOME >> regression.$H.$RUN 2>&1 +if [ $? != 0 ] +then + echo configure failed >> regression.$H + exit +fi +KEEP=0 +make clean >> regression.$H.$RUN 2>&1 +make install >> regression.$H.$RUN 2>&1 +cd src +for n in `ls --hide "Makefile*"` +do + cd $n + if [ -f Makefile ] + then + make check >> ../regression.$H.$RUN.$n 2>&1 + if [ $? != 0 ] + then + echo Tests for $n failed >> ../regression.$H + echo "--------- Details for $n -----------" >> ../regression.$H + cat regression.$H.$RUN.$n >> ../regression.$H + echo "----- End of Details for $n --------" >> ../regression.$H + KEEP=1 + else + echo Tests for $n succeeded >> ../regression.$H + fi + fi + cd .. +done +echo "================END====================" >> regression.$H + +if [ $KEEP == 0] +then + rm regression.$H.$RUN* + rm regression.$H +else + svn add regression.$H > /dev/null + svn commit -m "Regression in tests on $H" regression.$H +fi +