Skip to content
Snippets Groups Projects
Commit 5202f4ff authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[tests] dune: fix test directory 'metrics'

parent d6ad6c26
No related branches found
No related tags found
No related merge requests found
/* run.config /* run.config
PLUGIN: @PTEST_PLUGIN@ inout
STDOPT: +"-metrics-eva-cover -metrics-cover main" STDOPT: +"-metrics-eva-cover -metrics-cover main"
STDOPT: +"-metrics-eva-cover -main foobar -metrics-cover foobar" STDOPT: +"-metrics-eva-cover -main foobar -metrics-cover foobar"
**/ **/
......
/* run.config /* run.config
EXECNOW: LOG @PTEST_NAME@_metrics.res LOG @PTEST_NAME@_metrics.err @frama-c@ @PTEST_FILE@ -metrics -metrics-libc -then -metrics-no-libc | @PTEST_SUITE_DIR@/../libc/check_some_metrics.sh "> 5" "> 100" "= 0" "> 10" "= 2" "= 6" "= 0" "= 0" "= 0" "= 4" >@PTEST_NAME@_metrics.res 2>@PTEST_NAME@_metrics.err PLUGIN: @PTEST_PLUGIN@ inout
EXECNOW: LOG @PTEST_NAME@_metrics.res LOG @PTEST_NAME@_metrics.err @frama-c@ @PTEST_FILE@ -metrics -metrics-libc -then -metrics-no-libc | %{dep:@PTEST_SUITE_DIR@/../libc/check_some_metrics.sh} "> 5" "> 100" "= 0" "> 10" "= 2" "= 6" "= 0" "= 0" "= 0" "= 4" >@PTEST_NAME@_metrics.res 2>@PTEST_NAME@_metrics.err
STDOPT: #"-metrics-eva-cover" STDOPT: #"-metrics-eva-cover"
LOG: libc.json LOG: libc.json
STDOPT: #"-metrics-libc -metrics-output @PTEST_RESULT@/libc.json" STDOPT: #"-metrics-libc -metrics-output @PTEST_RESULT@/libc.json"
......
[kernel] Parsing func_ptr.c (with preprocessing) [kernel] Parsing func_ptr.c (with preprocessing)
[kernel:typing:implicit-function-declaration] func_ptr.c:28: Warning: [kernel:typing:implicit-function-declaration] func_ptr.c:29: Warning:
Calling undeclared function exit. Old style K&R code? Calling undeclared function exit. Old style K&R code?
[metrics] Defined functions (4) [metrics] Defined functions (4)
===================== =====================
...@@ -73,8 +73,8 @@ ...@@ -73,8 +73,8 @@
<func_ptr.c>: exit; foo; <func_ptr.c>: exit; foo;
[metrics] References to non-analyzed functions [metrics] References to non-analyzed functions
------------------------------------ ------------------------------------
Function main calls exit (at func_ptr.c:28) Function main calls exit (at func_ptr.c:29)
Function main references foo (at func_ptr.c:29) Function main references foo (at func_ptr.c:30)
[metrics] Statements analyzed by Eva [metrics] Statements analyzed by Eva
-------------------------- --------------------------
13 stmts in analyzed functions, 6 stmts analyzed (46.2%) 13 stmts in analyzed functions, 6 stmts analyzed (46.2%)
......
[kernel] Parsing func_ptr.c (with preprocessing) [kernel] Parsing func_ptr.c (with preprocessing)
[kernel:typing:implicit-function-declaration] func_ptr.c:28: Warning: [kernel:typing:implicit-function-declaration] func_ptr.c:29: Warning:
Calling undeclared function exit. Old style K&R code? Calling undeclared function exit. Old style K&R code?
[metrics] Defined functions (4) [metrics] Defined functions (4)
===================== =====================
......
...@@ -108,8 +108,8 @@ ...@@ -108,8 +108,8 @@
<reach.c>: baz; foo; <reach.c>: baz; foo;
[metrics] References to non-analyzed functions [metrics] References to non-analyzed functions
------------------------------------ ------------------------------------
Function main references foo (at reach.c:26) Function main references foo (at reach.c:27)
Initializer of t references baz (at reach.c:10) Initializer of t references baz (at reach.c:11)
[metrics] Statements analyzed by Eva [metrics] Statements analyzed by Eva
-------------------------- --------------------------
12 stmts in analyzed functions, 7 stmts analyzed (58.3%) 12 stmts in analyzed functions, 7 stmts analyzed (58.3%)
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<referenced-by-acsl.c>: f; <referenced-by-acsl.c>: f;
[metrics] References to non-analyzed functions [metrics] References to non-analyzed functions
------------------------------------ ------------------------------------
f referenced by an ACSL specification (at referenced-by-acsl.c:7) f referenced by an ACSL specification (at referenced-by-acsl.c:8)
[metrics] Statements analyzed by Eva [metrics] Statements analyzed by Eva
-------------------------- --------------------------
2 stmts in analyzed functions, 2 stmts analyzed (100.0%) 2 stmts in analyzed functions, 2 stmts analyzed (100.0%)
......
/* run.config /* run.config
PLUGIN: @PTEST_PLUGIN@ inout
STDOPT: +"-metrics-by-function -metrics-eva-cover" STDOPT: +"-metrics-by-function -metrics-eva-cover"
**/ **/
......
/* run.config /* run.config
PLUGIN: @PTEST_PLUGIN@ inout
STDOPT: +"-metrics-eva-cover" STDOPT: +"-metrics-eva-cover"
**/ **/
......
/* run.config /* run.config
PLUGIN: @PTEST_PLUGIN@ scope PLUGIN: @PTEST_PLUGIN@ inout,scope
STDOPT: +"-metrics-eva-cover -then -main foo" STDOPT: +"-metrics-eva-cover -then -main foo"
*/ */
void foo () { void foo () {
......
/* run.config /* run.config
OPT: -metrics-used-files %{dep:@PTEST_DIR@/@PTEST_NAME@1.i} %{dep:@PTEST_DIR@/@PTEST_NAME@2.i} %{dep:@PTEST_DIR@/@PTEST_NAME@3.i} %{dep:@PTEST_DIR@/@PTEST_NAME@4.i} %{dep:@PTEST_DIR@/@PTEST_NAME@5.i} %{dep:@PTEST_DIR@/@PTEST_NAME@6.i} %{dep:@PTEST_DIR@/@PTEST_NAME@7.i} %{dep:@PTEST_DIR@/@PTEST_NAME@8.i} %{dep:@PTEST_DIR@/@PTEST_NAME@9.c} @PTEST_DIR@/@PTEST_NAME@1.h @PTEST_DIR@/@PTEST_NAME@2.h MACRO: SOURCES %{dep:@PTEST_DIR@/@PTEST_NAME@1.i} %{dep:@PTEST_DIR@/@PTEST_NAME@2.i} %{dep:@PTEST_DIR@/@PTEST_NAME@3.i} %{dep:@PTEST_DIR@/@PTEST_NAME@4.i} %{dep:@PTEST_DIR@/@PTEST_NAME@5.i} %{dep:@PTEST_DIR@/@PTEST_NAME@6.i} %{dep:@PTEST_DIR@/@PTEST_NAME@7.i} %{dep:@PTEST_DIR@/@PTEST_NAME@8.i} %{dep:@PTEST_DIR@/@PTEST_NAME@9.c} %{dep:@PTEST_DIR@/@PTEST_NAME@1.h} %{dep:@PTEST_DIR@/@PTEST_NAME@2.h}
OPT: -metrics-used-files -main g %{dep:@PTEST_DIR@/@PTEST_NAME@1.i} %{dep:@PTEST_DIR@/@PTEST_NAME@2.i} %{dep:@PTEST_DIR@/@PTEST_NAME@3.i} %{dep:@PTEST_DIR@/@PTEST_NAME@4.i} %{dep:@PTEST_DIR@/@PTEST_NAME@5.i} %{dep:@PTEST_DIR@/@PTEST_NAME@6.i} %{dep:@PTEST_DIR@/@PTEST_NAME@7.i} %{dep:@PTEST_DIR@/@PTEST_NAME@8.i} %{dep:@PTEST_DIR@/@PTEST_NAME@9.c} @PTEST_DIR@/@PTEST_NAME@1.h @PTEST_DIR@/@PTEST_NAME@2.h DEPS: @PTEST_DIR@/@PTEST_NAME@10.c
OPT: -metrics-used-files @SOURCES@
OPT: -metrics-used-files -main g @SOURCES@
*/ */
int h(void); int h(void);
......
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