regression.sh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/sh
  2. cd
  3. cd gnunet
  4. svn up > /dev/null
  5. H=`hostname`
  6. echo "================START===================" >> regression.$H
  7. RUN=`date +%0y%0m%0d%0k%0M`
  8. uname -a >> regression.$H
  9. date >> regression.$H
  10. echo "Run $RUN" >> regression.$H
  11. svn up >> regression.$H
  12. export GNUNET_PREFIX=$HOME
  13. export 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
  16. if [ $? != 0 ]
  17. then
  18. echo configure failed >> regression.$H
  19. exit
  20. fi
  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. if [ $KEEP == 0]
  46. then
  47. rm regression.$H.$RUN*
  48. rm regression.$H
  49. else
  50. svn add regression.$H > /dev/null
  51. svn commit -m "Regression in tests on $H" regression.$H
  52. fi