Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 1 | # |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 2 | # Copyright OpenEmbedded Contributors |
| 3 | # |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 4 | # SPDX-License-Identifier: MIT |
| 5 | # |
| 6 | |
| 7 | from oeqa.runtime.case import OERuntimeTestCase |
| 8 | from oeqa.core.decorator.depends import OETestDepends |
| 9 | |
| 10 | class RtTest(OERuntimeTestCase): |
| 11 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
| 12 | def test_is_rt(self): |
| 13 | """ |
| 14 | Check that the kernel has CONFIG_PREEMPT_RT enabled. |
| 15 | """ |
| 16 | status, output = self.target.run("uname -a") |
| 17 | self.assertEqual(status, 0, msg=output) |
| 18 | # Split so we don't get a substring false-positive |
| 19 | self.assertIn("PREEMPT_RT", output.split()) |