summaryrefslogtreecommitdiff
path: root/framework/tests
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2014-03-04 23:11:51 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2014-03-12 13:13:37 -0700
commit294972511ed4eeea1d0210c39698354200e81e3f (patch)
treecac6de10c03e6242d25f95b75a890225b32c7276 /framework/tests
parentfba72cb89d94657e78836d61c484c1b99edeaac2 (diff)
dmesg_tests.py: Add initializer tests
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'framework/tests')
-rw-r--r--framework/tests/dmesg_tests.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/tests/dmesg_tests.py b/framework/tests/dmesg_tests.py
index cb450e1e4..63d9051ee 100644
--- a/framework/tests/dmesg_tests.py
+++ b/framework/tests/dmesg_tests.py
@@ -59,6 +59,18 @@ def _write_dev_kmesg():
raise SkipTest("Writing to the ringbuffer failed")
+def test_linux_initialization():
+ """ Test that LinuxDmesg initializes """
+ dmesg = LinuxDmesg()
+ assert dmesg
+
+
+def test_dummy_initialization():
+ """ Test that DummyDmesg initializes """
+ dmesg = DummyDmesg()
+ assert dmesg
+
+
def test_get_dmesg_dummy():
""" Test that get_dmesg function returns a Dummy when asked """
dummy = get_dmesg(not_dummy=False)