Changes in test_all.sh [04e61a:490038]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test_all.sh
r04e61a r490038 1 1 #!/bin/bash 2 2 3 optimizations=("-O0"\ 3 optimizations=("-g3"\ 4 "-O0"\ 4 5 "-O1"\ 5 6 "-O2"\ … … 49 50 } 50 51 52 function logdate() 53 { 54 echo -e "Launched on `date`.\n\n" >> $logfile 2>&1; 55 } 56 57 51 58 while getopts âho:f:j:scO:t:p:â OPTION 52 59 do … … 105 112 function configure(){ 106 113 echo "Configuring"; 107 CXXFLAGS="$2" $1/configure --prefix=$PWD>> $logfile 2>&1;114 $1/configure $3 --prefix=$PWD CXXFLAGS="-Wall $2" >> $logfile 2>&1; 108 115 } 109 116 … … 111 118 echo "Making"; 112 119 if [ $noprocs -gt 1 ]; then 113 make -j$noprocs all install>>$logfile 2>&1;114 else 115 make all install>>$logfile 2>&1;120 make -j$noprocs all >>$logfile 2>&1; 121 else 122 make all >>$logfile 2>&1; 116 123 fi 117 124 } … … 134 141 then 135 142 echo -n " $test: " >> $outfile; 136 valgrind -v -- error-exitcode=255 $test >> $logfile 2>&1;143 valgrind -v --leak-check=full --leak-resolution=high --show-reachable=yes --error-exitcode=255 $test >> $logfile 2>&1; 137 144 if [ $? ] 138 145 then … … 149 156 function test(){ 150 157 151 echo "Testing with \"$2 \"";158 echo "Testing with \"$2 $3\""; 152 159 echo "" >> $logfile; 153 160 echo "" >> $logfile; 154 161 echo "" >> $logfile; 155 echo "Testing with \"$2\"" >> $logfile; 156 157 echo -n " Configuring: " >> $outfile; 158 if configure "$1" "$2" 162 echo "Testing with \"$2 $3\"" >> $logfile; 163 164 if [ x"$2" == x"-g3" ] 165 then 166 valgrind="--with-valgrind" 167 else 168 valgrind="--without-valgrind" 169 fi 170 echo -n " Configuring $valgrind: " >> $outfile; 171 if configure "$1" "$2 $3" "$valgrind" 159 172 then 160 173 echo "OK" >> $outfile; … … 201 214 202 215 function run(){ 203 echo "Testing with \"$1 \":" >> $outfile;216 echo "Testing with \"$1 $2\":" >> $outfile; 204 217 testdir=`mktemp -d --tmpdir=$tmpdir $tmppattern.XXXXXXXXXX`; 205 218 basedir=$PWD; 206 219 cd $testdir; 207 test "$basedir" "$1" ;220 test "$basedir" "$1" "$2"; 208 221 cd $basedir; 209 222 rm -rf $testdir; … … 220 233 for option in "${options[@]}" 221 234 do 222 run "$optimization 235 run "$optimization" "$option"; 223 236 done 224 237 done
Note:
See TracChangeset
for help on using the changeset viewer.