summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-15 08:13:22 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-15 08:13:22 +0100
commit9dc48a36f0c06fcc7347dfc0bf0f715c948d0f43 (patch)
tree4b932b249082f13768c2cee8ec7abdba2997e6ae
parent1aba0436cf4438143be7d5654e99b287b8296180 (diff)
Fill out test_call_all() and order functions by name.
-rw-r--r--testsuite.py104
1 files changed, 56 insertions, 48 deletions
diff --git a/testsuite.py b/testsuite.py
index 5ddb29c..7f36edc 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -1404,12 +1404,25 @@ def test_call_all(conf):
Also do misc. sanity checks."""
print " For {0}...".format(conf.get_arch())
+ conf.__str__()
conf.get_arch()
- conf.get_srcarch()
- conf.get_srctree()
+ conf.get_base_dir()
conf.get_config_filename()
+ conf.get_config_header()
conf.get_defconfig_filename()
+ conf.get_kconfig_filename()
+ conf.get_mainmenu_text()
+ conf.get_srcarch()
+ conf.get_srctree()
+ conf.get_symbol("y")
+ conf.get_symbols(False)
conf.get_top_level_items()
+ conf.set_print_undef_assign(True)
+ conf.set_print_undef_assign(False)
+ conf.set_print_warnings(False)
+ conf.set_print_warnings(True)
+ conf.unset_user_values()
+
conf.eval("y && ARCH")
# Syntax error
@@ -1422,28 +1435,30 @@ def test_call_all(conf):
verify(caught_exception,
"No exception generated for expression with syntax error")
- conf.get_config_header()
- conf.get_base_dir()
- conf.unset_user_values()
- conf.get_symbols(False)
- conf.get_mainmenu_text()
-
for s in conf.get_symbols():
- s.unset_user_value()
- s.get_value()
- s.get_user_value()
- s.get_name()
- s.get_upper_bound()
- s.get_lower_bound()
+ s.__str__()
s.get_assignable_values()
- s.get_type()
- s.get_visibility()
+ s.get_config()
+ s.get_help()
+ s.get_lower_bound()
+ s.get_name()
s.get_parent()
+ s.get_ref_locations()
s.get_referenced_symbols()
s.get_referenced_symbols(True)
s.get_selected_symbols()
- s.get_help()
- s.get_config()
+ s.get_type()
+ s.get_upper_bound()
+ s.get_user_value()
+ s.get_value()
+ s.get_visibility()
+ s.has_ranges()
+ s.is_choice_selection()
+ s.is_choice_symbol()
+ s.is_defined()
+ s.is_from_environment()
+ s.is_modifiable()
+ s.unset_user_value()
# Check get_ref/def_location() sanity
@@ -1478,54 +1493,47 @@ def test_call_all(conf):
"'{0}' both undefined and unreferenced".
format(s.get_name()))
- s.get_ref_locations()
- s.is_modifiable()
- s.is_defined()
- s.is_from_environment()
- s.has_ranges()
- s.is_choice_symbol()
- s.is_choice_selection()
- s.__str__()
-
for c in conf.get_choices():
- c.get_name()
- c.get_selection()
- c.get_selection_from_defaults()
- c.get_user_selection()
- c.get_type()
- c.get_name()
+ c.__str__()
+ c.get_def_locations()
c.get_items()
- c.get_symbols()
+ c.get_mode()
+ c.get_name()
c.get_parent()
c.get_referenced_symbols()
c.get_referenced_symbols(True)
- c.get_def_locations()
+ c.get_selection()
+ c.get_selection_from_defaults()
+ c.get_symbols()
+ c.get_type()
+ c.get_user_selection()
c.get_visibility()
- c.get_mode()
c.is_optional()
- c.__str__()
for m in conf.get_menus():
+ m.__str__()
+ m.get_config()
m.get_items()
- m.get_symbols(False)
- m.get_symbols(True)
- m.get_visibility()
- m.get_visible_if_visibility()
- m.get_title()
+ m.get_items(True)
+ m.get_location()
m.get_parent()
m.get_referenced_symbols()
m.get_referenced_symbols(True)
- m.get_location()
- m.__str__()
+ m.get_symbols()
+ m.get_symbols(True)
+ m.get_title()
+ m.get_visibility()
+ m.get_visible_if_visibility()
for c in conf.get_comments():
- c.get_visibility()
- c.get_text()
+ c.__str__()
+ c.get_config()
+ c.get_location()
c.get_parent()
c.get_referenced_symbols()
c.get_referenced_symbols(True)
- c.get_location()
- c.__str__()
+ c.get_text()
+ c.get_visibility()
def test_config_absent(conf):
"""