summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2019-10-31 14:35:07 +0000
committerArmin Kuster <akuster808@gmail.com>2019-11-11 20:11:59 -0800
commit3c2da7e60d224fd508e82298c516c4ceb1ca4801 (patch)
tree07ed9729735475edbb733cb2dca2c1e73cdcd8d3
parentd7989c4c53d9d41354b45316063b44b0d3162f2c (diff)
downloadopenembedded-core-contrib-3c2da7e60d224fd508e82298c516c4ceb1ca4801.tar.gz
OEQA/runtime: Add ltp stress test
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta/lib/oeqa/runtime/cases/ltp_stress.py29
1 files changed, 29 insertions, 0 deletions
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 0000000000..4fc549f7ea
--- /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')