aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-07-18 17:11:29 -0600
committerTobin Ehlis <tobine@google.com>2016-07-19 13:38:59 -0600
commitf70ff30717dcb17f54613fd6ead35c20aaa3a696 (patch)
tree7777d256915f7c43e8fb86b979df1074c3acd966
parent1782ce880a1ab3506338fd2b574582ab001e0e29 (diff)
downloadusermoji-f70ff30717dcb17f54613fd6ead35c20aaa3a696.tar.xz
tests: Add test exceptions to doc validator
Don't require test cases for internal layer error cases.
-rwxr-xr-xvk_layer_documentation_generate.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/vk_layer_documentation_generate.py b/vk_layer_documentation_generate.py
index 2da0cc4f..2ca33e56 100755
--- a/vk_layer_documentation_generate.py
+++ b/vk_layer_documentation_generate.py
@@ -304,6 +304,8 @@ class LayerDoc:
# Count number of errors found and return it
errors_found = 0
warnings_found = 0
+ # A few checks that are allowed to not have tests
+ no_test_checks = ['DRAWSTATE_INTERNAL_ERROR', 'DRAWSTATE_OUT_OF_MEMORY', 'MEMTRACK_INTERNAL_ERROR', 'OBJTRACK_INTERNAL_ERROR']
# First we'll go through the doc datastructures and flag any issues
for chk in self.enum_list:
doc_layer_found = False
@@ -348,7 +350,8 @@ class LayerDoc:
break
elif test not in tests_set and not chk.endswith('_NONE'):
if test == 'TODO':
- warnings_found += 1
+ if chk not in no_test_checks:
+ warnings_found += 1
else:
print(self.txt_color.red() + 'Validation check %s has missing or invalid test : %s' % (chk, test))
errors_found += 1