[oe-commits] [openembedded-core] 03/07: OEQA/runtime: Add ltp stress test
git at git.openembedded.org
git at git.openembedded.org
Thu Nov 14 13:22:53 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit d6ad16ed68854909ff18136660de312044548d00
Author: Armin Kuster <akuster808 at gmail.com>
AuthorDate: Mon Nov 11 20:33:24 2019 -0800
OEQA/runtime: Add ltp stress test
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oeqa/runtime/cases/ltp_stress.py | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/meta/lib/oeqa/runtime/cases/ltp_stress.py b/meta/lib/oeqa/runtime/cases/ltp_stress.py
new file mode 100644
index 0000000..4fc549f
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/ltp_stress.py
@@ -0,0 +1,29 @@
+# LTP Stress runtime
+#
+# Copyright (c) 2019 MontaVista Software, LLC
+#
+# SPDX-License-Identifier: MIT
+#
+
+import time
+import datetime
+import bb
+
+from oeqa.core.decorator.depends import OETestDepends
+from oeqa.runtime.decorator.package import OEHasPackage
+from oeqa.core.decorator.data import skipIfQemu
+from oeqa.utils.ltp import LtpStressBase
+
+class LtpStressTest(LtpStressBase):
+ # LTP stress runtime tests
+ # crashme [NBYTES] [SRAND] [NTRYS] [NSUB] [VERBOSE]
+ #
+
+ @skipIfQemu('qemuall', 'Test only runs on real hardware')
+
+ @OETestDepends(['ssh.SSHTest.test_ssh'])
+ @OEHasPackage(["ltp"])
+ def test_ltp_stress(self):
+ self.tc.target.run("sed -i -r 's/^fork12.*//' /opt/ltp/runtest/crashme")
+ self.cmd = '/opt/ltp/runltp -f crashme +2000 666 100 0:0:00 -p -q -r /opt/ltp -l /opt/ltp/results/crash -I 1 -d /opt/ltp '
+ self.runltp('crashme')
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list