Ignore:
File:
1 edited

Legend:

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

    r6bc4b42 r14d9618  
    1414exefast=calc_etadot_fast.out
    1515hash=$(git log --abbrev-commit --pretty=oneline -n 1  --pretty=format:'%h')
     16csvfile='runtimes_'${HOST}'.csv'
    1617exitonfail=true
    1718rm -f log.run_ref failed
     
    1920# loop over all reference runs
    2021rm -f log.run_ref
     22rm -f Work/*
    2123
    2224if [ "$1" = omithigh ]; then # for fast testing, not for production
     
    5153      if [ "${exitonfail}" = true ]; then exit; fi
    5254    fi
    53     for outfile in 'fort.15' 'VERTICAL.EC'; do
     55    for outfile in 'fort.15' ; do
    5456      if [ -e $outfile ]; then
    5557        mv ${outfile} ../${outdir}
     
    6870  # compare debug and fast
    6971  # omega case also produces fort.25 - need to add this
    70   for outfile in 'fort.15' 'VERTICAL.EC'; do
     72  for outfile in 'fort.15' ; do
    7173    outdebug='Outputs/Output_ref_'${ref}'_debug/'$outfile
    7274    outfast='Outputs/Output_ref_'${ref}'_fast/'$outfile
    73     test=$(cmp  $outdebug $outfast)
    74     if $test; then
     75    test=$()
     76    if cmp -s $outdebug $outfast >/dev/null; then
    7577      echo $outfile '    equal for debug and fast' >> log.run_ref
    7678    else
     
    8890    user=$(echo $times | grep user | awk '{print $4}')
    8991    sys=$( echo $times | grep sys  | awk '{print $6}')
    90     echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> runtimes.csv
     92    echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ${csvfile}
    9193    tail -1 runtimes.csv >> log.run_ref
    9294  done
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG