summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-07-20 11:59:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-04 16:29:15 +0100
commit1e3f924eb7dfbc919a8bf2591406e5b5dba258f6 (patch)
tree377b0832d6695d201661b55e56ba40ae1bbd05ee /meta
parent51acc9c217d7941b9505357042ab9a1418f7e199 (diff)
downloadpoky-1e3f924eb7dfbc919a8bf2591406e5b5dba258f6.tar.gz
oeqa/runtime: add test that the kernel has CONFIG_PREEMPT_RT enabled
This is the absolute bare minimum for testing the RT patches, but it does mean we if we build and boot a RT kernel we can verify that it is what we expect. (From OE-Core rev: de7bd5b616b9af3a88d718c79e85a4b53efb3280) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 0301d5845115d09299f87683b3efa46f3b4c7be9) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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())