|
32 | 32 | import chip.clusters as Clusters
|
33 | 33 | from basic_composition_support import BasicCompositionTests
|
34 | 34 | from chip.tlv import uint
|
| 35 | +from choice_conformance_support import (evaluate_attribute_choice_conformance, evaluate_command_choice_conformance, |
| 36 | + evaluate_feature_choice_conformance) |
35 | 37 | from conformance_support import ConformanceDecision, conformance_allowed
|
36 | 38 | from global_attribute_ids import GlobalAttributeIds
|
37 | 39 | from matter_testing_support import (AttributePathLocation, ClusterPathLocation, CommandPathLocation, MatterBaseTest, ProblemNotice,
|
@@ -188,7 +190,17 @@ def check_spec_conformance_for_commands(command_type: CommandType):
|
188 | 190 | check_spec_conformance_for_commands(CommandType.ACCEPTED)
|
189 | 191 | check_spec_conformance_for_commands(CommandType.GENERATED)
|
190 | 192 |
|
191 |
| - # TODO: Add choice checkers |
| 193 | + feature_choice_problems = evaluate_feature_choice_conformance( |
| 194 | + endpoint_id, cluster_id, self.xml_clusters, feature_map, attribute_list, all_command_list) |
| 195 | + attribute_choice_problems = evaluate_attribute_choice_conformance( |
| 196 | + endpoint_id, cluster_id, self.xml_clusters, feature_map, attribute_list, all_command_list) |
| 197 | + command_choice_problem = evaluate_command_choice_conformance( |
| 198 | + endpoint_id, cluster_id, self.xml_clusters, feature_map, attribute_list, all_command_list) |
| 199 | + |
| 200 | + if feature_choice_problems or attribute_choice_problems or command_choice_problem: |
| 201 | + success = False |
| 202 | + problems.extend(feature_choice_problems + attribute_choice_problems + command_choice_problem) |
| 203 | + |
192 | 204 | print(f'success = {success}')
|
193 | 205 | return success, problems
|
194 | 206 |
|
|
0 commit comments