Skip to content
Snippets Groups Projects
Commit e185f645 authored by François Bobot's avatar François Bobot
Browse files

Add directly ptests_config since there is no generated values

   Except for numerors but the tests should be activated only when the modules
   used in it are available
parent 6567699a
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,6 @@ autom4te.cache ...@@ -40,7 +40,6 @@ autom4te.cache
#tests #tests
/tests/ptests_config
/tests/**/result/ /tests/**/result/
/tests/**/result_*/ /tests/**/result_*/
......
...@@ -217,22 +217,6 @@ let make_test_suite s = ...@@ -217,22 +217,6 @@ let make_test_suite s =
(* Those variables are read from a ptests_config file *) (* Those variables are read from a ptests_config file *)
let default_suites = ref [] let default_suites = ref []
let toplevel_path = ref ""
let change_toplevel_to_gui () =
let s = !toplevel_path in
match string_del_suffix "toplevel.opt" s with
| Some s -> toplevel_path := s ^ "viewer.opt"
| None ->
match string_del_suffix "toplevel.byte" s with
| Some s -> toplevel_path := s ^ "viewer.byte"
| None ->
match string_del_suffix "frama-c" s with
| Some s -> toplevel_path := s ^ "frama-c-gui"
| None ->
match string_del_suffix "frama-c.byte" s with
| Some s -> toplevel_path := s ^ "frama-c-gui.byte"
| None -> ()
let () = let () =
...@@ -389,8 +373,6 @@ let parse_config_line = ...@@ -389,8 +373,6 @@ let parse_config_line =
| "DEFAULT_SUITES" -> | "DEFAULT_SUITES" ->
let l = Str.split regexp_blank value in let l = Str.split regexp_blank value in
default_suites := List.map (Filename.concat test_path) l default_suites := List.map (Filename.concat test_path) l
| "TOPLEVEL_PATH" ->
toplevel_path := value
| _ -> default_env key value (* Environnement variable that Frama-C reads*) | _ -> default_env key value (* Environnement variable that Frama-C reads*)
...@@ -414,11 +396,7 @@ let () = ...@@ -414,11 +396,7 @@ let () =
end end
done done
with with
| End_of_file -> | End_of_file -> ()
if !toplevel_path = "" then begin
Format.eprintf "Missing TOPLEVEL_PATH variable. Aborting.@.";
exit 1
end
end end
else begin else begin
Format.eprintf Format.eprintf
...@@ -426,9 +404,6 @@ let () = ...@@ -426,9 +404,6 @@ let () =
exit 1 exit 1
end end
(** Must be done after reading config *)
let () = if !behavior = Gui then change_toplevel_to_gui ()
(* redefine name if special configuration expected *) (* redefine name if special configuration expected *)
let redefine_name name = let redefine_name name =
if !special_config = "" then name else if !special_config = "" then name else
...@@ -595,7 +570,7 @@ type config = ...@@ -595,7 +570,7 @@ type config =
let default_macros () = let default_macros () =
let l = [ let l = [
"frama-c", !toplevel_path; "frama-c", "frama-c";
] in ] in
Macros.add_list l Macros.empty Macros.add_list l Macros.empty
...@@ -607,8 +582,8 @@ let default_config () = ...@@ -607,8 +582,8 @@ let default_config () =
dc_deps = []; dc_deps = [];
dc_plugins = []; dc_plugins = [];
dc_filter = None ; dc_filter = None ;
dc_default_toplevel = !toplevel_path; dc_default_toplevel = "frama-c";
dc_toplevels = [ !toplevel_path, default_options, [], Macros.empty, "" ]; dc_toplevels = [ "frama-c", default_options, [], Macros.empty, "" ];
dc_dont_run = false; dc_dont_run = false;
dc_framac = true; dc_framac = true;
dc_default_log = []; dc_default_log = [];
...@@ -649,10 +624,10 @@ let scan_execnow ~once dir ex_timeout (s:string) = ...@@ -649,10 +624,10 @@ let scan_execnow ~once dir ex_timeout (s:string) =
} }
(* the default toplevel for the current level of options. *) (* the default toplevel for the current level of options. *)
let current_default_toplevel = ref !toplevel_path let current_default_toplevel = ref "frama-c"
let current_default_log = ref [] let current_default_log = ref []
let current_default_cmds = let current_default_cmds =
ref [!toplevel_path,default_options,[], Macros.empty, ""] ref ["frama-c",default_options,[], Macros.empty, ""]
let make_custom_opts = let make_custom_opts =
let space = Str.regexp " " in let space = Str.regexp " " in
......
DEFAULT_SUITES= dynamic dynamic_plugin journal saveload spec misc syntax cil pretty_printing builtins libc value fc_script jcdb metrics callgraph value/traces occurrence rte rte_manual idct test float constant_propagation impact pdg scope sparecode slicing
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