Changeset 14d9618 in flex_extract.git for Testing/Regression/FortranEtadot/run_ref.sh


Ignore:
Timestamp:
Jul 1, 2020, 2:40:48 PM (4 years ago)
Author:
pesei <petra.seibert [at ) univie.ac.at>
Branches:
master, ctbto, dev
Children:
e0005c9, 36dbabb
Parents:
d90a529
Message:

update the Fortran regression test and makefile_fast

File:
1 edited

Legend:

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

    rd2d6cf9 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
     
    5253      if [ "${exitonfail}" = true ]; then exit; fi
    5354    fi
    54     for outfile in 'fort.15' 'VERTICAL.EC'; do
     55    for outfile in 'fort.15' ; do
    5556      if [ -e $outfile ]; then
    5657        mv ${outfile} ../${outdir}
     
    6970  # compare debug and fast
    7071  # omega case also produces fort.25 - need to add this
    71   for outfile in 'fort.15' 'VERTICAL.EC'; do
     72  for outfile in 'fort.15' ; do
    7273    outdebug='Outputs/Output_ref_'${ref}'_debug/'$outfile
    7374    outfast='Outputs/Output_ref_'${ref}'_fast/'$outfile
    74     test=$(cmp  $outdebug $outfast)
    75     if $test; then
     75    test=$()
     76    if cmp -s $outdebug $outfast >/dev/null; then
    7677      echo $outfile '    equal for debug and fast' >> log.run_ref
    7778    else
     
    8990    user=$(echo $times | grep user | awk '{print $4}')
    9091    sys=$( echo $times | grep sys  | awk '{print $6}')
    91     echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> runtimes.csv
     92    echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ${csvfile}
    9293    tail -1 runtimes.csv >> log.run_ref
    9394  done
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG