Skip to content
Snippets Groups Projects
Commit 25370e85 authored by David Bühler's avatar David Bühler
Browse files

Merge branch 'feature/andre/refactor-tests' into 'master'

[tests] refactor tests to simplify future changes

See merge request frama-c/frama-c!2198
parents 0c86beaf e4bba7b6
No related branches found
No related tags found
No related merge requests found
Showing
with 33 additions and 31 deletions
...@@ -1082,6 +1082,7 @@ PLUGIN_NAME:=Pdg ...@@ -1082,6 +1082,7 @@ PLUGIN_NAME:=Pdg
PLUGIN_DIR:=src/plugins/pdg PLUGIN_DIR:=src/plugins/pdg
PLUGIN_TESTS_LIB:=tests/pdg/dyn_dpds.ml \ PLUGIN_TESTS_LIB:=tests/pdg/dyn_dpds.ml \
tests/pdg/sets.ml tests/pdg/sets.ml
PLUGIN_TESTS_DIRS:=pdg
PLUGIN_CMO:= pdg_parameters \ PLUGIN_CMO:= pdg_parameters \
ctrlDpds \ ctrlDpds \
pdg_state \ pdg_state \
......
/* run.config /* run.config
OPT: -eva -eva-show-progress -scf -eva-show-progress -journal-disable STDOPT: +"-eva"
*/ */
void *p; void *p;
......
/* run.config /* run.config
OPT: -journal-disable -print OPT: -print -journal-disable
OPT: -journal-disable -scf -eva-show-progress STDOPT:
OPT: -journal-disable -scf -eva-show-progress -scf-allow-cast STDOPT: +"-scf-allow-cast"
*/ */
typedef struct { typedef struct {
......
/* run.config /* run.config
OPT: -journal-disable -scf -eva-show-progress -scf-allow-cast STDOPT: +"-scf-allow-cast"
OPT: -journal-disable -scf -eva-show-progress STDOPT:
*/ */
typedef struct { typedef struct {
......
/* run.config /* run.config
OPT: -eva -eva-show-progress -scf -eva-show-progress -journal-disable STDOPT: +"-eva"
*/ */
struct S { struct S {
......
/* run.config /* run.config
OPT: -semantic-const-folding -eva-show-progress STDOPT:
*/ */
enum E { A, B, C, D }; enum E { A, B, C, D };
......
/* run.config /* run.config
OPT: -scf -eva-show-progress -then-on propagated STDOPT: +"-then-on propagated"
*/ */
void (*pf)(void); void (*pf)(void);
......
/* run.config /* run.config
OPT: -eva -semantic-const-folding -eva-show-progress -journal-disable STDOPT: +"-eva"
*/ */
struct st { struct st {
......
OPT: -journal-disable -scf -eva-show-progress
/* run.config /* run.config
OPT: -eva-show-progress -fct-pdg f1 -main f1 -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg f1 -main f1"
OPT: -eva-show-progress -fct-pdg loop -main loop -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg loop -main loop"
*/ */
int G; int G;
......
/* run.config /* run.config
OPT: -eva-show-progress -pdg -pdg-print -journal-disable -pdg-verbose 2 STDOPT: +"-pdg"
*/ */
typedef struct { typedef struct {
......
/* run.config /* run.config
OPT: -journal-disable -eva-show-progress -pdg -pdg-print -calldeps -pdg-verbose 2 STDOPT: +"-pdg -calldeps"
*/ */
unsigned int x, y; unsigned int x, y;
......
/* run.config /* run.config
OPT: -eva -inout -eva-show-progress -pdg -pdg-print -calldeps -deps -then -slice-return main -then-last -print -eva-show-progress STDOPT: +"-eva -inout -pdg -calldeps -deps -then -slice-return main -then-last -print -eva-show-progress"
*/ */
int Y, X; int Y, X;
......
/* run.config /* run.config
GCC: GCC:
OPT: -lib-entry -main g -eva-show-progress -pdg -pdg-dot tests/pdg/call -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-lib-entry -main g -pdg -pdg-dot tests/pdg/call "
*/ */
/* Ne pas modifier : exemple utilisé dans le rapport. */ /* Ne pas modifier : exemple utilisé dans le rapport. */
......
/* run.config /* run.config
* GCC: * GCC:
* OPT: -eva-show-progress -fct-pdg main -inout -journal-disable -pdg-print -pdg-verbose 2 * STDOPT: +"-fct-pdg main -inout"
* *
*/ */
......
/* run.config /* run.config
GCC: GCC:
OPT: -deps -input -out -inout -eva-show-progress -pdg -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-deps -input -out -inout -pdg"
*/ */
struct Tstr { int a; int b; int c; }; struct Tstr { int a; int b; int c; };
......
/* run.config /* run.config
STDOPT: #" -load-module pdg -calldeps -eva-show-progress -pdg -pdg-print" STDOPT: #"-eva -pdg -out -input -deps -calldeps -pdg"
*/ */
struct T1 { struct T1 {
......
/* run.config /* run.config
GCC: GCC:
OPT: -eva-show-progress -fct-pdg main -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg main"
*/ */
extern int G; extern int G;
......
/* run.config /* run.config
OPT: -lib-entry -main g -eva-show-progress -fct-pdg g -pdg-dot tests/pdg/doc -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-lib-entry -main g -fct-pdg g -pdg-dot tests/pdg/doc"
*/ */
/* To build the svg file: /* To build the svg file:
* dot -Tsvg tests/pdg/doc.g.dot > tests/pdg/doc.g.svg * dot -Tsvg tests/pdg/doc.g.dot > tests/pdg/doc.g.svg
......
/* run.config /* run.config
GCC: GCC:
OPT: -eva-show-progress -fct-pdg test_struct -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg test_struct"
OPT: -eva-show-progress -fct-pdg test_if_simple -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg test_if_simple"
OPT: -eva-show-progress -fct-pdg test_goto_simple -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg test_goto_simple"
OPT: -eva-show-progress -fct-pdg test_goto_arriere -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg test_goto_arriere"
OPT: -eva-show-progress -fct-pdg test_goto_else -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg test_goto_else"
OPT: -main test_ctrl_dpd_multiple -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-main test_ctrl_dpd_multiple "
=> ne passe pas => ne passe pas
OPT: -eva-show-progress -fct-pdg test_simple_loop -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg test_simple_loop"
OPT: -eva-show-progress -fct-pdg main -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg main"
OPT: -eva-show-progress -fct-pdg multiple_global_inputs -journal-disable -pdg-print -pdg-verbose 2 STDOPT: +"-fct-pdg multiple_global_inputs"
*/ */
/* bin/toplevel.opt -deps -main g tests/slicing/dpds_intra.c */ /* bin/toplevel.opt -deps -main g tests/slicing/dpds_intra.c */
/* bin/toplevel.opt -eva-show-progress -fct-pdg test_goto_simple tests/slicing/dpds_intra.c -pdg-dot */ /* bin/toplevel.opt -fct-pdg test_goto_simple tests/slicing/dpds_intra.c -pdg-dot */
extern int G; extern int G;
......
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