home *** CD-ROM | disk | FTP | other *** search
/ ftp.parl.clemson.edu / 2015-02-07.ftp.parl.clemson.edu.tar / ftp.parl.clemson.edu / pub / pvfs2 / orangefs-2.8.3-20110323.tar.gz / orangefs-2.8.3-20110323.tar / orangefs / test / run-nightly-setup < prev   
Text File  |  2010-08-02  |  683b  |  34 lines

  1. #!/bin/sh
  2.  
  3. if [ $# -lt 1 ]; then
  4.    echo "Usage: $0 <tagnames>"
  5.    echo "        e.g. $0 HEAD Orange-Branch"
  6.    exit 0
  7. fi
  8. CVSTAGS=$*
  9.  
  10. export PATH_SUFFIX=$(cd `dirname $0`;pwd)
  11.  
  12. echo "Running nightly tests for ${CVSTAGS}"
  13.  
  14. cvsroot=:pserver:anonymous@cvs.parl.clemson.edu:/anoncvs
  15. run_nightly_scripts="pvfs2/test/run-nightly pvfs2/maint/build pvfs2/test/automated"
  16.  
  17. #remove existing files
  18. cd $PATH_SUFFIX
  19. sudo /bin/rm -rf ~+/pvfs2
  20.  
  21. #checkout needed directories and files to run the nightly process
  22. cvs -Q -d $cvsroot co -rOrange-Branch $run_nightly_scripts
  23. if [ $? != 0 ]
  24. then
  25.    echo "Failed to retrieve scripts from CVS"
  26.    exit 1
  27. fi
  28.  
  29.  
  30. cd ~+/pvfs2/test
  31. ./run-nightly $CVSTAGS
  32.  
  33. exit 
  34.