Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
acc08244
Commit
acc08244
authored
4 years ago
by
François Bobot
Browse files
Options
Downloads
Patches
Plain Diff
[tests] add jcdb
parent
fbce50cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
tests/jcdb/jcdb.c
+2
-2
2 additions, 2 deletions
tests/jcdb/jcdb.c
tests/jcdb/oracle/list_files.res
+3
-19
3 additions, 19 deletions
tests/jcdb/oracle/list_files.res
with
6 additions
and
22 deletions
Makefile
+
1
−
1
View file @
acc08244
...
@@ -168,7 +168,7 @@ force-reconfigure:
...
@@ -168,7 +168,7 @@ force-reconfigure:
##############################################################################
##############################################################################
.PHONY
:
tests clean-tests
.PHONY
:
tests clean-tests
TESTS
=
builtins callgraph cil constant_propagation float idct impact libc metrics misc occurrence pdg rte rte_manual scope slicing sparecode syntax
test
value
TESTS
=
builtins callgraph cil constant_propagation float idct impact libc metrics misc occurrence pdg rte rte_manual scope slicing sparecode syntax
test
value
jcdb
tests
:
config.sed
tests
:
config.sed
find tests
-name
dune |
grep
-e
"oracle.*/
\|
result.*/"
| xargs
--no-run-if-empty
rm
find tests
-name
dune |
grep
-e
"oracle.*/
\|
result.*/"
| xargs
--no-run-if-empty
rm
dune
exec
--
ptests/ptests.exe
dune
exec
--
ptests/ptests.exe
...
...
This diff is collapsed.
Click to expand it.
tests/jcdb/jcdb.c
+
2
−
2
View file @
acc08244
/* run.config
/* run.config
DEPS: jcdb2.c with_arguments.json compile_commands.json
DEPS: jcdb2.c with_arguments.json compile_commands.json
file_without_main.c
CMXS: @PTEST_NAME@
CMXS: @PTEST_NAME@
OPT: -json-compilation-database ./ -print
OPT: -json-compilation-database ./ -print
OPT: jcdb2.c -json-compilation-database with_arguments.json -print
OPT: jcdb2.c -json-compilation-database with_arguments.json -print
OPT: -json-compilation-database with_arguments.json -load-module %{dep:@PTEST_NAME@.cmxs}
OPT: -json-compilation-database with_arguments.json -load-module %{dep:@PTEST_NAME@.cmxs}
EXECNOW: LOG list_files.res LOG list_files.err %{read:../syntax/framac_share_path}/analysis-scripts/list_files.py %{dep:compile_commands_working.json} > list_files.res 2> list_files.err
EXECNOW: LOG list_files.res LOG list_files.err %{read:../
../
syntax/framac_share_path}/analysis-scripts/list_files.py %{dep:compile_commands_working.json} > list_files.res 2> list_files.err
*/
*/
#include
<stdio.h>
#include
<stdio.h>
...
...
This diff is collapsed.
Click to expand it.
tests/jcdb/oracle/list_files.res
+
3
−
19
View file @
acc08244
#
Paths
as
seen
by
a
makefile
inside
subdirectory
'
.
frama
-
c'
:
#
Paths
as
seen
by
a
makefile
inside
subdirectory
'
.
frama
-
c'
:
SRCS
=
\
SRCS
=
\
<<<<<<<
HEAD
..
/
file_without_main
.
c
\
file_without_main
.
c
\
..
/
jcdb
.
c
\
jcdb
.
c
\
|||||||
362083
a770
tests
/
jcdb
/
file_without_main
.
c
\
tests
/
jcdb
/
jcdb
.
c
\
=======
..
/
tests
/
jcdb
/
file_without_main
.
c
\
..
/
tests
/
jcdb
/
jcdb
.
c
\
>>>>>>>
origin
/
master
<<<<<<<
HEAD
#
Possible
definition
of
main
function
in
the
following
file
(
s
)
:
jcdb
.
c
|||||||
362083
a770
#
Possible
definition
of
main
function
in
the
following
file
(
s
)
:
tests
/
jcdb
/
jcdb
.
c
=======
#
Possible
definition
of
main
function
in
the
following
file
(
s
)
,
as
seen
from
'
.
frama
-
c'
:
#
Possible
definition
of
main
function
in
the
following
file
(
s
)
,
as
seen
from
'
.
frama
-
c'
:
..
/
tests
/
jcdb
/
jcdb
.
c
..
/
jcdb
.
c
>>>>>>>
origin
/
master
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment