How nguyendinhtuan-dev/automotive_sil_testing_devops_automation works
This repository is a vECU SIL diagnostic validation platform: users run JSON-defined tests from the desktop or CLI, generate Tcl where needed, execute tests against a DoIP/UDS virtual ECU, and inspect and retain results. The graph also preserves the documented fault-injection, DTC, persistence, and closed-loop simulation capabilities. Source excerpts show the desktop orchestration and vECU implementation, but not the runner’s Tcl/socket internals or the Simulink bridge implementation; those links are therefore omitted or marked unverified.
Main entry points: TclTestRunnerService.cs Tcl test runner · MainViewModel.cs Desktop dashboard · memory.c vECU state and DTC memory · doip_server.c DoIP server
Components 19
User Interfaces
- Desktop dashboard
apps/test-runner/src/AutVecu.Desktop/ViewModels/MainViewModel.cs - CLI runner
apps/test-runner/src/AutVecu.CliRunner/Program.cs
Test Execution
- Tcl generation
apps/test-runner/src/AutVecu.Services/Implement/TclScriptGeneratorService.cs - Tcl test runner
apps/test-runner/src/AutVecu.Services/Implement/TclTestRunnerService.cs - Log parsing
apps/test-runner/src/AutVecu.Services/Implement/LogParserService.cs - Report storage
apps/test-runner/src/AutVecu.Services/Implement/JsonReportStorageService.cs - Tcl socket wrapper
apps/vecu/src/tclsh_wrapper.c - Jenkins regression pipeline
Virtual ECU
- DoIP server
apps/vecu/src/doip_server.c - UDS diagnostic handler
apps/vecu/src/uds_driver.c - vECU state and DTC memory
apps/vecu/src/memory.c - vECU startup
apps/vecu/src/main.c - DTC EEPROM persistence
apps/vecu/src/memory.c
Diagnostic Domain
- Test definitions
apps/test-runner/src/AutVecu.Cores/Models/TestCaseDefinition.cs - Run results
apps/test-runner/src/AutVecu.Cores/Models/TestRun.cs - UDS protocol model
apps/test-runner/src/AutVecu.Cores/Diagnostics/UdsProtocol.cs
Vehicle Simulation
- Simulink thermal plant
- FiM limp-home control
Other components
- Test engineer
Connections 23
- Test engineer → Desktop dashboard: operates
- Test engineer → CLI runner: runs
- Desktop dashboard → Tcl generation: generates scripts
apps/test-runner/src/AutVecu.Desktop/ViewModels/MainViewModel.cs - Desktop dashboard → Tcl test runner: runs tests
apps/test-runner/src/AutVecu.Desktop/ViewModels/MainViewModel.cs - Desktop dashboard → Report storage: loads history
apps/test-runner/src/AutVecu.Desktop/ViewModels/MainViewModel.cs - Desktop dashboard → Run results: displays results
apps/test-runner/src/AutVecu.Desktop/ViewModels/MainViewModel.cs - CLI runner → Tcl test runner: runs tests
apps/test-runner/src/AutVecu.CliRunner/Program.cs - Tcl generation → Test definitions: consumes definitions
apps/test-runner/src/AutVecu.Services/Implement/TclScriptGeneratorService.cs - Tcl test runner → Log parsing: parses output
apps/test-runner/src/AutVecu.Services/Implement/TclTestRunnerService.cs - Tcl test runner → Report storage: saves runs
apps/test-runner/src/AutVecu.Services/Implement/TclTestRunnerService.cs - Log parsing → UDS protocol model: interprets responses
apps/test-runner/src/AutVecu.Services/Implement/LogParserService.cs - Tcl test runner → Run results: produces run
apps/test-runner/src/AutVecu.Services/Implement/TclTestRunnerService.cs - Tcl test runner → DoIP server: sends diagnostics
- DoIP server → UDS diagnostic handler: dispatches UDS
apps/vecu/src/doip_server.c - UDS diagnostic handler → vECU state and DTC memory: reads and updates
apps/vecu/src/uds_driver.c - vECU startup → DoIP server: starts server
apps/vecu/src/main.c - vECU startup → UDS diagnostic handler: initializes diagnostics
apps/vecu/src/main.c - vECU startup → vECU state and DTC memory: initializes state
apps/vecu/src/main.c - Tcl socket wrapper → DoIP server: connects by socket
- vECU state and DTC memory → DTC EEPROM persistence: persists DTCs
apps/vecu/src/memory.c - Simulink thermal plant → vECU state and DTC memory: updates vehicle state
- vECU state and DTC memory → FiM limp-home control: fault state informs
- Jenkins regression pipeline → Tcl test runner: runs regression