summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2017-01-31 15:05:51 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-31 23:27:47 +0000
commit5582b67f6d1d53290f485afe8d459380d90f116e (patch)
tree1fd4e64cf204ea22a7d4da67bd4e923f89b366d4 /meta/lib/oeqa
parentcb3d884e0a7ebbac1e5f873123b4d3491ce1a044 (diff)
downloadpoky-5582b67f6d1d53290f485afe8d459380d90f116e.tar.gz
runtime/cases: Fix case numbers, missing cases and unused classes
gcc: Removed unneded lines. multilib: fixed case number. syslog: added a missing test. [YOCTO #10964] (From OE-Core rev: 3f1c57191802309e58a7b3b42e8ec812e83bd8ed) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/runtime/cases/gcc.py3
-rw-r--r--meta/lib/oeqa/runtime/cases/multilib.py2
-rw-r--r--meta/lib/oeqa/runtime/cases/syslog.py9
3 files changed, 10 insertions, 4 deletions
diff --git a/meta/lib/oeqa/runtime/cases/gcc.py b/meta/lib/oeqa/runtime/cases/gcc.py
index 064fa49af1..911083156f 100644
--- a/meta/lib/oeqa/runtime/cases/gcc.py
+++ b/meta/lib/oeqa/runtime/cases/gcc.py
@@ -11,15 +11,12 @@ class GccCompileTest(OERuntimeTestCase):
11 def setUpClass(cls): 11 def setUpClass(cls):
12 dst = '/tmp/' 12 dst = '/tmp/'
13 src = os.path.join(cls.tc.files_dir, 'test.c') 13 src = os.path.join(cls.tc.files_dir, 'test.c')
14 #dst = '/tmp/test.c'
15 cls.tc.target.copyTo(src, dst) 14 cls.tc.target.copyTo(src, dst)
16 15
17 src = os.path.join(cls.tc.runtime_files_dir, 'testmakefile') 16 src = os.path.join(cls.tc.runtime_files_dir, 'testmakefile')
18 #dst = '/tmp/testmakefile'
19 cls.tc.target.copyTo(src, dst) 17 cls.tc.target.copyTo(src, dst)
20 18
21 src = os.path.join(cls.tc.files_dir, 'test.cpp') 19 src = os.path.join(cls.tc.files_dir, 'test.cpp')
22 #dst = '/tmp/test.cpp'
23 cls.tc.target.copyTo(src, dst) 20 cls.tc.target.copyTo(src, dst)
24 21
25 @classmethod 22 @classmethod
diff --git a/meta/lib/oeqa/runtime/cases/multilib.py b/meta/lib/oeqa/runtime/cases/multilib.py
index 8f6d2b24a6..8c167f1008 100644
--- a/meta/lib/oeqa/runtime/cases/multilib.py
+++ b/meta/lib/oeqa/runtime/cases/multilib.py
@@ -23,9 +23,9 @@ class MultilibTest(OERuntimeTestCase):
23 msg = "%s isn't %s (is %s)" % (binary, arch, theclass) 23 msg = "%s isn't %s (is %s)" % (binary, arch, theclass)
24 self.assertEqual(theclass, arch, msg=msg) 24 self.assertEqual(theclass, arch, msg=msg)
25 25
26 @OETestID(1593)
26 @skipIfNotInDataVar('MULTILIBS', 'multilib:lib32', 27 @skipIfNotInDataVar('MULTILIBS', 'multilib:lib32',
27 "This isn't a multilib:lib32 image") 28 "This isn't a multilib:lib32 image")
28 @OETestID(201)
29 @OETestDepends(['ssh.SSHTest.test_ssh']) 29 @OETestDepends(['ssh.SSHTest.test_ssh'])
30 def test_check_multilib_libc(self): 30 def test_check_multilib_libc(self):
31 """ 31 """
diff --git a/meta/lib/oeqa/runtime/cases/syslog.py b/meta/lib/oeqa/runtime/cases/syslog.py
index 1016e67e93..537c519482 100644
--- a/meta/lib/oeqa/runtime/cases/syslog.py
+++ b/meta/lib/oeqa/runtime/cases/syslog.py
@@ -34,6 +34,15 @@ class SyslogTestConfig(OERuntimeTestCase):
34 ' Output: %s ' % output) 34 ' Output: %s ' % output)
35 self.assertEqual(status, 0, msg=msg) 35 self.assertEqual(status, 0, msg=msg)
36 36
37 @OETestID(1150)
38 @OETestDepends(['syslog.SyslogTest.test_syslog_running'])
39 def test_syslog_restart(self):
40 if "systemd" != self.tc.td.get("VIRTUAL-RUNTIME_init_manager", ""):
41 (_, _) = self.target.run('/etc/init.d/syslog restart')
42 else:
43 (_, _) = self.target.run('systemctl restart syslog.service')
44
45
37 @OETestID(202) 46 @OETestID(202)
38 @OETestDepends(['syslog.SyslogTestConfig.test_syslog_logger']) 47 @OETestDepends(['syslog.SyslogTestConfig.test_syslog_logger'])
39 @OEHasPackage(["!sysklogd", "busybox"]) 48 @OEHasPackage(["!sysklogd", "busybox"])