From 92732bc3bc4683cd32c7629c624e2197d3abe1d8 Mon Sep 17 00:00:00 2001 From: Dave Houlton Date: Wed, 17 May 2017 13:25:53 -0600 Subject: layers: Add NotTestable as a valid testname entry Modify spec.py to add the keyword NotTestable as a valid test name. Use for VU checks that are implemented but which have no reasonable method of testing. Change-Id: Icd91e91b7c85484a8c652f970edc55d978829d81 --- layers/spec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/spec.py b/layers/spec.py index 155d68cd..8c1831fb 100644 --- a/layers/spec.py +++ b/layers/spec.py @@ -256,7 +256,7 @@ class Specification: db_lines.append("# %s%s%s%s%s" % (self.delimiter, self.delimiter, self.delimiter, self.delimiter, self.delimiter)) db_lines.append("# error_enum: Unique error enum for this check of format %s" % validation_error_enum_name) db_lines.append("# check_implemented: 'Y' if check has been implemented in layers, or 'N' for not implemented") - db_lines.append("# testname: Name of validation test for this check, 'Unknown' for unknown, or 'None' if not implmented") + db_lines.append("# testname: Name of validation test for this check, 'Unknown' for unknown, 'None' if not implemented, or 'NotTestable' if cannot be implemented") db_lines.append("# api: Vulkan API function that this check is related to") db_lines.append("# errormsg: The unique error message for this check that includes spec language and link") db_lines.append("# note: Free txt field with any custom notes related to the check in question") @@ -405,7 +405,7 @@ class Specification: print ("Added msg '%s' w/ enum %s to orig_core_msg_dict" % (orig_core_msg_period, enum)) self.orig_core_msg_dict[orig_core_msg_period] = [enum] # Also capture all enums that have a test and/or implementation - if self.error_db_dict[enum]['check_implemented'] == 'Y' or self.error_db_dict[enum]['testname'] not in ['None','Unknown']: + if self.error_db_dict[enum]['check_implemented'] == 'Y' or self.error_db_dict[enum]['testname'] not in ['None','Unknown','NotTestable']: print ("Recording %s with implemented value %s and testname %s" % (enum, self.error_db_dict[enum]['check_implemented'], self.error_db_dict[enum]['testname'])) self.orig_test_imp_enums.add(enum) # Values to be used for the update dict -- cgit v1.2.3