[Pbuilder-maint] pbuilder CVS update: pbuilder/testsuite run-regression.sh run-regression.log

pbuilder CVS Commit pbuilder-maint at lists.alioth.debian.org
Mon Dec 12 00:32:40 UTC 2005


  User: dancer  
  Date: 05/12/12 00:32:40

  Added:       testsuite run-regression.sh run-regression.log
  Log:
  add a regression testsuite.
  Document that ccache requires cache directory to be writable by the user within chroot.
  re #342665
  
  Revision  Changes    Path
  1.1                  pbuilder/testsuite/run-regression.sh
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pbuilder/pbuilder/testsuite/run-regression.sh?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pbuilder/pbuilder/testsuite/run-regression.sh?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: run-regression.sh
  ===================================================================
  #!/bin/bash
  
  log_success () {
      CODE=$?
      if [ $CODE = 0 ]; then
  	echo "[OK]   $1" >> ${RESULTFILE}
      else
  	echo "[FAIL] $1" >> ${RESULTFILE}
      fi
  }
  
  RESULTFILE="run-regression.log"
  : > ${RESULTFILE}
  RESULTFILE=$(readlink -f ${RESULTFILE})
  
  # prepare files.
  (
      mkdir regression/work && \
      cd regression/work && \
      apt-get source dsh
  )
  
  (
      cd regression && \
  	for A in *.sh; do 
  	    OUTPUT_LOGNAME=log/$A.log bash $A 
  	    log_success $A
      done
  )
  
  rm -r regression/work/
  
  
  
  1.1                  pbuilder/testsuite/run-regression.log
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pbuilder/pbuilder/testsuite/run-regression.log?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pbuilder/pbuilder/testsuite/run-regression.log?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: run-regression.log
  ===================================================================
  [OK]   342665-pbuilder-ccache.sh
  
  
  



More information about the Pbuilder-maint mailing list