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
9168e1e4
Commit
9168e1e4
authored
3 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[ptest] adds macro @PTEST_SESSION@
parent
96b2cdc5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ptests/ptests.ml
+3
-1
3 additions, 1 deletion
ptests/ptests.ml
with
3 additions
and
1 deletion
ptests/ptests.ml
+
3
−
1
View file @
9168e1e4
...
@@ -420,6 +420,7 @@ let example_msg =
...
@@ -420,6 +420,7 @@ let example_msg =
@@PTEST_NAME@@ # Basename of the test file.@ \
@@PTEST_NAME@@ # Basename of the test file.@ \
@@PTEST_NUMBER@@ # Test command number.@ \
@@PTEST_NUMBER@@ # Test command number.@ \
@@PTEST_CONFIG@@ # Test configuration suffix.@ \
@@PTEST_CONFIG@@ # Test configuration suffix.@ \
@@PTEST_SESSION@@ # Set to the value of the environment variable FRAMAC_SESSION.@ \
@@PTEST_SUITE_DIR@@ # Path to the directory contained the source of the test file (depends from -dune-mode option).@ \
@@PTEST_SUITE_DIR@@ # Path to the directory contained the source of the test file (depends from -dune-mode option).@ \
@@PTEST_RESULT@@ # Shorthand alias to '@@PTEST_SUITE_DIR@@/result@@PTEST_CONFIG@@' (the result directory dedicated to the tested configuration).@ \
@@PTEST_RESULT@@ # Shorthand alias to '@@PTEST_SUITE_DIR@@/result@@PTEST_CONFIG@@' (the result directory dedicated to the tested configuration).@ \
@@PTEST_ORACLE@@ # Basename of the current oracle file (macro only usable in FILTER directives).@ \
@@PTEST_ORACLE@@ # Basename of the current oracle file (macro only usable in FILTER directives).@ \
...
@@ -958,7 +959,7 @@ end = struct
...
@@ -958,7 +959,7 @@ end = struct
let
default_options
=
let
default_options
=
match
!
dune_mode
with
match
!
dune_mode
with
|
0
->
!
macro_default_options
|
0
->
!
macro_default_options
|
_
->
!
macro_default_options
^
" -add-symbolic-path
$FRAMAC
_SESSION:."
|
_
->
!
macro_default_options
^
" -add-symbolic-path
@PTEST
_SESSION
@
:."
let
default_macros
()
=
let
default_macros
()
=
let
l
=
[
let
l
=
[
...
@@ -967,6 +968,7 @@ end = struct
...
@@ -967,6 +968,7 @@ end = struct
"frama-c"
,
!
macro_frama_c
;
"frama-c"
,
!
macro_frama_c
;
"DEV_NULL"
,
dev_null
;
"DEV_NULL"
,
dev_null
;
"FRAMAC_SHARE"
,
get_default_env
"FRAMAC_SHARE"
""
;
"FRAMAC_SHARE"
,
get_default_env
"FRAMAC_SHARE"
""
;
"PTEST_SESSION"
,
get_default_env
"FRAMAC_SESSION"
""
;
"PTEST_DEFAULT_OPTIONS"
,
default_options
;
"PTEST_DEFAULT_OPTIONS"
,
default_options
;
"PTEST_OPTIONS"
,
!
macro_options
;
"PTEST_OPTIONS"
,
!
macro_options
;
"PTEST_PRE_OPTIONS"
,
!
macro_pre_options
;
"PTEST_PRE_OPTIONS"
,
!
macro_pre_options
;
...
...
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