@@ -4,11 +4,16 @@ using Test, VortexStepMethod
44cd (@__DIR__ ) # ensure we're in test/ no matter how tests are launched
55include (" test_data_utils.jl" )
66
7- # Support selective test execution via ]test test_args=["pattern"]
8- const test_patterns = isempty (ARGS ) ? String[] : ARGS
7+ # ControlPlots must run in a separate single-threaded process
8+ const _plot_controlplots = " plot-controlplots" in ARGS
9+
10+ # Filter special args from pattern matching
11+ const test_patterns = filter (a -> a != " plot-controlplots" , ARGS )
912
1013println (" Running tests..." )
11- if ! isempty (test_patterns)
14+ if _plot_controlplots
15+ println (" Running plotting tests with ControlPlots backend" )
16+ elseif ! isempty (test_patterns)
1217 println (" Filtering tests matching: " , test_patterns)
1318end
1419
@@ -32,25 +37,30 @@ const build_is_production_build = let v = get(ENV, build_is_production_build_env
3237end :: Bool
3338
3439@testset verbose = true " Testing VortexStepMethod..." begin
35- if build_is_production_build && should_run_test (" bench" )
36- include (" bench.jl" )
40+ if _plot_controlplots
41+ include (" plotting/test_plotting.jl" )
42+ else
43+ if build_is_production_build && should_run_test (" bench" )
44+ include (" bench.jl" )
45+ end
46+ should_run_test (" body_aerodynamics/test_body_aerodynamics.jl" ) && include (" body_aerodynamics/test_body_aerodynamics.jl" )
47+ should_run_test (" body_aerodynamics/test_results.jl" ) && include (" body_aerodynamics/test_results.jl" )
48+ should_run_test (" test_refinement_validation.jl" ) && include (" test_refinement_validation.jl" )
49+ should_run_test (" filament/test_bound_filament.jl" ) && include (" filament/test_bound_filament.jl" )
50+ should_run_test (" filament/test_semi_infinite_filament.jl" ) && include (" filament/test_semi_infinite_filament.jl" )
51+ should_run_test (" panel/test_panel.jl" ) && include (" panel/test_panel.jl" )
52+ should_run_test (" plotting/test_plotting.jl" ) && include (" plotting/test_plotting.jl" )
53+ should_run_test (" polars/test_polars.jl" ) && include (" polars/test_polars.jl" )
54+ should_run_test (" ram_geometry/test_kite_geometry.jl" ) && include (" ram_geometry/test_kite_geometry.jl" )
55+ should_run_test (" settings/test_settings.jl" ) && include (" settings/test_settings.jl" )
56+ should_run_test (" solver/test_solver.jl" ) && include (" solver/test_solver.jl" )
57+ should_run_test (" solver/test_unrefined_dist.jl" ) && include (" solver/test_unrefined_dist.jl" )
58+ should_run_test (" VortexStepMethod/test_VortexStepMethod.jl" ) && include (" VortexStepMethod/test_VortexStepMethod.jl" )
59+ should_run_test (" wake/test_wake.jl" ) && include (" wake/test_wake.jl" )
60+ should_run_test (" wing_geometry/test_wing_geometry.jl" ) && include (" wing_geometry/test_wing_geometry.jl" )
61+ should_run_test (" yaml_geometry/test_yaml_geometry.jl" ) && include (" yaml_geometry/test_yaml_geometry.jl" )
62+ should_run_test (" Aqua.jl" ) && include (" Aqua.jl" )
3763 end
38- should_run_test (" body_aerodynamics/test_body_aerodynamics.jl" ) && include (" body_aerodynamics/test_body_aerodynamics.jl" )
39- should_run_test (" body_aerodynamics/test_results.jl" ) && include (" body_aerodynamics/test_results.jl" )
40- should_run_test (" test_refinement_validation.jl" ) && include (" test_refinement_validation.jl" )
41- should_run_test (" filament/test_bound_filament.jl" ) && include (" filament/test_bound_filament.jl" )
42- should_run_test (" filament/test_semi_infinite_filament.jl" ) && include (" filament/test_semi_infinite_filament.jl" )
43- should_run_test (" panel/test_panel.jl" ) && include (" panel/test_panel.jl" )
44- should_run_test (" polars/test_polars.jl" ) && include (" polars/test_polars.jl" )
45- should_run_test (" ram_geometry/test_kite_geometry.jl" ) && include (" ram_geometry/test_kite_geometry.jl" )
46- should_run_test (" settings/test_settings.jl" ) && include (" settings/test_settings.jl" )
47- should_run_test (" solver/test_solver.jl" ) && include (" solver/test_solver.jl" )
48- should_run_test (" solver/test_unrefined_dist.jl" ) && include (" solver/test_unrefined_dist.jl" )
49- should_run_test (" VortexStepMethod/test_VortexStepMethod.jl" ) && include (" VortexStepMethod/test_VortexStepMethod.jl" )
50- should_run_test (" wake/test_wake.jl" ) && include (" wake/test_wake.jl" )
51- should_run_test (" wing_geometry/test_wing_geometry.jl" ) && include (" wing_geometry/test_wing_geometry.jl" )
52- should_run_test (" yaml_geometry/test_yaml_geometry.jl" ) && include (" yaml_geometry/test_yaml_geometry.jl" )
53- should_run_test (" Aqua.jl" ) && include (" Aqua.jl" )
5464end
5565
5666nothing
0 commit comments