summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/runtime/cases/rt.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/rt.py b/meta/lib/oeqa/runtime/cases/rt.py
new file mode 100644
index 0000000000..849ac1914e
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/rt.py
@@ -0,0 +1,17 @@
1#
2# SPDX-License-Identifier: MIT
3#
4
5from oeqa.runtime.case import OERuntimeTestCase
6from oeqa.core.decorator.depends import OETestDepends
7
8class RtTest(OERuntimeTestCase):
9 @OETestDepends(['ssh.SSHTest.test_ssh'])
10 def test_is_rt(self):
11 """
12 Check that the kernel has CONFIG_PREEMPT_RT enabled.
13 """
14 status, output = self.target.run("uname -a")
15 self.assertEqual(status, 0, msg=output)
16 # Split so we don't get a substring false-positive
17 self.assertIn("PREEMPT_RT", output.split())