MCPcopy Create free account
hub / github.com/FastLED/FastLED / create_examples_test_process

Function create_examples_test_process

ci/util/test_runner.py:585–623  ·  view source on GitHub ↗

Create an examples test process using Meson build system

(
    args: TestArgs, enable_stack_trace: bool
)

Source from the content-addressed store, hash-verified

583
584
585def create_examples_test_process(
586 args: TestArgs, enable_stack_trace: bool
587) -> RunningProcess:
588 """Create an examples test process using Meson build system"""
589 # Use Meson-based example compilation instead of Python compiler
590 cmd = ["uv", "run", "python", "-u", "ci/util/meson_example_runner.py"]
591
592 # Add example names if specified
593 if args.examples is not None:
594 cmd.extend(args.examples)
595
596 # Map command-line arguments to meson_example_runner.py
597 if args.clean:
598 cmd.append("--clean")
599 if args.no_pch:
600 cmd.append("--no-pch") # Ignored by Meson (PCH always enabled)
601 if args.no_parallel:
602 cmd.append("--no-parallel")
603 if args.verbose:
604 cmd.append("--verbose")
605 if args.debug:
606 cmd.append("--debug")
607 if args.build_mode:
608 cmd.extend(["--build-mode", args.build_mode])
609
610 # Auto-enable full mode for examples to include execution
611 if args.full or args.examples is not None:
612 cmd.append("--full")
613 if args.log_failures is not None:
614 cmd.extend(["--log-failures", str(args.log_failures)])
615
616 # Use longer timeout for no-parallel mode since sequential compilation takes much longer
617 timeout = (
618 1800 if args.no_parallel else 600
619 ) # 30 minutes for sequential, 10 minutes for parallel
620
621 return RunningProcess(
622 cmd, auto_run=False, timeout=timeout, output_formatter=TimestampFormatter()
623 )
624
625
626def create_python_test_process(

Callers 4

mainFunction · 0.90
get_cpp_test_processesFunction · 0.85
get_all_test_processesFunction · 0.85
runnerFunction · 0.85

Calls 2

TimestampFormatterClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected