From f70ff30717dcb17f54613fd6ead35c20aaa3a696 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Mon, 18 Jul 2016 17:11:29 -0600 Subject: tests: Add test exceptions to doc validator Don't require test cases for internal layer error cases. --- vk_layer_documentation_generate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3