ecu-tests/config/examples.yaml

51 lines
1.9 KiB
YAML

# Examples: Mock-only and BabyLIN hardware configurations
#
# How to use (Windows PowerShell):
# # Point the framework to a specific config file
# $env:ECU_TESTS_CONFIG = ".\config\examples.yaml"
# # Run only mock tests
# pytest -m "not hardware" -v
# # Switch to the BabyLIN profile by moving it under the 'active' key or by
# # exporting a different file path containing only the desired profile.
#
# This file shows both profiles in one place; typically you'll copy the relevant
# section into its own YAML file (e.g., config/mock.yaml, config/babylin.yaml).
# --- MOCK PROFILE -----------------------------------------------------------
mock_profile:
interface:
type: mock
channel: 1
bitrate: 19200
flash:
enabled: false
hex_path:
# --- BABYLIN PROFILE --------------------------------------------------------
# Requires: vendor/BabyLIN_library.py and platform libraries placed per vendor/README.md
babylin_profile:
interface:
type: babylin
channel: 0 # SDK channel index (0-based)
bitrate: 19200 # Informational; SDF usually defines effective timing
node_name: ECU_TEST_NODE # Optional label
sdf_path: .\vendor\Example.sdf # Update to your real SDF path
schedule_nr: 0 # Start this schedule on connect
flash:
enabled: true
hex_path: C:\\Path\\To\\firmware.hex # Update as needed
# --- ACTIVE SELECTION -------------------------------------------------------
# To use one of the profiles above, copy it under the 'active' key below or
# include only that profile in a separate file. The loader expects the top-level
# keys 'interface' and 'flash' by default. For convenience, we expose a shape
# that mirrors that directly. Here is a self-contained active selection:
active:
interface:
type: mock
channel: 1
bitrate: 19200
flash:
enabled: false
hex_path: