The build target specific result. The _inner_results list stores results of test suites in a given build target. Also stores build target specifics, such as compiler used to build DPDK.
| 193 | |
| 194 | |
| 195 | class BuildTargetResult(BaseResult): |
| 196 | """ |
| 197 | The build target specific result. |
| 198 | The _inner_results list stores results of test suites in a given build target. |
| 199 | Also stores build target specifics, such as compiler used to build DPDK. |
| 200 | """ |
| 201 | |
| 202 | arch: Architecture |
| 203 | os: OS |
| 204 | cpu: CPUType |
| 205 | compiler: Compiler |
| 206 | compiler_version: str | None |
| 207 | dpdk_version: str | None |
| 208 | |
| 209 | def __init__(self, build_target: BuildTargetConfiguration): |
| 210 | super(BuildTargetResult, self).__init__() |
| 211 | self.arch = build_target.arch |
| 212 | self.os = build_target.os |
| 213 | self.cpu = build_target.cpu |
| 214 | self.compiler = build_target.compiler |
| 215 | self.compiler_version = None |
| 216 | self.dpdk_version = None |
| 217 | |
| 218 | def add_build_target_info(self, versions: BuildTargetInfo) -> None: |
| 219 | self.compiler_version = versions.compiler_version |
| 220 | self.dpdk_version = versions.dpdk_version |
| 221 | |
| 222 | def add_test_suite(self, test_suite_name: str) -> TestSuiteResult: |
| 223 | test_suite_result = TestSuiteResult(test_suite_name) |
| 224 | self._inner_results.append(test_suite_result) |
| 225 | return test_suite_result |
| 226 | |
| 227 | |
| 228 | class ExecutionResult(BaseResult): |
no outgoing calls