Skip to content
Snippets Groups Projects
Commit 0b8e5792 authored by RIETTE Sébastien's avatar RIETTE Sébastien
Browse files

S. Riette Sept 23: add --computeRefIfNeeded and --onlyIfNeeded switches to check_commit_ial

--onlyIfNeeded allows to call check_commit_ial and compuation (pack creation,
               compilation, execution) are performed only if needed

--computeRefIfNeeded with this switch, if the reference simulation does not
                     exist, this reference simulation is built before
                     performing the comparison
parent 7eb5e7e0
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -289,16 +289,19 @@ if [ ${force} -eq 1 -o $(get_statuses "${SHA}" | grep "${context}" | wc -l) -eq
if [ "${model}" == 'ial' ]; then
compilation='-p -c'
execution='-r'
comparison='-C --computeRefIfNeeded'
jsonfile="src/arome/ial_version.json"
docmp=1
elif [ "${model}" == 'lmdz' ]; then
compilation='-p -c --nofcm'
execution='-r --nofcm'
comparison='-C'
jsonfile="src/${model}/${model}_version.json"
docmp=0
else
compilation='-c'
execution='-r'
comparison='-C'
jsonfile="src/${model}/${model}_version.json"
docmp=1
fi
......@@ -359,7 +362,7 @@ if [ ${force} -eq 1 -o $(get_statuses "${SHA}" | grep "${context}" | wc -l) -eq
fi
fi
if [ ${result} -eq 0 -a ${docmp} -eq 1 -a ${comp} -eq 1 ]; then
compcmd="$cmd -C ${casearg} ${refarg}"
compcmd="$cmd ${comparison} ${casearg} ${refarg}"
log 1 "Comparison with ${compcmd}"
set +e
${compcmd}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment