Changeset 8441

Show
Ignore:
Timestamp:
07/16/10 14:38:07 (3 years ago)
Author:
bligon
Message:

Modified to run in the devorange environment.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/Orange-Branch/test/automated/testscrpt.sh

    r7924 r8441  
    1212export PVFS2_MOUNTPOINT=/pvfs2-nightly 
    1313export EXTRA_TESTS=${HOME}/src/benchmarks 
     14#export EXTRA_TESTS=/tmp/src/benchmarks 
     15export URL=http://devorange.clemson.edu/pvfs 
     16export BENCHMARKS=benchmarks-20060512.tar.gz 
    1417 
    1518# look for a 'nightly-test.cfg' in the same directory as this script 
    16 if [ -f $(cd `dirname $0`; pwd)/nightly-tests.cfg ] ; then  
    17         . $(cd `dirname $0`; pwd)/nightly-tests.cfg 
     19if [ -f /tmp/$USER/nightly-tests.cfg ] ; then  
     20        . /tmp/$USER/nightly-tests.cfg 
    1821fi 
    1922 
     
    2730SYSINT_SCRIPTS=${PVFS2_DEST}/pvfs2-${CVS_TAG}/test/automated/sysint-tests.d 
    2831VFS_SCRIPTS=${PVFS2_DEST}/pvfs2-${CVS_TAG}/test/automated/vfs-tests.d 
     32VFS_SCRIPT="dbench" 
    2933MPIIO_DRIVER=${PVFS2_DEST}/pvfs2-${CVS_TAG}/test/automated/testscrpt-mpi.sh 
    3034REPORT_LOG=${PVFS2_DEST}/alltests-${CVS_TAG}.log 
     35BENCHMARKS=benchmarks-20060512.tar.gz 
    3136 
    3237# for debugging and testing, you might need to set the above to your working 
     
    4348 
    4449# we only have a few hosts that meet all the earlier stated prereqs 
    45 VFS_HOSTS="gil lain stan" 
     50VFS_HOSTS="devorange2" 
    4651 
    4752# 
     
    103108        sudo dmesg -c >/dev/null 
    104109        sudo /sbin/insmod ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/lib/modules/`uname -r`/kernel/fs/pvfs2/pvfs2.ko 
    105         sudo LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client \ 
    106                 -p ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client-core \ 
    107                 -L ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log 
     110#       sudo LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client \ 
     111#               -p ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client-core \ 
     112#               -L ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log 
    108113        # sudo screen -d -m cgdb -x ${PVFS2_DEST}/.gdbinit --args ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client-core -L ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log 
    109114        #sudo valgrind --log-file=${PVFS2_DEST}/pvfs2-client.vg ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client-core -L ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log & 
     115        sudo ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client  -p ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client-core -L ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log 
    110116        sudo chmod 644 ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log 
    111117        sudo mount -t pvfs2 tcp://`hostname -s`:3399/pvfs2-fs ${PVFS2_MOUNTPOINT} 
     
    140146        if [ $? -ne 0 -a $do_vfs -eq 0 ] ; then 
    141147                export PVFS2TAB_FILE=${PVFS2_DEST}/pvfs2tab 
    142         fi       
     148        fi 
     149        #turn on degging on each server 
     150        INSTALL-pvfs2-${CVS_TAG}/bin/pvfs2-set-debugmask -m ${PVFS2_MOUNTPOINT} "all"    
    143151} 
    144152 
     
    199207                [ -d $f ] && continue 
    200208                if [ -x $f ] ; then  
    201                         echo -n "====== running $f ..." 
     209                        echo -n "====== `date` == running $f ..." 
    202210                        ./$f > ${PVFS2_DEST}/${f}-${CVS_TAG}.log 
    203211                        if [ $? -eq 0 ] ; then  
     
    213221} 
    214222 
     223#run only one script 
     224run_one() { 
     225   cd $1 
     226   echo -n "===== `date` == running ${1}/${2} ..." 
     227   ${1}/${2} > ${PVFS2_DEST}/${2}-${CVS_TAG}.log 
     228   if [ $? -eq 0 ] ; then  
     229      nr_passed=$((nr_passed + 1)) 
     230      echo "OK" 
     231   else 
     232      nr_failed=$((nr_failed + 1)) 
     233      failure_logs="$failure_logs ${PVFS2_DEST}/${2}-${CVS_TAG}.log" 
     234      echo "FAILED" 
     235   fi 
     236} 
    215237### 
    216238### entry point for script 
     
    229251done 
    230252 
    231 failure_logs=""   # a space-delimited list of logs that failed 
    232 # compile and install 
     253# "install" benchmark software, if EXTRA_TESTS is not null 
     254if [ $EXTRA_TESTS ]  
     255then 
     256   echo "Installing benchmark software...." 
     257   my_cwd=`pwd` 
     258 
     259   #create directory, if not already there 
     260   mkdir -p $EXTRA_TESTS 
     261   if [ $? != 0 ] 
     262   then 
     263      echo "benchmarks: mkdir failed" 
     264      setupfail 
     265   fi 
     266 
     267   #remove existing tar file and/or subdirectories 
     268   cd $EXTRA_TESTS/.. 
     269   sudo /bin/rm -rf * 
     270 
     271   #get new tar file 
     272   wget ${URL}/${BENCHMARKS} 
     273   if [ $? != 0 ] 
     274   then 
     275      echo "benchmarks: wget failed" 
     276      setupfail 
     277   fi 
     278 
     279   #untar the file 
     280   tar -xzf ${BENCHMARKS} 
     281   if [ $? != 0 ] 
     282   then 
     283      echo "benchmarks: tar failed" 
     284      setupfail 
     285   fi 
     286 
     287   #go back to original working directory 
     288   cd $my_cwd 
     289fi 
     290 
     291echo "pull_and_build_pvfs2" 
    233292pull_and_build_pvfs2  $CVS_TAG || buildfail 
    234293 
     294echo "setup_pvfs2" 
    235295teardown_pvfs2 && setup_pvfs2  
    236296 
    237297if [ $? != 0 ] ; then 
    238298        echo "setup failed" 
    239         setupfail 
     299        setupfail 
    240300fi 
    241301 
    242302if [ $do_vfs -eq 1 ] ; then  
     303        echo "setup_vfs" 
    243304        teardown_vfs && setup_vfs 
    244305 
     
    264325exec 1> ${REPORT_LOG} 
    265326exec 2>&1 
     327echo "running sysint scripts" 
    266328run_parts ${SYSINT_SCRIPTS} 
    267329 
    268330if [ $do_vfs -eq 1 ] ; then 
     331        echo "running vfs scripts" 
    269332        export VFS_SCRIPTS 
    270333        run_parts ${VFS_SCRIPTS} 
     334#        run_one ${VFS_SCRIPTS} ${VFS_SCRIPT} 
    271335fi 
    272336 
     
    297361fi 
    298362 
    299 [ $do_vfs -eq 1 ] && teardown_vfs 
    300 teardown_pvfs2 
     363#[ $do_vfs -eq 1 ] && teardown_vfs 
     364#teardown_pvfs2