mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
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: 0301d5845115d09299f87683b3efa46f3b4c7be9) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1127e9a7b8
commit
33ff9b7d13
17
meta/lib/oeqa/runtime/cases/rt.py
Normal file
17
meta/lib/oeqa/runtime/cases/rt.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
|
||||
class RtTest(OERuntimeTestCase):
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_is_rt(self):
|
||||
"""
|
||||
Check that the kernel has CONFIG_PREEMPT_RT enabled.
|
||||
"""
|
||||
status, output = self.target.run("uname -a")
|
||||
self.assertEqual(status, 0, msg=output)
|
||||
# Split so we don't get a substring false-positive
|
||||
self.assertIn("PREEMPT_RT", output.split())
|
||||
Reference in New Issue
Block a user