diff options
| author | Ross Burton <ross.burton@arm.com> | 2022-07-20 11:59:52 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-20 14:27:06 +0100 |
| commit | 33ff9b7d139c2ff87b0e5e49b08417e6cd86659f (patch) | |
| tree | fedbed273bc43735c0c2ef0747a8c69aedbb2a14 /meta | |
| parent | 1127e9a7b850fff9f303c0c5eedb9b2bb7ef11b7 (diff) | |
| download | poky-33ff9b7d139c2ff87b0e5e49b08417e6cd86659f.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: 0301d5845115d09299f87683b3efa46f3b4c7be9)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/lib/oeqa/runtime/cases/rt.py | 17 |
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 | |||
| 5 | from oeqa.runtime.case import OERuntimeTestCase | ||
| 6 | from oeqa.core.decorator.depends import OETestDepends | ||
| 7 | |||
| 8 | class 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()) | ||
