summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-15 15:37:28 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-15 15:37:28 +0100
commit411ac155a56b8e4874ab9713210fb7e8923022bc (patch)
tree1773cc1a1f906f88cf0c6a301a1786ae86c3bb97 /testsuite.py
parent2fb80bbd856280ab306c6087cdb9a4b077abacac (diff)
Add more selftests for choices with missing types.
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/testsuite.py b/testsuite.py
index d0d2214..d93b981 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -1215,7 +1215,9 @@ def run_selftests():
choice_bool, choice_bool_opt, choice_tristate, choice_tristate_opt, \
choice_bool_m, choice_tristate_m, choice_defaults, \
- choice_no_type_bool, choice_no_type_tristate = c.get_choices()
+ choice_no_type_bool, choice_no_type_tristate, \
+ choice_missing_member_type_1, choice_missing_member_type_2 \
+ = c.get_choices()
for choice in (choice_bool, choice_bool_opt, choice_bool_m,
choice_defaults):
@@ -1317,6 +1319,18 @@ def run_selftests():
"Expected second choice without explicit type to have type "
"tristate")
+ # Verify that symbols without a type in the choice get the type of the
+ # choice
+
+ verify((c["MMT_1"].get_type(), c["MMT_2"].get_type(),
+ c["MMT_3"].get_type()) ==
+ (kconfiglib.BOOL, kconfiglib.BOOL, kconfiglib.TRISTATE),
+ "Wrong types for first choice with missing member types")
+
+ verify((c["MMT_4"].get_type(), c["MMT_5"].get_type()) ==
+ (kconfiglib.BOOL, kconfiglib.BOOL),
+ "Wrong types for first choice with missing member types")
+
#
# Object dependencies
#