Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Charles Southerland
frama-c
Commits
664fbcd3
Commit
664fbcd3
authored
Jun 29, 2020
by
Andre Maroneze
Committed by
Andre Maroneze
Jul 22, 2020
Browse files
[Analysis-scripts] use short frama-c-config options
parent
46014f17
Changes
4
Hide whitespace changes
Inline
Side-by-side
bin/frama-c-script
View file @
664fbcd3
...
...
@@ -85,7 +85,7 @@ if [ $# -lt 1 ]; then
fi
DIR="$( cd "$( dirname "$0" )"
&&
pwd )"
FRAMAC_SHARE=$("${DIR}/frama-c-config" -
print-share-path
)
FRAMAC_SHARE=$("${DIR}/frama-c-config" -
share
)
if [ -z ${FRAMAC_SESSION+x} ]; then
FRAMAC_SESSION="./.frama-c";
fi
...
...
share/analysis-scripts/make_template.py
View file @
664fbcd3
...
...
@@ -74,7 +74,7 @@ if "PTESTS_TESTING" in os.environ:
bindir
=
Path
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
framac
)))
frama_c_config
=
bindir
/
"frama-c-config"
process
=
Popen
([
frama_c_config
,
"-
print-share-path
"
],
stdout
=
PIPE
)
process
=
Popen
([
frama_c_config
,
"-
share
"
],
stdout
=
PIPE
)
(
output
,
err
)
=
process
.
communicate
()
output
=
output
.
decode
(
'utf-8'
)
exit_code
=
process
.
wait
()
...
...
share/analysis-scripts/template.mk
View file @
664fbcd3
...
...
@@ -4,7 +4,7 @@
### Prologue. Do not modify this block. #######################################
-include
path.mk
FRAMAC
?=
frama-c
include
$(shell $(FRAMAC)-config
-print-share-path)/analysis
-scripts/prologue.mk
include
$(shell $(FRAMAC)-config -scripts
)
/prologue.mk
###############################################################################
# Edit below as needed. MACHDEP is mandatory. Suggested flags are optional.
...
...
@@ -36,5 +36,5 @@ main.parse: \
main.c
\
### Epilogue. Do not modify this block. #######################################
include
$(shell $(FRAMAC)-config
-print-share-path)/analysis
-scripts/epilogue.mk
include
$(shell $(FRAMAC)-config -scripts
)
/epilogue.mk
###############################################################################
tests/fc_script/oracle/GNUmakefile
View file @
664fbcd3
...
...
@@ -4,7 +4,7 @@
### Prologue. Do not modify this block. #######################################
-include
path.mk
FRAMAC
?=
frama-c
include
$(shell $(FRAMAC)-config
-print-share-path)/analysis
-scripts/prologue.mk
include
$(shell $(FRAMAC)-config -scripts
)
/prologue.mk
###############################################################################
# Edit below as needed. MACHDEP is mandatory. Suggested flags are optional.
...
...
@@ -43,5 +43,5 @@ fc_script_main.parse: \
../main3.c
\
### Epilogue. Do not modify this block. #######################################
include
$(shell $(FRAMAC)-config
-print-share-path)/analysis
-scripts/epilogue.mk
include
$(shell $(FRAMAC)-config -scripts
)
/epilogue.mk
###############################################################################
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment