Skip to content
Snippets Groups Projects
Commit add49967 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[scripts] ensures $@/running gets erased even when Frama-C calls fails

parent 01bc9ad3
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,9 @@ SHELL := $(shell which bash) ...@@ -184,7 +184,9 @@ SHELL := $(shell which bash)
-metrics -metrics-log a:$@/metrics.log \ -metrics -metrics-log a:$@/metrics.log \
-save $@/framac.sav \ -save $@/framac.sav \
-print -ocode $@/framac.ast -then -no-print \ -print -ocode $@/framac.ast -then -no-print \
|| ($(RM) $@/stats.txt && false) # Prevents having error code reporting in stats.txt || (mv -f $@/{running,command} &&
$(RM) $@/stats.txt &&
false) # Prevents having error code reporting in stats.txt
} 2>&1 | } 2>&1 |
$(SED_UNBUFFERED) '/\[metrics\]/,999999d' | $(SED_UNBUFFERED) '/\[metrics\]/,999999d' |
tee $@/parse.log tee $@/parse.log
...@@ -220,14 +222,16 @@ endef ...@@ -220,14 +222,16 @@ endef
-scope-log w:$@/warnings.log \ -scope-log w:$@/warnings.log \
-eva-log w:$@/warnings.log \ -eva-log w:$@/warnings.log \
-then \ -then \
-remove-projects @all_but_current -save $@/framac.sav \ -remove-projects @all_but_current -save $@/framac.sav \
-then \ -then \
-report-csv $@/alarms.csv -report-no-proven \ -report-csv $@/alarms.csv -report-no-proven \
-report-log w:$@/warnings.log \ -report-log w:$@/warnings.log \
-metrics-eva-cover \ -metrics-eva-cover \
-metrics-log a:$@/metrics.log \ -metrics-log a:$@/metrics.log \
-nonterm -nonterm-log a:$@/nonterm.log \ -nonterm -nonterm-log a:$@/nonterm.log \
|| ($(RM) $@/stats.txt && false) # Prevents having error code reporting in stats.txt || (mv -f $@/{running,command} &&
$(RM) $@/stats.txt &&
false) # Prevents having error code reporting in stats.txt
} 2>&1 | } 2>&1 |
$(SED_UNBUFFERED) '/\[eva\] Values at end of function/,999999d' | $(SED_UNBUFFERED) '/\[eva\] Values at end of function/,999999d' |
tee $@/eva.log tee $@/eva.log
...@@ -260,7 +264,9 @@ endef ...@@ -260,7 +264,9 @@ endef
-then \ -then \
-report-csv $@/alarms.csv -report-no-proven \ -report-csv $@/alarms.csv -report-no-proven \
-report-log w:$@/warnings.log \ -report-log w:$@/warnings.log \
|| ($(RM) $@/stats.txt && false) # Prevents having error code reporting in stats.txt || (mv -f $@/{running,command} &&
$(RM) $@/stats.txt &&
false) # Prevents having error code reporting in stats.txt
} 2>&1 | } 2>&1 |
tee $@/wp.log tee $@/wp.log
{ {
......
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