Ignore:
Timestamp:
01/07/22 15:18:07 (2 years ago)
Author:
jderouillat
Message:

Add tracking of the memory consumption in the test suite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/my_run.sh

    r2210 r2281  
    88 
    99fn=report_${svnR}_${arch}_${mode}.txt 
    10 echo "#revision" ${svnR} > ${fn} 
    11 echo "#url" ${svnurl} >> ${fn} 
    12 echo "#machine" ${xios_machine_name} >> ${fn} 
    13 echo "#build_dir" $(pwd)/build_${arch}_${mode} >> ${fn} 
    14 echo "#arch" $arch >> ${fn} 
    15 echo "#mode" $mode >> ${fn} 
    1610 
     11if [ -z ${enable_mem_track+x} ]; then 
     12  # initialize the report for the main part of the test (without memory tracking, see step2.py for details) 
     13  echo "#revision" ${svnR} > ${fn} 
     14  echo "#url" ${svnurl} >> ${fn} 
     15  echo "#machine" ${xios_machine_name} >> ${fn} 
     16  echo "#build_dir" $(pwd)/build_${arch}_${mode} >> ${fn} 
     17  echo "#arch" $arch >> ${fn} 
     18  echo "#mode" $mode >> ${fn} 
     19else 
     20  if  [ ! -f "$fn" ]; then  
     21    # initialize the report if it does not exist 
     22    echo "#revision" ${svnR} > ${fn} 
     23    echo "#url" ${svnurl} >> ${fn} 
     24    echo "#machine" ${xios_machine_name} >> ${fn} 
     25    echo "#build_dir" $(pwd)/build_${arch}_${mode} >> ${fn} 
     26    echo "#arch" $arch >> ${fn} 
     27    echo "#mode" $mode >> ${fn} 
     28    echo "#memtrack full" >> ${fn} 
     29  fi 
     30  # else write in the same report 
     31fi 
    1732 
    1833${PYTHON} step1.py 
Note: See TracChangeset for help on using the changeset viewer.