Changeset 652286a in flex_extract.git for Testing/Regression/FortranEtadot/run_ref.sh
- Timestamp:
- Jul 7, 2020, 4:08:49 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- e0005c9
- Parents:
- 98f09d2 (diff), 14d9618 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Testing/Regression/FortranEtadot/run_ref.sh
r6bc4b42 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 … … 19 20 # loop over all reference runs 20 21 rm -f log.run_ref 22 rm -f Work/* 21 23 22 24 if [ "$1" = omithigh ]; then # for fast testing, not for production … … 51 53 if [ "${exitonfail}" = true ]; then exit; fi 52 54 fi 53 for outfile in 'fort.15' 'VERTICAL.EC'; do55 for outfile in 'fort.15' ; do 54 56 if [ -e $outfile ]; then 55 57 mv ${outfile} ../${outdir} … … 68 70 # compare debug and fast 69 71 # omega case also produces fort.25 - need to add this 70 for outfile in 'fort.15' 'VERTICAL.EC'; do72 for outfile in 'fort.15' ; do 71 73 outdebug='Outputs/Output_ref_'${ref}'_debug/'$outfile 72 74 outfast='Outputs/Output_ref_'${ref}'_fast/'$outfile 73 test=$( cmp $outdebug $outfast)74 if $test; then75 test=$() 76 if cmp -s $outdebug $outfast >/dev/null; then 75 77 echo $outfile ' equal for debug and fast' >> log.run_ref 76 78 else … … 88 90 user=$(echo $times | grep user | awk '{print $4}') 89 91 sys=$( echo $times | grep sys | awk '{print $6}') 90 echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> runtimes.csv92 echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ${csvfile} 91 93 tail -1 runtimes.csv >> log.run_ref 92 94 done
Note: See TracChangeset
for help on using the changeset viewer.