Skip to content
Snippets Groups Projects
Commit 9168e1e4 authored by Patrick Baudin's avatar Patrick Baudin
Browse files

[ptest] adds macro @PTEST_SESSION@

parent 96b2cdc5
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
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