Changeset 8441
- Timestamp:
- 07/16/10 14:38:07 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/Orange-Branch/test/automated/testscrpt.sh
r7924 r8441 12 12 export PVFS2_MOUNTPOINT=/pvfs2-nightly 13 13 export EXTRA_TESTS=${HOME}/src/benchmarks 14 #export EXTRA_TESTS=/tmp/src/benchmarks 15 export URL=http://devorange.clemson.edu/pvfs 16 export BENCHMARKS=benchmarks-20060512.tar.gz 14 17 15 18 # look for a 'nightly-test.cfg' in the same directory as this script 16 if [ -f $(cd `dirname $0`; pwd)/nightly-tests.cfg ] ; then17 . $(cd `dirname $0`; pwd)/nightly-tests.cfg19 if [ -f /tmp/$USER/nightly-tests.cfg ] ; then 20 . /tmp/$USER/nightly-tests.cfg 18 21 fi 19 22 … … 27 30 SYSINT_SCRIPTS=${PVFS2_DEST}/pvfs2-${CVS_TAG}/test/automated/sysint-tests.d 28 31 VFS_SCRIPTS=${PVFS2_DEST}/pvfs2-${CVS_TAG}/test/automated/vfs-tests.d 32 VFS_SCRIPT="dbench" 29 33 MPIIO_DRIVER=${PVFS2_DEST}/pvfs2-${CVS_TAG}/test/automated/testscrpt-mpi.sh 30 34 REPORT_LOG=${PVFS2_DEST}/alltests-${CVS_TAG}.log 35 BENCHMARKS=benchmarks-20060512.tar.gz 31 36 32 37 # for debugging and testing, you might need to set the above to your working … … 43 48 44 49 # we only have a few hosts that meet all the earlier stated prereqs 45 VFS_HOSTS=" gil lain stan"50 VFS_HOSTS="devorange2" 46 51 47 52 # … … 103 108 sudo dmesg -c >/dev/null 104 109 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}.log110 # 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 108 113 # 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 109 114 #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 110 116 sudo chmod 644 ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log 111 117 sudo mount -t pvfs2 tcp://`hostname -s`:3399/pvfs2-fs ${PVFS2_MOUNTPOINT} … … 140 146 if [ $? -ne 0 -a $do_vfs -eq 0 ] ; then 141 147 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" 143 151 } 144 152 … … 199 207 [ -d $f ] && continue 200 208 if [ -x $f ] ; then 201 echo -n "====== running $f ..."209 echo -n "====== `date` == running $f ..." 202 210 ./$f > ${PVFS2_DEST}/${f}-${CVS_TAG}.log 203 211 if [ $? -eq 0 ] ; then … … 213 221 } 214 222 223 #run only one script 224 run_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 } 215 237 ### 216 238 ### entry point for script … … 229 251 done 230 252 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 254 if [ $EXTRA_TESTS ] 255 then 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 289 fi 290 291 echo "pull_and_build_pvfs2" 233 292 pull_and_build_pvfs2 $CVS_TAG || buildfail 234 293 294 echo "setup_pvfs2" 235 295 teardown_pvfs2 && setup_pvfs2 236 296 237 297 if [ $? != 0 ] ; then 238 298 echo "setup failed" 239 setupfail299 setupfail 240 300 fi 241 301 242 302 if [ $do_vfs -eq 1 ] ; then 303 echo "setup_vfs" 243 304 teardown_vfs && setup_vfs 244 305 … … 264 325 exec 1> ${REPORT_LOG} 265 326 exec 2>&1 327 echo "running sysint scripts" 266 328 run_parts ${SYSINT_SCRIPTS} 267 329 268 330 if [ $do_vfs -eq 1 ] ; then 331 echo "running vfs scripts" 269 332 export VFS_SCRIPTS 270 333 run_parts ${VFS_SCRIPTS} 334 # run_one ${VFS_SCRIPTS} ${VFS_SCRIPT} 271 335 fi 272 336 … … 297 361 fi 298 362 299 [ $do_vfs -eq 1 ] && teardown_vfs300 teardown_pvfs2363 #[ $do_vfs -eq 1 ] && teardown_vfs 364 #teardown_pvfs2
