Commit 1985fdd7 authored by Karl Wette's avatar Karl Wette
Browse files

Weave/TestSimulateSearch: skip memory test if peak memory not recorded

parent 963ed776
...@@ -113,7 +113,7 @@ for setup in short mid long; do ...@@ -113,7 +113,7 @@ for setup in short mid long; do
set -x set -x
peak_mem_no_sim=`${fitsdir}/lalapps_fits_header_getval "WeaveOutNoSim.fits[0]" 'PEAKMEM' | tr '\n\r' ' ' | awk 'NF == 1 {printf "%.16g", $1}'` peak_mem_no_sim=`${fitsdir}/lalapps_fits_header_getval "WeaveOutNoSim.fits[0]" 'PEAKMEM' | tr '\n\r' ' ' | awk 'NF == 1 {printf "%.16g", $1}'`
peak_mem_sim_full=`${fitsdir}/lalapps_fits_header_getval "WeaveOutSimFull.fits[0]" 'PEAKMEM' | tr '\n\r' ' ' | awk 'NF == 1 {printf "%.16g", $1}'` peak_mem_sim_full=`${fitsdir}/lalapps_fits_header_getval "WeaveOutSimFull.fits[0]" 'PEAKMEM' | tr '\n\r' ' ' | awk 'NF == 1 {printf "%.16g", $1}'`
awk "BEGIN { print x = ${peak_mem_sim_full} / ${peak_mem_no_sim}; exit ( ( 0.9 < x && x < 1.0 ) ? 0 : 1 ) }" awk "BEGIN { if ( ${peak_mem_sim_full} > 0 && ${peak_mem_no_sim} > 0 ) { print x = ${peak_mem_sim_full} / ${peak_mem_no_sim}; exit ( ( 0.9 < x && x < 1.0 ) ? 0 : 1 ) }; exit 0 }"
set +x set +x
echo echo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment