]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lsb: add runtime akuster/lsb_wip
authorArmin Kuster <akuster808@gmail.com>
Mon, 22 Apr 2019 00:31:39 +0000 (18:31 -0600)
committerArmin Kuster <akuster808@gmail.com>
Mon, 22 Apr 2019 12:05:51 +0000 (06:05 -0600)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/runtime/cases/lsb.py [new file with mode: 0644]

diff --git a/meta/lib/oeqa/runtime/cases/lsb.py b/meta/lib/oeqa/runtime/cases/lsb.py
new file mode 100644 (file)
index 0000000..0ad4f9b
--- /dev/null
@@ -0,0 +1,35 @@
+# LSB compliance runtime
+#
+# Copyright (c) 2019 MontaVista Software, LLC
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms and conditions of the GNU General Public License,
+# version 2, as published by the Free Software Foundation.
+#
+# This program is distributed in the hope it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+# more details.
+#
+
+import time
+import datetime
+import bb
+
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.depends import OETestDepends
+from oeqa.runtime.decorator.package import OEHasPackage
+
+class LSBTest(OERuntimeTestCase):
+
+    @OETestDepends(['ssh.SSHTest.test_ssh'])
+    @OEHasPackage(["lsbtest", 'rpm', 'perl-mouldes'])
+    def test_lsb_test(self):
+        bb.warn("lsb-test")
+        cmd = "sh /opt/lsb-test/LSB_Test.sh"
+        bb.warn("%s" % cmd)
+        starttime = time.time()
+        (status, output) = self.target.run(cmd, 100)
+        endtime = time.time()
+        runtime = int(endtime - starttime)
+        bb.warn("lsb: %s %s" % (output, runtime))