diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-13 16:02:23 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-13 16:02:23 +0100 |
| commit | 7f6ab61f736b485ceb891e87b7143e9019739972 (patch) | |
| tree | 640b2940d982ad3746ac98a4c599bd72fdb5d5db | |
| parent | bf6ddc6ba1797c487ec668fe41f8ad6b7998716d (diff) | |
Add selftest for Config.get_config_filename().
| -rw-r--r-- | testsuite.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite.py b/testsuite.py index 5d89742..089138a 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1029,10 +1029,12 @@ def run_selftests(): os.environ["SRCARCH"] = "SRCARCH value" os.environ["srctree"] = "srctree value" c = kconfiglib.Config("Kconfiglib/tests/Kmisc") + c.load_config("Kconfiglib/tests/empty") arch = c.get_arch() srcarch = c.get_srcarch() srctree = c.get_srctree() + config_filename = c.get_config_filename() kconfig_filename = c.get_kconfig_filename() print "Testing get_arch()..." @@ -1044,6 +1046,9 @@ def run_selftests(): print "Testing get_srctree()..." verify(srctree == "srctree value", "Wrong srctree value - got '{0}'".format(srctree)) + print "Testing get_config_filename()..." + verify(config_filename == "Kconfiglib/tests/empty", + "Wrong config filename - got '{0}'".format(config_filename)) print "Testing get_kconfig_filename()..." verify(kconfig_filename == "Kconfiglib/tests/Kmisc", "Wrong Kconfig filename - got '{0}'".format(kconfig_filename)) |
