
Removed most of the decisions based on ecu_supplier and made it more granular using individual configuration. Current project types will keep their config by adding templates in the BaseConfig.json file. Some usecases were kept for legacy reasons. Change-Id: I3d6199713006489baff0bf73751596770fd1f968
70 lines
2.4 KiB
Python
70 lines
2.4 KiB
Python
# Copyright 2024 Volvo Car Corporation
|
|
# Licensed under Apache 2.0.
|
|
|
|
"""Unit test data for powertrain_build.zone_controller.composition_yaml."""
|
|
|
|
from test_data.zone_controller.test_composition_yaml import composition_yaml_setup
|
|
|
|
expected_result = {
|
|
"SoftwareComponents": {
|
|
"testName_SC": {
|
|
"type": "SWC",
|
|
"template": "ARTCSC",
|
|
"runnables": {
|
|
"AR_prefix_VcExtINI": {
|
|
"type": "INIT",
|
|
"accesses": composition_yaml_setup.base_accesses
|
|
},
|
|
"AR_prefix_testRunnable": {
|
|
"period": 10,
|
|
"type": "PERIODIC",
|
|
"accesses": composition_yaml_setup.base_accesses
|
|
},
|
|
},
|
|
"diagnostics": {},
|
|
"static": composition_yaml_setup.base_static,
|
|
"shared": composition_yaml_setup.base_shared,
|
|
"ports": {
|
|
"GlobSignNme": {"direction": "IN", "interface": "PIGlobSignNme"}
|
|
},
|
|
}
|
|
},
|
|
"DataTypes": composition_yaml_setup.base_data_types,
|
|
"PortInterfaces": composition_yaml_setup.base_port_interfaces,
|
|
"ExternalFiles": composition_yaml_setup.base_configuration
|
|
}
|
|
|
|
expected_cal_result = {
|
|
"SoftwareComponents": {
|
|
"testName_SC": {
|
|
"type": "SWC",
|
|
"template": "ARTCSC",
|
|
"runnables": {
|
|
"AR_prefix_VcExtINI": {
|
|
"type": "INIT",
|
|
"accesses": composition_yaml_setup.cal_accesses
|
|
},
|
|
"AR_prefix_testRunnable": {
|
|
"period": 10,
|
|
"type": "PERIODIC",
|
|
"accesses": composition_yaml_setup.cal_accesses
|
|
},
|
|
"AR_testName_SC_ZcCalibrationStep": {
|
|
"period": 0.1,
|
|
"type": "PERIODIC",
|
|
"accesses": composition_yaml_setup.cal_accesses
|
|
}
|
|
},
|
|
"diagnostics": {},
|
|
"static": composition_yaml_setup.base_static,
|
|
"shared": composition_yaml_setup.cal_shared,
|
|
"ports": {
|
|
"GlobSignNme": {"direction": "IN", "interface": "PIGlobSignNme"}
|
|
},
|
|
}
|
|
},
|
|
"DataTypes": composition_yaml_setup.base_data_types,
|
|
"PortInterfaces": composition_yaml_setup.base_port_interfaces,
|
|
"ExternalFiles": composition_yaml_setup.base_configuration
|
|
}
|