aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorLucian Musat <george.l.musat@intel.com>2015-07-17 12:54:36 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-22 23:24:59 +0100
commit9148e5873a79ea3ef64f00cf9807fae99bf3040a (patch)
tree961c76bb0dfe62162577efaa06aa98f372f4de01 /meta/lib
parentabf07439e59180a79518e8a2443930104e9e71d0 (diff)
downloadopenembedded-core-contrib-9148e5873a79ea3ef64f00cf9807fae99bf3040a.tar.gz
oeqa/runtime: Added decorators for the remaining auto tests.
This helps for the automatic completion of the results in testopia. Signed-off-by: Lucian Musat <george.l.musat@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/connman.py1
-rw-r--r--meta/lib/oeqa/runtime/gcc.py1
-rw-r--r--meta/lib/oeqa/runtime/perl.py1
-rw-r--r--meta/lib/oeqa/runtime/python.py3
-rw-r--r--meta/lib/oeqa/runtime/smart.py2
-rw-r--r--meta/lib/oeqa/runtime/syslog.py3
-rw-r--r--meta/lib/oeqa/runtime/xorg.py3
7 files changed, 11 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/connman.py b/meta/lib/oeqa/runtime/connman.py
index b04040016f..ee69e5df96 100644
--- a/meta/lib/oeqa/runtime/connman.py
+++ b/meta/lib/oeqa/runtime/connman.py
@@ -16,6 +16,7 @@ class ConnmanTest(oeRuntimeTest):
else:
return "Unable to get status or logs for %s" % service
+ @testcase(961)
@skipUnlessPassed('test_ssh')
def test_connmand_help(self):
(status, output) = self.target.run('/usr/sbin/connmand --help')
diff --git a/meta/lib/oeqa/runtime/gcc.py b/meta/lib/oeqa/runtime/gcc.py
index a7f62e1758..d90cd1799a 100644
--- a/meta/lib/oeqa/runtime/gcc.py
+++ b/meta/lib/oeqa/runtime/gcc.py
@@ -30,6 +30,7 @@ class GccCompileTest(oeRuntimeTest):
(status, output) = self.target.run('/tmp/test')
self.assertEqual(status, 0, msg="running compiled file failed, output %s" % output)
+ @testcase(1142)
def test_gpp2_compile(self):
(status, output) = self.target.run('g++ /tmp/test.cpp -o /tmp/test -lm')
self.assertEqual(status, 0, msg="g++ compile failed, output: %s" % output)
diff --git a/meta/lib/oeqa/runtime/perl.py b/meta/lib/oeqa/runtime/perl.py
index 65da028d4b..e044d0a5fe 100644
--- a/meta/lib/oeqa/runtime/perl.py
+++ b/meta/lib/oeqa/runtime/perl.py
@@ -14,6 +14,7 @@ class PerlTest(oeRuntimeTest):
def setUpClass(self):
oeRuntimeTest.tc.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "test.pl"), "/tmp/test.pl")
+ @testcase(1141)
def test_perl_exists(self):
(status, output) = self.target.run('which perl')
self.assertEqual(status, 0, msg="Perl binary not in PATH or not on target.")
diff --git a/meta/lib/oeqa/runtime/python.py b/meta/lib/oeqa/runtime/python.py
index 0387b9a03e..26edb7a9b8 100644
--- a/meta/lib/oeqa/runtime/python.py
+++ b/meta/lib/oeqa/runtime/python.py
@@ -14,6 +14,7 @@ class PythonTest(oeRuntimeTest):
def setUpClass(self):
oeRuntimeTest.tc.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "test.py"), "/tmp/test.py")
+ @testcase(1145)
def test_python_exists(self):
(status, output) = self.target.run('which python')
self.assertEqual(status, 0, msg="Python binary not in PATH or not on target.")
@@ -24,10 +25,10 @@ class PythonTest(oeRuntimeTest):
self.assertEqual(status, 0, msg="Exit status was not 0. Output: %s" % output)
self.assertEqual(output, "the value of a is 0.01", msg="Incorrect output: %s" % output)
+ @testcase(1146)
def test_python_testfile(self):
(status, output) = self.target.run('ls /tmp/testfile.python')
self.assertEqual(status, 0, msg="Python test file generate failed.")
-
@classmethod
def tearDownClass(self):
diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py
index e978227139..e41668d261 100644
--- a/meta/lib/oeqa/runtime/smart.py
+++ b/meta/lib/oeqa/runtime/smart.py
@@ -64,6 +64,7 @@ class SmartRepoTest(SmartTest):
for i in self.repolist:
oeRuntimeTest.tc.target.run('smart channel -y --remove '+str(i))
+ @testcase(1143)
def test_smart_channel(self):
self.smart('channel', 1)
@@ -96,6 +97,7 @@ class SmartRepoTest(SmartTest):
self.smart('channel --disable rpmsys')
self.smart('channel --enable rpmsys')
+ @testcase(1144)
@skipUnlessPassed('test_smart_channel_add')
def test_smart_install(self):
self.smart('remove -y psplash-default')
diff --git a/meta/lib/oeqa/runtime/syslog.py b/meta/lib/oeqa/runtime/syslog.py
index 5d0f548c99..31cd6b0139 100644
--- a/meta/lib/oeqa/runtime/syslog.py
+++ b/meta/lib/oeqa/runtime/syslog.py
@@ -8,6 +8,7 @@ def setUpModule():
class SyslogTest(oeRuntimeTest):
+ @testcase(1148)
@skipUnlessPassed("test_ssh")
def test_syslog_help(self):
(status,output) = self.target.run('/sbin/syslogd --help')
@@ -22,11 +23,13 @@ class SyslogTest(oeRuntimeTest):
class SyslogTestConfig(oeRuntimeTest):
+ @testcase(1149)
@skipUnlessPassed("test_syslog_running")
def test_syslog_logger(self):
(status,output) = self.target.run('logger foobar && test -e /var/log/messages && grep foobar /var/log/messages || logread | grep foobar')
self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages. Output: %s " % output)
+ @testcase(1150)
@skipUnlessPassed("test_syslog_running")
def test_syslog_restart(self):
if "systemd" != oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", False):
diff --git a/meta/lib/oeqa/runtime/xorg.py b/meta/lib/oeqa/runtime/xorg.py
index a07031e5c8..12bcd371af 100644
--- a/meta/lib/oeqa/runtime/xorg.py
+++ b/meta/lib/oeqa/runtime/xorg.py
@@ -9,9 +9,8 @@ def setUpModule():
class XorgTest(oeRuntimeTest):
+ @testcase(1151)
@skipUnlessPassed('test_ssh')
def test_xorg_running(self):
(status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep -v xinit | grep [X]org')
self.assertEqual(status, 0, msg="Xorg does not appear to be running %s" % self.target.run(oeRuntimeTest.pscmd)[1])
-
-