Changeset 14d9618 in flex_extract.git for Testing/Regression/FortranEtadot/run_ref.sh
- Timestamp:
- Jul 1, 2020, 2:40:48 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- e0005c9, 36dbabb
- Parents:
- d90a529
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Testing/Regression/FortranEtadot/run_ref.sh
rd2d6cf9 r14d9618 14 14 exefast=calc_etadot_fast.out 15 15 hash=$(git log --abbrev-commit --pretty=oneline -n 1 --pretty=format:'%h') 16 csvfile='runtimes_'${HOST}'.csv' 16 17 exitonfail=true 17 18 rm -f log.run_ref failed … … 52 53 if [ "${exitonfail}" = true ]; then exit; fi 53 54 fi 54 for outfile in 'fort.15' 'VERTICAL.EC'; do55 for outfile in 'fort.15' ; do 55 56 if [ -e $outfile ]; then 56 57 mv ${outfile} ../${outdir} … … 69 70 # compare debug and fast 70 71 # omega case also produces fort.25 - need to add this 71 for outfile in 'fort.15' 'VERTICAL.EC'; do72 for outfile in 'fort.15' ; do 72 73 outdebug='Outputs/Output_ref_'${ref}'_debug/'$outfile 73 74 outfast='Outputs/Output_ref_'${ref}'_fast/'$outfile 74 test=$( cmp $outdebug $outfast)75 if $test; then75 test=$() 76 if cmp -s $outdebug $outfast >/dev/null; then 76 77 echo $outfile ' equal for debug and fast' >> log.run_ref 77 78 else … … 89 90 user=$(echo $times | grep user | awk '{print $4}') 90 91 sys=$( echo $times | grep sys | awk '{print $6}') 91 echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> runtimes.csv92 echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ${csvfile} 92 93 tail -1 runtimes.csv >> log.run_ref 93 94 done
Note: See TracChangeset
for help on using the changeset viewer.