1111// SPDX-License-Identifier: Apache-2.0
1212// *******************************************************************************
1313
14- // The normal FIT binary builds the full scenario tree, which includes persistency
15- // scenarios and their transitive dependencies.
16- #[ cfg( not( lifecycle_only) ) ]
1714mod internals;
18- #[ cfg( not( lifecycle_only) ) ]
1915mod scenarios;
20- // The lifecycle-only build reuses this same entrypoint but limits compilation to
21- // lifecycle scenarios. This is needed because the conditional-launching FIT only
22- // exercises lifecycle behavior, while the full Rust FIT binary currently pulls in
23- // score_persistency/rust_kvs where ScoreDebug-related path logging compilation
24- // issues are still unresolved upstream.
25- #[ cfg( lifecycle_only) ]
26- #[ path = "scenarios/lifecycle/mod.rs" ]
27- mod lifecycle;
2816
2917use test_scenarios_rust:: cli:: run_cli_app;
3018use test_scenarios_rust:: test_context:: TestContext ;
3119
32- #[ cfg( lifecycle_only) ]
33- use crate :: lifecycle:: lifecycle_group;
34- #[ cfg( lifecycle_only) ]
35- use test_scenarios_rust:: scenario:: { ScenarioGroup , ScenarioGroupImpl } ;
36- // The default build keeps the existing root scenario registration for the full FIT suite.
37- #[ cfg( not( lifecycle_only) ) ]
3820use crate :: scenarios:: root_scenario_group;
3921use std:: time:: { SystemTime , UNIX_EPOCH } ;
4022use tracing:: Level ;
@@ -61,15 +43,6 @@ fn init_tracing_subscriber() {
6143 tracing:: subscriber:: set_global_default ( subscriber) . expect ( "Setting default subscriber failed!" ) ;
6244}
6345
64- // In lifecycle-only mode we construct a reduced root group from the same main.rs
65- // entrypoint instead of introducing a second Rust binary entry source. This keeps
66- // the folder layout and normal FIT execution unchanged while providing a stable
67- // workaround until the ScoreDebug issue is fixed in score_persistency.
68- #[ cfg( lifecycle_only) ]
69- fn root_scenario_group ( ) -> Box < dyn ScenarioGroup > {
70- Box :: new ( ScenarioGroupImpl :: new ( "root" , vec ! [ ] , vec ! [ lifecycle_group( ) ] ) )
71- }
72-
7346fn main ( ) -> Result < ( ) , String > {
7447 let raw_arguments: Vec < String > = std:: env:: args ( ) . collect ( ) ;
7548
0 commit comments