Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Testing/Regression/FortranEtadot/run_regrtest.sh

    rdfa7dbd r14d9618  
    1717exefast=calc_etadot_fast.out
    1818hash=$(git log --abbrev-commit --pretty=oneline -n 1  --pretty=format:'%h')
     19csvfile='runtimes_'${HOST}'.csv'
    1920exitonfail=true
    2021numtest=0
     
    3233for ref in $inputs; do
    3334
    34   echo 'Working on test case =' $ref
     35  echo 'Working on test case =' $ref | tee -a ../log.run_regr
    3536
    3637  # loop over debug and fast runs
     
    6263        # omega case also produces fort.25 - need to add this
    6364        outref='../Outputs/Output_ref_'${ref}'_'${exe}'/'$outfile
    64         test=$(cmp  $outfile $outref)
    65         if $test; then
     65        if cmp -s $outfile $outref >/dev/null; then
    6666          echo '    '$outfile '    test passed' | tee -a ../log.run_regr
    6767        else
     
    8585    user=$(echo $times | grep user | awk '{print $4}')
    8686    sys=$( echo $times | grep sys  | awk '{print $6}')
    87     echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ../runtimes.csv
    88     tail -1 ../runtimes.csv >> log.run_regr
     87    echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ../${csvfile}
     88    tail -1 ../${csvfile} >> log.run_regr
    8989
    9090    cd ..
    91     rm Work/* # this is for being more safe
     91    rm -f Work/* # this is for being more safe
    9292
    9393  done # end of exe loop
     
    100100  | tee -a ../log.run_regr
    101101echo ' More information may be found in log.run_regr'
    102 echo ' Runtimes were added to runtimes.csv under '$hash | tee -a ../log.run_regr
     102echo ' Runtimes were added to '${csvfile}' under '$hash | tee -a ../log.run_regr
    103103
    104104# the following code is executed only if exitonfail is not set to 'true'.
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG