summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-07-10 00:19:58 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-08-16 17:04:59 -0300
commitef50a663e2e4da4b9ebe09c151cbf2708871caf5 (patch)
tree143df2310e4915632458183d836d881dea444b5b
parent47423bea63bedfec463cb81e0564c1a9a22f3d90 (diff)
WIP: Debugging inherited stuff
-rw-r--r--src/scripts/testgen/ekeys.py2
-rw-r--r--src/scripts/testgen/suitegen.py10
2 files changed, 10 insertions, 2 deletions
diff --git a/src/scripts/testgen/ekeys.py b/src/scripts/testgen/ekeys.py
index a37ca27e63..28f595f5c0 100644
--- a/src/scripts/testgen/ekeys.py
+++ b/src/scripts/testgen/ekeys.py
@@ -18,7 +18,7 @@ class EKeys:
18 self.dicttypes = {} 18 self.dicttypes = {}
19 self.keywords = [] 19 self.keywords = []
20 self.verbs = [] 20 self.verbs = []
21 self.blacklist = [] 21 self.blacklist = ['efl_constructor']
22 self.keyloads = ["init", "shutdown", "custom"] 22 self.keyloads = ["init", "shutdown", "custom"]
23 self.implementsbl = ["construtor", "destructor", "finalize"] 23 self.implementsbl = ["construtor", "destructor", "finalize"]
24 self.funclist = Function_List_Type.CLASS_IMPLEMENTS 24 self.funclist = Function_List_Type.CLASS_IMPLEMENTS
diff --git a/src/scripts/testgen/suitegen.py b/src/scripts/testgen/suitegen.py
index 50d7b777ec..733c9885ad 100644
--- a/src/scripts/testgen/suitegen.py
+++ b/src/scripts/testgen/suitegen.py
@@ -106,12 +106,20 @@ class ClassItem(ComItem):
106 106
107 def get_all_inherited(leaf, getter): 107 def get_all_inherited(leaf, getter):
108 print("Getting all items for leaf", leaf) 108 print("Getting all items for leaf", leaf)
109 names = set()
109 for item in getter(leaf): 110 for item in getter(leaf):
111 print("Adding item", item.full_c_method_name)
112 names.add(item.full_c_method_name)
110 yield item 113 yield item
111 114
112 for inherit in leaf.inherits_full: 115 for inherit in leaf.inherits_full:
116 print("Inherit", inherit)
113 for item in getter(inherit): 117 for item in getter(inherit):
114 yield item 118 print("Checking item", item.full_c_method_name)
119 if (item.full_c_method_name not in names):
120 print("Adding item", item.full_c_method_name)
121 names.add(item.full_c_method_name)
122 yield item
115 123
116 self.methods = [ 124 self.methods = [
117 FuncItem(m, self.path, keys) 125 FuncItem(m, self.path, keys)