Changeset 8439
- Timestamp:
- 07/16/10 11:28:55 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/Orange-Branch/test/automated/vfs-tests.d/dbench
r8428 r8439 1 1 #!/bin/sh 2 cd ${EXTRA_TESTS}/dbench-3.03 2 3 #this script assumes that the benchmark tar file is already copied into $EXTRA_TESTS 4 if [ ! $BENCHMARK ] 5 then 6 #this is the existing name of the tar file 7 BENCHMARK=benchmarks-20060512.tar.gz 8 fi 9 10 #make directory, if it doesn't exist 11 mkdir -p ${EXTRA_TESTS}/dbench-3.03 12 13 #capture current working directory 14 cwd=`pwd` 15 16 #goto benchmark directory and cleanup 17 cd ${EXTRA_TESTS} 18 sudo /bin/rm -rf dbench-3.03 19 20 #go back 21 cd .. 22 23 #untar the dbench directory 24 tar -xzf ${BENCHMARK} benchmarks/dbench-3.03/* 25 26 #goto the dbench directory 27 cd benchmarks/dbench-3.03 28 29 #configure the dbench software 3 30 ./configure -q 31 32 #apply patches 4 33 patch -p3 < ${PVFS2_DEST}/pvfs2-${CVS_TAG}/test/automated/vfs-tests.d/dbench.patch 5 34 if [ "${?}" != 0 ] 6 35 then 7 36 echo "Error: failed to apply patches to DBENCH." 37 cd $cwd 8 38 exit 1; 9 39 fi 40 41 #compile the system 10 42 make 2>&1 43 44 #setup dbench test and execute. 11 45 cp client.txt ${PVFS2_MOUNTPOINT} 46 if [ $? != 0 ] 47 then 48 echo "failed to copy client.txt to ${PVFS2_MOUNTPOINT}" 49 cd $cwd 50 exit 1 51 fi 12 52 cd ${PVFS2_MOUNTPOINT} && ${EXTRA_TESTS}/dbench-3.03/dbench -c client.txt 10 -t 300 2>&1 53 if [ $? != 0 ] 54 then 55 echo "dbench failed" 56 cd $cwd 57 exit 1 58 fi 59 60 cd $cwd
