diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-08 16:56:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-09 16:31:55 +0100 |
commit | c7592b01478def091b6787412390c61e7ce0a0cd (patch) | |
tree | 3c2f26480c6e16fae0ad65b032e3dc0fccfca71b /meta/lib/oeqa/runtime/cases | |
parent | c0dc72bad92e2e4dc0aedb48b969709f821baf73 (diff) | |
download | poky-c7592b01478def091b6787412390c61e7ce0a0cd.tar.gz |
oeqa: Drop OETestID
These IDs refer to testopia which we're no longer using. We would now use the test
names to definitively reference tests and the IDs can be dropped, along with their
supporting code.
(From OE-Core rev: 8e2d0575e4e7036b5f60e632f377a8ab2b96ead8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/cases')
28 files changed, 0 insertions, 85 deletions
diff --git a/meta/lib/oeqa/runtime/cases/buildcpio.py b/meta/lib/oeqa/runtime/cases/buildcpio.py index a61d1e0304..6a9a408ebe 100644 --- a/meta/lib/oeqa/runtime/cases/buildcpio.py +++ b/meta/lib/oeqa/runtime/cases/buildcpio.py | |||
@@ -1,6 +1,5 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.runtime.decorator.package import OEHasPackage | 3 | from oeqa.runtime.decorator.package import OEHasPackage |
5 | 4 | ||
6 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject | 5 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject |
@@ -18,7 +17,6 @@ class BuildCpioTest(OERuntimeTestCase): | |||
18 | def tearDownClass(cls): | 17 | def tearDownClass(cls): |
19 | cls.project.clean() | 18 | cls.project.clean() |
20 | 19 | ||
21 | @OETestID(205) | ||
22 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 20 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
23 | @OEHasPackage(['gcc']) | 21 | @OEHasPackage(['gcc']) |
24 | @OEHasPackage(['make']) | 22 | @OEHasPackage(['make']) |
diff --git a/meta/lib/oeqa/runtime/cases/buildgalculator.py b/meta/lib/oeqa/runtime/cases/buildgalculator.py index a0a0032083..4ec5fc707b 100644 --- a/meta/lib/oeqa/runtime/cases/buildgalculator.py +++ b/meta/lib/oeqa/runtime/cases/buildgalculator.py | |||
@@ -1,6 +1,5 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.runtime.decorator.package import OEHasPackage | 3 | from oeqa.runtime.decorator.package import OEHasPackage |
5 | 4 | ||
6 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject | 5 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject |
@@ -18,7 +17,6 @@ class GalculatorTest(OERuntimeTestCase): | |||
18 | def tearDownClass(cls): | 17 | def tearDownClass(cls): |
19 | cls.project.clean() | 18 | cls.project.clean() |
20 | 19 | ||
21 | @OETestID(1526) | ||
22 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 20 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
23 | @OEHasPackage(['gcc']) | 21 | @OEHasPackage(['gcc']) |
24 | @OEHasPackage(['make']) | 22 | @OEHasPackage(['make']) |
diff --git a/meta/lib/oeqa/runtime/cases/buildlzip.py b/meta/lib/oeqa/runtime/cases/buildlzip.py index 5b455a0790..b737ca601b 100644 --- a/meta/lib/oeqa/runtime/cases/buildlzip.py +++ b/meta/lib/oeqa/runtime/cases/buildlzip.py | |||
@@ -1,6 +1,5 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.runtime.decorator.package import OEHasPackage | 3 | from oeqa.runtime.decorator.package import OEHasPackage |
5 | 4 | ||
6 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject | 5 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject |
@@ -19,7 +18,6 @@ class BuildLzipTest(OERuntimeTestCase): | |||
19 | def tearDownClass(cls): | 18 | def tearDownClass(cls): |
20 | cls.project.clean() | 19 | cls.project.clean() |
21 | 20 | ||
22 | @OETestID(206) | ||
23 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 21 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
24 | @OEHasPackage(['gcc']) | 22 | @OEHasPackage(['gcc']) |
25 | @OEHasPackage(['make']) | 23 | @OEHasPackage(['make']) |
diff --git a/meta/lib/oeqa/runtime/cases/connman.py b/meta/lib/oeqa/runtime/cases/connman.py index 12456b4172..55a252ab01 100644 --- a/meta/lib/oeqa/runtime/cases/connman.py +++ b/meta/lib/oeqa/runtime/cases/connman.py | |||
@@ -1,6 +1,5 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.runtime.decorator.package import OEHasPackage | 3 | from oeqa.runtime.decorator.package import OEHasPackage |
5 | 4 | ||
6 | class ConnmanTest(OERuntimeTestCase): | 5 | class ConnmanTest(OERuntimeTestCase): |
@@ -12,7 +11,6 @@ class ConnmanTest(OERuntimeTestCase): | |||
12 | else: | 11 | else: |
13 | return "Unable to get status or logs for %s" % service | 12 | return "Unable to get status or logs for %s" % service |
14 | 13 | ||
15 | @OETestID(961) | ||
16 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 14 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
17 | @OEHasPackage(["connman"]) | 15 | @OEHasPackage(["connman"]) |
18 | def test_connmand_help(self): | 16 | def test_connmand_help(self): |
@@ -20,7 +18,6 @@ class ConnmanTest(OERuntimeTestCase): | |||
20 | msg = 'Failed to get connman help. Output: %s' % output | 18 | msg = 'Failed to get connman help. Output: %s' % output |
21 | self.assertEqual(status, 0, msg=msg) | 19 | self.assertEqual(status, 0, msg=msg) |
22 | 20 | ||
23 | @OETestID(221) | ||
24 | @OETestDepends(['connman.ConnmanTest.test_connmand_help']) | 21 | @OETestDepends(['connman.ConnmanTest.test_connmand_help']) |
25 | def test_connmand_running(self): | 22 | def test_connmand_running(self): |
26 | cmd = '%s | grep [c]onnmand' % self.tc.target_cmds['ps'] | 23 | cmd = '%s | grep [c]onnmand' % self.tc.target_cmds['ps'] |
diff --git a/meta/lib/oeqa/runtime/cases/date.py b/meta/lib/oeqa/runtime/cases/date.py index 0887b831f4..d31d1b2730 100644 --- a/meta/lib/oeqa/runtime/cases/date.py +++ b/meta/lib/oeqa/runtime/cases/date.py | |||
@@ -2,7 +2,6 @@ import re | |||
2 | 2 | ||
3 | from oeqa.runtime.case import OERuntimeTestCase | 3 | from oeqa.runtime.case import OERuntimeTestCase |
4 | from oeqa.core.decorator.depends import OETestDepends | 4 | from oeqa.core.decorator.depends import OETestDepends |
5 | from oeqa.core.decorator.oeid import OETestID | ||
6 | from oeqa.runtime.decorator.package import OEHasPackage | 5 | from oeqa.runtime.decorator.package import OEHasPackage |
7 | 6 | ||
8 | class DateTest(OERuntimeTestCase): | 7 | class DateTest(OERuntimeTestCase): |
@@ -17,7 +16,6 @@ class DateTest(OERuntimeTestCase): | |||
17 | self.logger.debug('Starting systemd-timesyncd daemon') | 16 | self.logger.debug('Starting systemd-timesyncd daemon') |
18 | self.target.run('systemctl start systemd-timesyncd') | 17 | self.target.run('systemctl start systemd-timesyncd') |
19 | 18 | ||
20 | @OETestID(211) | ||
21 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 19 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
22 | @OEHasPackage(['coreutils', 'busybox']) | 20 | @OEHasPackage(['coreutils', 'busybox']) |
23 | def test_date(self): | 21 | def test_date(self): |
diff --git a/meta/lib/oeqa/runtime/cases/df.py b/meta/lib/oeqa/runtime/cases/df.py index e0b6bb839d..2d1ca2a949 100644 --- a/meta/lib/oeqa/runtime/cases/df.py +++ b/meta/lib/oeqa/runtime/cases/df.py | |||
@@ -1,11 +1,9 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.runtime.decorator.package import OEHasPackage | 3 | from oeqa.runtime.decorator.package import OEHasPackage |
5 | 4 | ||
6 | class DfTest(OERuntimeTestCase): | 5 | class DfTest(OERuntimeTestCase): |
7 | 6 | ||
8 | @OETestID(234) | ||
9 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 7 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
10 | @OEHasPackage(['coreutils', 'busybox']) | 8 | @OEHasPackage(['coreutils', 'busybox']) |
11 | def test_df(self): | 9 | def test_df(self): |
diff --git a/meta/lib/oeqa/runtime/cases/dnf.py b/meta/lib/oeqa/runtime/cases/dnf.py index c1ed39d776..f235bdd58a 100644 --- a/meta/lib/oeqa/runtime/cases/dnf.py +++ b/meta/lib/oeqa/runtime/cases/dnf.py | |||
@@ -5,7 +5,6 @@ from oeqa.utils.httpserver import HTTPService | |||
5 | 5 | ||
6 | from oeqa.runtime.case import OERuntimeTestCase | 6 | from oeqa.runtime.case import OERuntimeTestCase |
7 | from oeqa.core.decorator.depends import OETestDepends | 7 | from oeqa.core.decorator.depends import OETestDepends |
8 | from oeqa.core.decorator.oeid import OETestID | ||
9 | from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature | 8 | from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature |
10 | from oeqa.runtime.decorator.package import OEHasPackage | 9 | from oeqa.runtime.decorator.package import OEHasPackage |
11 | 10 | ||
@@ -26,27 +25,22 @@ class DnfBasicTest(DnfTest): | |||
26 | 'RPM is not the primary package manager') | 25 | 'RPM is not the primary package manager') |
27 | @OEHasPackage(['dnf']) | 26 | @OEHasPackage(['dnf']) |
28 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 27 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
29 | @OETestID(1735) | ||
30 | def test_dnf_help(self): | 28 | def test_dnf_help(self): |
31 | self.dnf('--help') | 29 | self.dnf('--help') |
32 | 30 | ||
33 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) | 31 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) |
34 | @OETestID(1739) | ||
35 | def test_dnf_version(self): | 32 | def test_dnf_version(self): |
36 | self.dnf('--version') | 33 | self.dnf('--version') |
37 | 34 | ||
38 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) | 35 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) |
39 | @OETestID(1737) | ||
40 | def test_dnf_info(self): | 36 | def test_dnf_info(self): |
41 | self.dnf('info dnf') | 37 | self.dnf('info dnf') |
42 | 38 | ||
43 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) | 39 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) |
44 | @OETestID(1738) | ||
45 | def test_dnf_search(self): | 40 | def test_dnf_search(self): |
46 | self.dnf('search dnf') | 41 | self.dnf('search dnf') |
47 | 42 | ||
48 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) | 43 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) |
49 | @OETestID(1736) | ||
50 | def test_dnf_history(self): | 44 | def test_dnf_history(self): |
51 | self.dnf('history') | 45 | self.dnf('history') |
52 | 46 | ||
@@ -71,7 +65,6 @@ class DnfRepoTest(DnfTest): | |||
71 | return output | 65 | return output |
72 | 66 | ||
73 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) | 67 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) |
74 | @OETestID(1744) | ||
75 | def test_dnf_makecache(self): | 68 | def test_dnf_makecache(self): |
76 | self.dnf_with_repo('makecache') | 69 | self.dnf_with_repo('makecache') |
77 | 70 | ||
@@ -82,12 +75,10 @@ class DnfRepoTest(DnfTest): | |||
82 | # self.dnf_with_repo('repolist') | 75 | # self.dnf_with_repo('repolist') |
83 | 76 | ||
84 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) | 77 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) |
85 | @OETestID(1746) | ||
86 | def test_dnf_repoinfo(self): | 78 | def test_dnf_repoinfo(self): |
87 | self.dnf_with_repo('repoinfo') | 79 | self.dnf_with_repo('repoinfo') |
88 | 80 | ||
89 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) | 81 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) |
90 | @OETestID(1740) | ||
91 | def test_dnf_install(self): | 82 | def test_dnf_install(self): |
92 | output = self.dnf_with_repo('list run-postinsts-dev') | 83 | output = self.dnf_with_repo('list run-postinsts-dev') |
93 | if 'Installed Packages' in output: | 84 | if 'Installed Packages' in output: |
@@ -95,13 +86,11 @@ class DnfRepoTest(DnfTest): | |||
95 | self.dnf_with_repo('install -y run-postinsts-dev') | 86 | self.dnf_with_repo('install -y run-postinsts-dev') |
96 | 87 | ||
97 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_install']) | 88 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_install']) |
98 | @OETestID(1741) | ||
99 | def test_dnf_install_dependency(self): | 89 | def test_dnf_install_dependency(self): |
100 | self.dnf_with_repo('remove -y run-postinsts') | 90 | self.dnf_with_repo('remove -y run-postinsts') |
101 | self.dnf_with_repo('install -y run-postinsts-dev') | 91 | self.dnf_with_repo('install -y run-postinsts-dev') |
102 | 92 | ||
103 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_dependency']) | 93 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_dependency']) |
104 | @OETestID(1742) | ||
105 | def test_dnf_install_from_disk(self): | 94 | def test_dnf_install_from_disk(self): |
106 | self.dnf_with_repo('remove -y run-postinsts-dev') | 95 | self.dnf_with_repo('remove -y run-postinsts-dev') |
107 | self.dnf_with_repo('install -y --downloadonly run-postinsts-dev') | 96 | self.dnf_with_repo('install -y --downloadonly run-postinsts-dev') |
@@ -110,7 +99,6 @@ class DnfRepoTest(DnfTest): | |||
110 | self.dnf_with_repo('install -y %s' % output) | 99 | self.dnf_with_repo('install -y %s' % output) |
111 | 100 | ||
112 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_from_disk']) | 101 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_from_disk']) |
113 | @OETestID(1743) | ||
114 | def test_dnf_install_from_http(self): | 102 | def test_dnf_install_from_http(self): |
115 | output = subprocess.check_output('%s %s -name run-postinsts-dev*' % (bb.utils.which(os.getenv('PATH'), "find"), | 103 | output = subprocess.check_output('%s %s -name run-postinsts-dev*' % (bb.utils.which(os.getenv('PATH'), "find"), |
116 | os.path.join(self.tc.td['WORKDIR'], 'oe-testimage-repo')), shell=True).decode("utf-8") | 104 | os.path.join(self.tc.td['WORKDIR'], 'oe-testimage-repo')), shell=True).decode("utf-8") |
@@ -120,12 +108,10 @@ class DnfRepoTest(DnfTest): | |||
120 | self.dnf_with_repo('install -y %s' % url) | 108 | self.dnf_with_repo('install -y %s' % url) |
121 | 109 | ||
122 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_install']) | 110 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_install']) |
123 | @OETestID(1745) | ||
124 | def test_dnf_reinstall(self): | 111 | def test_dnf_reinstall(self): |
125 | self.dnf_with_repo('reinstall -y run-postinsts-dev') | 112 | self.dnf_with_repo('reinstall -y run-postinsts-dev') |
126 | 113 | ||
127 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) | 114 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) |
128 | @OETestID(1771) | ||
129 | def test_dnf_installroot(self): | 115 | def test_dnf_installroot(self): |
130 | rootpath = '/home/root/chroot/test' | 116 | rootpath = '/home/root/chroot/test' |
131 | #Copy necessary files to avoid errors with not yet installed tools on | 117 | #Copy necessary files to avoid errors with not yet installed tools on |
@@ -151,7 +137,6 @@ class DnfRepoTest(DnfTest): | |||
151 | self.assertEqual(0, status, output) | 137 | self.assertEqual(0, status, output) |
152 | 138 | ||
153 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) | 139 | @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) |
154 | @OETestID(1772) | ||
155 | def test_dnf_exclude(self): | 140 | def test_dnf_exclude(self): |
156 | excludepkg = 'curl-dev' | 141 | excludepkg = 'curl-dev' |
157 | self.dnf_with_repo('install -y curl*') | 142 | self.dnf_with_repo('install -y curl*') |
diff --git a/meta/lib/oeqa/runtime/cases/gcc.py b/meta/lib/oeqa/runtime/cases/gcc.py index 8265c59f23..e55eb560d0 100644 --- a/meta/lib/oeqa/runtime/cases/gcc.py +++ b/meta/lib/oeqa/runtime/cases/gcc.py | |||
@@ -2,7 +2,6 @@ import os | |||
2 | 2 | ||
3 | from oeqa.runtime.case import OERuntimeTestCase | 3 | from oeqa.runtime.case import OERuntimeTestCase |
4 | from oeqa.core.decorator.depends import OETestDepends | 4 | from oeqa.core.decorator.depends import OETestDepends |
5 | from oeqa.core.decorator.oeid import OETestID | ||
6 | from oeqa.runtime.decorator.package import OEHasPackage | 5 | from oeqa.runtime.decorator.package import OEHasPackage |
7 | 6 | ||
8 | class GccCompileTest(OERuntimeTestCase): | 7 | class GccCompileTest(OERuntimeTestCase): |
@@ -24,7 +23,6 @@ class GccCompileTest(OERuntimeTestCase): | |||
24 | files = '/tmp/test.c /tmp/test.o /tmp/test /tmp/testmakefile' | 23 | files = '/tmp/test.c /tmp/test.o /tmp/test /tmp/testmakefile' |
25 | cls.tc.target.run('rm %s' % files) | 24 | cls.tc.target.run('rm %s' % files) |
26 | 25 | ||
27 | @OETestID(203) | ||
28 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 26 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
29 | @OEHasPackage(['gcc']) | 27 | @OEHasPackage(['gcc']) |
30 | def test_gcc_compile(self): | 28 | def test_gcc_compile(self): |
@@ -36,7 +34,6 @@ class GccCompileTest(OERuntimeTestCase): | |||
36 | msg = 'running compiled file failed, output: %s' % output | 34 | msg = 'running compiled file failed, output: %s' % output |
37 | self.assertEqual(status, 0, msg=msg) | 35 | self.assertEqual(status, 0, msg=msg) |
38 | 36 | ||
39 | @OETestID(200) | ||
40 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 37 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
41 | @OEHasPackage(['g++']) | 38 | @OEHasPackage(['g++']) |
42 | def test_gpp_compile(self): | 39 | def test_gpp_compile(self): |
@@ -48,7 +45,6 @@ class GccCompileTest(OERuntimeTestCase): | |||
48 | msg = 'running compiled file failed, output: %s' % output | 45 | msg = 'running compiled file failed, output: %s' % output |
49 | self.assertEqual(status, 0, msg=msg) | 46 | self.assertEqual(status, 0, msg=msg) |
50 | 47 | ||
51 | @OETestID(1142) | ||
52 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 48 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
53 | @OEHasPackage(['g++']) | 49 | @OEHasPackage(['g++']) |
54 | def test_gpp2_compile(self): | 50 | def test_gpp2_compile(self): |
@@ -60,7 +56,6 @@ class GccCompileTest(OERuntimeTestCase): | |||
60 | msg = 'running compiled file failed, output: %s' % output | 56 | msg = 'running compiled file failed, output: %s' % output |
61 | self.assertEqual(status, 0, msg=msg) | 57 | self.assertEqual(status, 0, msg=msg) |
62 | 58 | ||
63 | @OETestID(204) | ||
64 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 59 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
65 | @OEHasPackage(['gcc']) | 60 | @OEHasPackage(['gcc']) |
66 | @OEHasPackage(['make']) | 61 | @OEHasPackage(['make']) |
diff --git a/meta/lib/oeqa/runtime/cases/kernelmodule.py b/meta/lib/oeqa/runtime/cases/kernelmodule.py index 27a2c35b71..36805be302 100644 --- a/meta/lib/oeqa/runtime/cases/kernelmodule.py +++ b/meta/lib/oeqa/runtime/cases/kernelmodule.py | |||
@@ -2,7 +2,6 @@ import os | |||
2 | 2 | ||
3 | from oeqa.runtime.case import OERuntimeTestCase | 3 | from oeqa.runtime.case import OERuntimeTestCase |
4 | from oeqa.core.decorator.depends import OETestDepends | 4 | from oeqa.core.decorator.depends import OETestDepends |
5 | from oeqa.core.decorator.oeid import OETestID | ||
6 | from oeqa.core.decorator.data import skipIfNotFeature | 5 | from oeqa.core.decorator.data import skipIfNotFeature |
7 | from oeqa.runtime.decorator.package import OEHasPackage | 6 | from oeqa.runtime.decorator.package import OEHasPackage |
8 | 7 | ||
@@ -23,7 +22,6 @@ class KernelModuleTest(OERuntimeTestCase): | |||
23 | files = '/tmp/Makefile /tmp/hellomod.c' | 22 | files = '/tmp/Makefile /tmp/hellomod.c' |
24 | cls.tc.target.run('rm %s' % files) | 23 | cls.tc.target.run('rm %s' % files) |
25 | 24 | ||
26 | @OETestID(1541) | ||
27 | @skipIfNotFeature('tools-sdk', | 25 | @skipIfNotFeature('tools-sdk', |
28 | 'Test requires tools-sdk to be in IMAGE_FEATURES') | 26 | 'Test requires tools-sdk to be in IMAGE_FEATURES') |
29 | @OETestDepends(['gcc.GccCompileTest.test_gcc_compile']) | 27 | @OETestDepends(['gcc.GccCompileTest.test_gcc_compile']) |
diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/lib/oeqa/runtime/cases/ksample.py index de2366a793..45b926bec8 100644 --- a/meta/lib/oeqa/runtime/cases/ksample.py +++ b/meta/lib/oeqa/runtime/cases/ksample.py | |||
@@ -3,7 +3,6 @@ import time | |||
3 | 3 | ||
4 | from oeqa.runtime.case import OERuntimeTestCase | 4 | from oeqa.runtime.case import OERuntimeTestCase |
5 | from oeqa.core.decorator.depends import OETestDepends | 5 | from oeqa.core.decorator.depends import OETestDepends |
6 | from oeqa.core.decorator.oeid import OETestID | ||
7 | from oeqa.core.decorator.data import skipIfNotFeature | 6 | from oeqa.core.decorator.data import skipIfNotFeature |
8 | 7 | ||
9 | # need some kernel fragments | 8 | # need some kernel fragments |
diff --git a/meta/lib/oeqa/runtime/cases/ldd.py b/meta/lib/oeqa/runtime/cases/ldd.py index 5bde1845d9..39c47f380b 100644 --- a/meta/lib/oeqa/runtime/cases/ldd.py +++ b/meta/lib/oeqa/runtime/cases/ldd.py | |||
@@ -1,12 +1,10 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.core.decorator.data import skipIfNotFeature | 3 | from oeqa.core.decorator.data import skipIfNotFeature |
5 | from oeqa.runtime.decorator.package import OEHasPackage | 4 | from oeqa.runtime.decorator.package import OEHasPackage |
6 | 5 | ||
7 | class LddTest(OERuntimeTestCase): | 6 | class LddTest(OERuntimeTestCase): |
8 | 7 | ||
9 | @OETestID(962) | ||
10 | @OEHasPackage(["ldd"]) | 8 | @OEHasPackage(["ldd"]) |
11 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 9 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
12 | def test_ldd(self): | 10 | def test_ldd(self): |
diff --git a/meta/lib/oeqa/runtime/cases/logrotate.py b/meta/lib/oeqa/runtime/cases/logrotate.py index d2666444e9..dc3b271445 100644 --- a/meta/lib/oeqa/runtime/cases/logrotate.py +++ b/meta/lib/oeqa/runtime/cases/logrotate.py | |||
@@ -3,7 +3,6 @@ | |||
3 | 3 | ||
4 | from oeqa.runtime.case import OERuntimeTestCase | 4 | from oeqa.runtime.case import OERuntimeTestCase |
5 | from oeqa.core.decorator.depends import OETestDepends | 5 | from oeqa.core.decorator.depends import OETestDepends |
6 | from oeqa.core.decorator.oeid import OETestID | ||
7 | from oeqa.runtime.decorator.package import OEHasPackage | 6 | from oeqa.runtime.decorator.package import OEHasPackage |
8 | 7 | ||
9 | class LogrotateTest(OERuntimeTestCase): | 8 | class LogrotateTest(OERuntimeTestCase): |
@@ -16,7 +15,6 @@ class LogrotateTest(OERuntimeTestCase): | |||
16 | def tearDownClass(cls): | 15 | def tearDownClass(cls): |
17 | cls.tc.target.run('mv -f $HOME/wtmp.oeqabak /etc/logrotate.d/wtmp && rm -rf $HOME/logrotate_dir') | 16 | cls.tc.target.run('mv -f $HOME/wtmp.oeqabak /etc/logrotate.d/wtmp && rm -rf $HOME/logrotate_dir') |
18 | 17 | ||
19 | @OETestID(1544) | ||
20 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 18 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
21 | @OEHasPackage(['logrotate']) | 19 | @OEHasPackage(['logrotate']) |
22 | def test_1_logrotate_setup(self): | 20 | def test_1_logrotate_setup(self): |
@@ -31,7 +29,6 @@ class LogrotateTest(OERuntimeTestCase): | |||
31 | ' %s and %s' % (status, output)) | 29 | ' %s and %s' % (status, output)) |
32 | self.assertEqual(status, 0, msg = msg) | 30 | self.assertEqual(status, 0, msg = msg) |
33 | 31 | ||
34 | @OETestID(1542) | ||
35 | @OETestDepends(['logrotate.LogrotateTest.test_1_logrotate_setup']) | 32 | @OETestDepends(['logrotate.LogrotateTest.test_1_logrotate_setup']) |
36 | def test_2_logrotate(self): | 33 | def test_2_logrotate(self): |
37 | status, output = self.target.run('logrotate -f /etc/logrotate.conf') | 34 | status, output = self.target.run('logrotate -f /etc/logrotate.conf') |
diff --git a/meta/lib/oeqa/runtime/cases/multilib.py b/meta/lib/oeqa/runtime/cases/multilib.py index 89020386b1..2cf87618f9 100644 --- a/meta/lib/oeqa/runtime/cases/multilib.py +++ b/meta/lib/oeqa/runtime/cases/multilib.py | |||
@@ -1,6 +1,5 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.core.decorator.data import skipIfNotInDataVar | 3 | from oeqa.core.decorator.data import skipIfNotInDataVar |
5 | from oeqa.runtime.decorator.package import OEHasPackage | 4 | from oeqa.runtime.decorator.package import OEHasPackage |
6 | 5 | ||
@@ -23,7 +22,6 @@ class MultilibTest(OERuntimeTestCase): | |||
23 | msg = "%s isn't %s (is %s)" % (binary, arch, theclass) | 22 | msg = "%s isn't %s (is %s)" % (binary, arch, theclass) |
24 | self.assertEqual(theclass, arch, msg=msg) | 23 | self.assertEqual(theclass, arch, msg=msg) |
25 | 24 | ||
26 | @OETestID(1593) | ||
27 | @skipIfNotInDataVar('MULTILIBS', 'multilib:lib32', | 25 | @skipIfNotInDataVar('MULTILIBS', 'multilib:lib32', |
28 | "This isn't a multilib:lib32 image") | 26 | "This isn't a multilib:lib32 image") |
29 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 27 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
@@ -36,7 +34,6 @@ class MultilibTest(OERuntimeTestCase): | |||
36 | self.archtest("/lib/libc.so.6", "ELF32") | 34 | self.archtest("/lib/libc.so.6", "ELF32") |
37 | self.archtest("/lib64/libc.so.6", "ELF64") | 35 | self.archtest("/lib64/libc.so.6", "ELF64") |
38 | 36 | ||
39 | @OETestID(279) | ||
40 | @OETestDepends(['multilib.MultilibTest.test_check_multilib_libc']) | 37 | @OETestDepends(['multilib.MultilibTest.test_check_multilib_libc']) |
41 | @OEHasPackage(['lib32-connman', '!connman']) | 38 | @OEHasPackage(['lib32-connman', '!connman']) |
42 | def test_file_connman(self): | 39 | def test_file_connman(self): |
diff --git a/meta/lib/oeqa/runtime/cases/oe_syslog.py b/meta/lib/oeqa/runtime/cases/oe_syslog.py index a92a1f2bcb..100d026391 100644 --- a/meta/lib/oeqa/runtime/cases/oe_syslog.py +++ b/meta/lib/oeqa/runtime/cases/oe_syslog.py | |||
@@ -1,12 +1,10 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.core.decorator.data import skipIfDataVar | 3 | from oeqa.core.decorator.data import skipIfDataVar |
5 | from oeqa.runtime.decorator.package import OEHasPackage | 4 | from oeqa.runtime.decorator.package import OEHasPackage |
6 | 5 | ||
7 | class SyslogTest(OERuntimeTestCase): | 6 | class SyslogTest(OERuntimeTestCase): |
8 | 7 | ||
9 | @OETestID(201) | ||
10 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 8 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
11 | @OEHasPackage(["busybox-syslog", "sysklogd", "rsyslog", "syslog-ng"]) | 9 | @OEHasPackage(["busybox-syslog", "sysklogd", "rsyslog", "syslog-ng"]) |
12 | def test_syslog_running(self): | 10 | def test_syslog_running(self): |
@@ -19,7 +17,6 @@ class SyslogTest(OERuntimeTestCase): | |||
19 | 17 | ||
20 | class SyslogTestConfig(OERuntimeTestCase): | 18 | class SyslogTestConfig(OERuntimeTestCase): |
21 | 19 | ||
22 | @OETestID(1149) | ||
23 | @OETestDepends(['oe_syslog.SyslogTest.test_syslog_running']) | 20 | @OETestDepends(['oe_syslog.SyslogTest.test_syslog_running']) |
24 | def test_syslog_logger(self): | 21 | def test_syslog_logger(self): |
25 | status, output = self.target.run('logger foobar') | 22 | status, output = self.target.run('logger foobar') |
@@ -36,7 +33,6 @@ class SyslogTestConfig(OERuntimeTestCase): | |||
36 | ' Output: %s ' % output) | 33 | ' Output: %s ' % output) |
37 | self.assertEqual(status, 0, msg=msg) | 34 | self.assertEqual(status, 0, msg=msg) |
38 | 35 | ||
39 | @OETestID(1150) | ||
40 | @OETestDepends(['oe_syslog.SyslogTest.test_syslog_running']) | 36 | @OETestDepends(['oe_syslog.SyslogTest.test_syslog_running']) |
41 | def test_syslog_restart(self): | 37 | def test_syslog_restart(self): |
42 | if "systemd" != self.tc.td.get("VIRTUAL-RUNTIME_init_manager", ""): | 38 | if "systemd" != self.tc.td.get("VIRTUAL-RUNTIME_init_manager", ""): |
@@ -45,7 +41,6 @@ class SyslogTestConfig(OERuntimeTestCase): | |||
45 | (_, _) = self.target.run('systemctl restart syslog.service') | 41 | (_, _) = self.target.run('systemctl restart syslog.service') |
46 | 42 | ||
47 | 43 | ||
48 | @OETestID(202) | ||
49 | @OETestDepends(['oe_syslog.SyslogTestConfig.test_syslog_logger']) | 44 | @OETestDepends(['oe_syslog.SyslogTestConfig.test_syslog_logger']) |
50 | @OEHasPackage(["busybox-syslog"]) | 45 | @OEHasPackage(["busybox-syslog"]) |
51 | @skipIfDataVar('VIRTUAL-RUNTIME_init_manager', 'systemd', | 46 | @skipIfDataVar('VIRTUAL-RUNTIME_init_manager', 'systemd', |
diff --git a/meta/lib/oeqa/runtime/cases/pam.py b/meta/lib/oeqa/runtime/cases/pam.py index 3654cdc946..49ae1f4881 100644 --- a/meta/lib/oeqa/runtime/cases/pam.py +++ b/meta/lib/oeqa/runtime/cases/pam.py | |||
@@ -3,12 +3,10 @@ | |||
3 | 3 | ||
4 | from oeqa.runtime.case import OERuntimeTestCase | 4 | from oeqa.runtime.case import OERuntimeTestCase |
5 | from oeqa.core.decorator.depends import OETestDepends | 5 | from oeqa.core.decorator.depends import OETestDepends |
6 | from oeqa.core.decorator.oeid import OETestID | ||
7 | from oeqa.core.decorator.data import skipIfNotFeature | 6 | from oeqa.core.decorator.data import skipIfNotFeature |
8 | 7 | ||
9 | class PamBasicTest(OERuntimeTestCase): | 8 | class PamBasicTest(OERuntimeTestCase): |
10 | 9 | ||
11 | @OETestID(1543) | ||
12 | @skipIfNotFeature('pam', 'Test requires pam to be in DISTRO_FEATURES') | 10 | @skipIfNotFeature('pam', 'Test requires pam to be in DISTRO_FEATURES') |
13 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 11 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
14 | def test_pam(self): | 12 | def test_pam(self): |
diff --git a/meta/lib/oeqa/runtime/cases/parselogs.py b/meta/lib/oeqa/runtime/cases/parselogs.py index bed4a022cd..41857f5373 100644 --- a/meta/lib/oeqa/runtime/cases/parselogs.py +++ b/meta/lib/oeqa/runtime/cases/parselogs.py | |||
@@ -4,7 +4,6 @@ from subprocess import check_output | |||
4 | from shutil import rmtree | 4 | from shutil import rmtree |
5 | from oeqa.runtime.case import OERuntimeTestCase | 5 | from oeqa.runtime.case import OERuntimeTestCase |
6 | from oeqa.core.decorator.depends import OETestDepends | 6 | from oeqa.core.decorator.depends import OETestDepends |
7 | from oeqa.core.decorator.oeid import OETestID | ||
8 | from oeqa.core.decorator.data import skipIfDataVar | 7 | from oeqa.core.decorator.data import skipIfDataVar |
9 | from oeqa.runtime.decorator.package import OEHasPackage | 8 | from oeqa.runtime.decorator.package import OEHasPackage |
10 | 9 | ||
@@ -351,7 +350,6 @@ class ParseLogsTest(OERuntimeTestCase): | |||
351 | def write_dmesg(self): | 350 | def write_dmesg(self): |
352 | (status, dmesg) = self.target.run('dmesg > /tmp/dmesg_output.log') | 351 | (status, dmesg) = self.target.run('dmesg > /tmp/dmesg_output.log') |
353 | 352 | ||
354 | @OETestID(1059) | ||
355 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 353 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
356 | def test_parselogs(self): | 354 | def test_parselogs(self): |
357 | self.write_dmesg() | 355 | self.write_dmesg() |
diff --git a/meta/lib/oeqa/runtime/cases/perl.py b/meta/lib/oeqa/runtime/cases/perl.py index be3287f226..de1d8d090c 100644 --- a/meta/lib/oeqa/runtime/cases/perl.py +++ b/meta/lib/oeqa/runtime/cases/perl.py | |||
@@ -2,11 +2,9 @@ import os | |||
2 | 2 | ||
3 | from oeqa.runtime.case import OERuntimeTestCase | 3 | from oeqa.runtime.case import OERuntimeTestCase |
4 | from oeqa.core.decorator.depends import OETestDepends | 4 | from oeqa.core.decorator.depends import OETestDepends |
5 | from oeqa.core.decorator.oeid import OETestID | ||
6 | from oeqa.runtime.decorator.package import OEHasPackage | 5 | from oeqa.runtime.decorator.package import OEHasPackage |
7 | 6 | ||
8 | class PerlTest(OERuntimeTestCase): | 7 | class PerlTest(OERuntimeTestCase): |
9 | @OETestID(208) | ||
10 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 8 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
11 | @OEHasPackage(['perl']) | 9 | @OEHasPackage(['perl']) |
12 | def test_perl_works(self): | 10 | def test_perl_works(self): |
diff --git a/meta/lib/oeqa/runtime/cases/ping.py b/meta/lib/oeqa/runtime/cases/ping.py index 02f580abee..c32f2159a4 100644 --- a/meta/lib/oeqa/runtime/cases/ping.py +++ b/meta/lib/oeqa/runtime/cases/ping.py | |||
@@ -1,13 +1,11 @@ | |||
1 | from subprocess import Popen, PIPE | 1 | from subprocess import Popen, PIPE |
2 | 2 | ||
3 | from oeqa.runtime.case import OERuntimeTestCase | 3 | from oeqa.runtime.case import OERuntimeTestCase |
4 | from oeqa.core.decorator.oeid import OETestID | ||
5 | from oeqa.core.decorator.oetimeout import OETimeout | 4 | from oeqa.core.decorator.oetimeout import OETimeout |
6 | 5 | ||
7 | class PingTest(OERuntimeTestCase): | 6 | class PingTest(OERuntimeTestCase): |
8 | 7 | ||
9 | @OETimeout(30) | 8 | @OETimeout(30) |
10 | @OETestID(964) | ||
11 | def test_ping(self): | 9 | def test_ping(self): |
12 | output = '' | 10 | output = '' |
13 | count = 0 | 11 | count = 0 |
diff --git a/meta/lib/oeqa/runtime/cases/ptest.py b/meta/lib/oeqa/runtime/cases/ptest.py index 2a28ca59a8..e210099d48 100644 --- a/meta/lib/oeqa/runtime/cases/ptest.py +++ b/meta/lib/oeqa/runtime/cases/ptest.py | |||
@@ -4,14 +4,12 @@ import datetime | |||
4 | 4 | ||
5 | from oeqa.runtime.case import OERuntimeTestCase | 5 | from oeqa.runtime.case import OERuntimeTestCase |
6 | from oeqa.core.decorator.depends import OETestDepends | 6 | from oeqa.core.decorator.depends import OETestDepends |
7 | from oeqa.core.decorator.oeid import OETestID | ||
8 | from oeqa.core.decorator.data import skipIfNotFeature | 7 | from oeqa.core.decorator.data import skipIfNotFeature |
9 | from oeqa.runtime.decorator.package import OEHasPackage | 8 | from oeqa.runtime.decorator.package import OEHasPackage |
10 | from oeqa.utils.logparser import PtestParser | 9 | from oeqa.utils.logparser import PtestParser |
11 | 10 | ||
12 | class PtestRunnerTest(OERuntimeTestCase): | 11 | class PtestRunnerTest(OERuntimeTestCase): |
13 | 12 | ||
14 | @OETestID(1600) | ||
15 | @skipIfNotFeature('ptest', 'Test requires ptest to be in DISTRO_FEATURES') | 13 | @skipIfNotFeature('ptest', 'Test requires ptest to be in DISTRO_FEATURES') |
16 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 14 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
17 | @OEHasPackage(['ptest-runner']) | 15 | @OEHasPackage(['ptest-runner']) |
diff --git a/meta/lib/oeqa/runtime/cases/python.py b/meta/lib/oeqa/runtime/cases/python.py index 66ab4d25f3..f03e33daa1 100644 --- a/meta/lib/oeqa/runtime/cases/python.py +++ b/meta/lib/oeqa/runtime/cases/python.py | |||
@@ -1,10 +1,8 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.runtime.decorator.package import OEHasPackage | 3 | from oeqa.runtime.decorator.package import OEHasPackage |
5 | 4 | ||
6 | class PythonTest(OERuntimeTestCase): | 5 | class PythonTest(OERuntimeTestCase): |
7 | @OETestID(965) | ||
8 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 6 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
9 | @OEHasPackage(['python3-core']) | 7 | @OEHasPackage(['python3-core']) |
10 | def test_python3(self): | 8 | def test_python3(self): |
diff --git a/meta/lib/oeqa/runtime/cases/rpm.py b/meta/lib/oeqa/runtime/cases/rpm.py index de92157c52..76176e632e 100644 --- a/meta/lib/oeqa/runtime/cases/rpm.py +++ b/meta/lib/oeqa/runtime/cases/rpm.py | |||
@@ -3,14 +3,12 @@ import fnmatch | |||
3 | 3 | ||
4 | from oeqa.runtime.case import OERuntimeTestCase | 4 | from oeqa.runtime.case import OERuntimeTestCase |
5 | from oeqa.core.decorator.depends import OETestDepends | 5 | from oeqa.core.decorator.depends import OETestDepends |
6 | from oeqa.core.decorator.oeid import OETestID | ||
7 | from oeqa.core.decorator.data import skipIfDataVar | 6 | from oeqa.core.decorator.data import skipIfDataVar |
8 | from oeqa.runtime.decorator.package import OEHasPackage | 7 | from oeqa.runtime.decorator.package import OEHasPackage |
9 | from oeqa.core.utils.path import findFile | 8 | from oeqa.core.utils.path import findFile |
10 | 9 | ||
11 | class RpmBasicTest(OERuntimeTestCase): | 10 | class RpmBasicTest(OERuntimeTestCase): |
12 | 11 | ||
13 | @OETestID(960) | ||
14 | @OEHasPackage(['rpm']) | 12 | @OEHasPackage(['rpm']) |
15 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 13 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
16 | def test_rpm_help(self): | 14 | def test_rpm_help(self): |
@@ -18,7 +16,6 @@ class RpmBasicTest(OERuntimeTestCase): | |||
18 | msg = 'status and output: %s and %s' % (status, output) | 16 | msg = 'status and output: %s and %s' % (status, output) |
19 | self.assertEqual(status, 0, msg=msg) | 17 | self.assertEqual(status, 0, msg=msg) |
20 | 18 | ||
21 | @OETestID(191) | ||
22 | @OETestDepends(['rpm.RpmBasicTest.test_rpm_help']) | 19 | @OETestDepends(['rpm.RpmBasicTest.test_rpm_help']) |
23 | def test_rpm_query(self): | 20 | def test_rpm_query(self): |
24 | status, output = self.target.run('ls /var/lib/rpm/') | 21 | status, output = self.target.run('ls /var/lib/rpm/') |
@@ -43,7 +40,6 @@ class RpmInstallRemoveTest(OERuntimeTestCase): | |||
43 | cls.test_file = os.path.join(rpmdir, f) | 40 | cls.test_file = os.path.join(rpmdir, f) |
44 | cls.dst = '/tmp/base-passwd-doc.rpm' | 41 | cls.dst = '/tmp/base-passwd-doc.rpm' |
45 | 42 | ||
46 | @OETestID(192) | ||
47 | @OETestDepends(['rpm.RpmBasicTest.test_rpm_query']) | 43 | @OETestDepends(['rpm.RpmBasicTest.test_rpm_query']) |
48 | def test_rpm_install(self): | 44 | def test_rpm_install(self): |
49 | self.tc.target.copyTo(self.test_file, self.dst) | 45 | self.tc.target.copyTo(self.test_file, self.dst) |
@@ -52,14 +48,12 @@ class RpmInstallRemoveTest(OERuntimeTestCase): | |||
52 | self.assertEqual(status, 0, msg=msg) | 48 | self.assertEqual(status, 0, msg=msg) |
53 | self.tc.target.run('rm -f %s' % self.dst) | 49 | self.tc.target.run('rm -f %s' % self.dst) |
54 | 50 | ||
55 | @OETestID(194) | ||
56 | @OETestDepends(['rpm.RpmInstallRemoveTest.test_rpm_install']) | 51 | @OETestDepends(['rpm.RpmInstallRemoveTest.test_rpm_install']) |
57 | def test_rpm_remove(self): | 52 | def test_rpm_remove(self): |
58 | status,output = self.target.run('rpm -e base-passwd-doc') | 53 | status,output = self.target.run('rpm -e base-passwd-doc') |
59 | msg = 'Failed to remove base-passwd-doc package: %s' % output | 54 | msg = 'Failed to remove base-passwd-doc package: %s' % output |
60 | self.assertEqual(status, 0, msg=msg) | 55 | self.assertEqual(status, 0, msg=msg) |
61 | 56 | ||
62 | @OETestID(1096) | ||
63 | @OETestDepends(['rpm.RpmBasicTest.test_rpm_query']) | 57 | @OETestDepends(['rpm.RpmBasicTest.test_rpm_query']) |
64 | def test_rpm_query_nonroot(self): | 58 | def test_rpm_query_nonroot(self): |
65 | 59 | ||
@@ -92,7 +86,6 @@ class RpmInstallRemoveTest(OERuntimeTestCase): | |||
92 | finally: | 86 | finally: |
93 | unset_up_test_user(tuser) | 87 | unset_up_test_user(tuser) |
94 | 88 | ||
95 | @OETestID(195) | ||
96 | @OETestDepends(['rpm.RpmInstallRemoveTest.test_rpm_remove']) | 89 | @OETestDepends(['rpm.RpmInstallRemoveTest.test_rpm_remove']) |
97 | def test_check_rpm_install_removal_log_file_size(self): | 90 | def test_check_rpm_install_removal_log_file_size(self): |
98 | """ | 91 | """ |
diff --git a/meta/lib/oeqa/runtime/cases/scp.py b/meta/lib/oeqa/runtime/cases/scp.py index 8f895da95a..43dd7167fa 100644 --- a/meta/lib/oeqa/runtime/cases/scp.py +++ b/meta/lib/oeqa/runtime/cases/scp.py | |||
@@ -3,7 +3,6 @@ from tempfile import mkstemp | |||
3 | 3 | ||
4 | from oeqa.runtime.case import OERuntimeTestCase | 4 | from oeqa.runtime.case import OERuntimeTestCase |
5 | from oeqa.core.decorator.depends import OETestDepends | 5 | from oeqa.core.decorator.depends import OETestDepends |
6 | from oeqa.core.decorator.oeid import OETestID | ||
7 | from oeqa.runtime.decorator.package import OEHasPackage | 6 | from oeqa.runtime.decorator.package import OEHasPackage |
8 | 7 | ||
9 | class ScpTest(OERuntimeTestCase): | 8 | class ScpTest(OERuntimeTestCase): |
@@ -19,7 +18,6 @@ class ScpTest(OERuntimeTestCase): | |||
19 | def tearDownClass(cls): | 18 | def tearDownClass(cls): |
20 | os.remove(cls.tmp_path) | 19 | os.remove(cls.tmp_path) |
21 | 20 | ||
22 | @OETestID(220) | ||
23 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 21 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
24 | @OEHasPackage(['openssh-scp', 'dropbear']) | 22 | @OEHasPackage(['openssh-scp', 'dropbear']) |
25 | def test_scp_file(self): | 23 | def test_scp_file(self): |
diff --git a/meta/lib/oeqa/runtime/cases/skeletoninit.py b/meta/lib/oeqa/runtime/cases/skeletoninit.py index 4fdcf033a3..4fad794720 100644 --- a/meta/lib/oeqa/runtime/cases/skeletoninit.py +++ b/meta/lib/oeqa/runtime/cases/skeletoninit.py | |||
@@ -3,7 +3,6 @@ | |||
3 | # IMAGE_INSTALL_append = " service" in local.conf | 3 | # IMAGE_INSTALL_append = " service" in local.conf |
4 | from oeqa.runtime.case import OERuntimeTestCase | 4 | from oeqa.runtime.case import OERuntimeTestCase |
5 | from oeqa.core.decorator.depends import OETestDepends | 5 | from oeqa.core.decorator.depends import OETestDepends |
6 | from oeqa.core.decorator.oeid import OETestID | ||
7 | from oeqa.core.decorator.data import skipIfDataVar | 6 | from oeqa.core.decorator.data import skipIfDataVar |
8 | from oeqa.runtime.decorator.package import OEHasPackage | 7 | from oeqa.runtime.decorator.package import OEHasPackage |
9 | 8 | ||
@@ -22,7 +21,6 @@ class SkeletonBasicTest(OERuntimeTestCase): | |||
22 | msg = 'skeleton-test not found. Output:\n%s' % output | 21 | msg = 'skeleton-test not found. Output:\n%s' % output |
23 | self.assertEqual(status, 0, msg=msg) | 22 | self.assertEqual(status, 0, msg=msg) |
24 | 23 | ||
25 | @OETestID(284) | ||
26 | @OETestDepends(['skeletoninit.SkeletonBasicTest.test_skeleton_availability']) | 24 | @OETestDepends(['skeletoninit.SkeletonBasicTest.test_skeleton_availability']) |
27 | def test_skeleton_script(self): | 25 | def test_skeleton_script(self): |
28 | output1 = self.target.run("/etc/init.d/skeleton start")[1] | 26 | output1 = self.target.run("/etc/init.d/skeleton start")[1] |
diff --git a/meta/lib/oeqa/runtime/cases/ssh.py b/meta/lib/oeqa/runtime/cases/ssh.py index 0b1ea7bcc2..26ced88145 100644 --- a/meta/lib/oeqa/runtime/cases/ssh.py +++ b/meta/lib/oeqa/runtime/cases/ssh.py | |||
@@ -1,11 +1,9 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.runtime.decorator.package import OEHasPackage | 3 | from oeqa.runtime.decorator.package import OEHasPackage |
5 | 4 | ||
6 | class SSHTest(OERuntimeTestCase): | 5 | class SSHTest(OERuntimeTestCase): |
7 | 6 | ||
8 | @OETestID(224) | ||
9 | @OETestDepends(['ping.PingTest.test_ping']) | 7 | @OETestDepends(['ping.PingTest.test_ping']) |
10 | @OEHasPackage(['dropbear', 'openssh-sshd']) | 8 | @OEHasPackage(['dropbear', 'openssh-sshd']) |
11 | def test_ssh(self): | 9 | def test_ssh(self): |
diff --git a/meta/lib/oeqa/runtime/cases/stap.py b/meta/lib/oeqa/runtime/cases/stap.py index c492caffd6..c149e56f7d 100644 --- a/meta/lib/oeqa/runtime/cases/stap.py +++ b/meta/lib/oeqa/runtime/cases/stap.py | |||
@@ -2,7 +2,6 @@ import os | |||
2 | 2 | ||
3 | from oeqa.runtime.case import OERuntimeTestCase | 3 | from oeqa.runtime.case import OERuntimeTestCase |
4 | from oeqa.core.decorator.depends import OETestDepends | 4 | from oeqa.core.decorator.depends import OETestDepends |
5 | from oeqa.core.decorator.oeid import OETestID | ||
6 | from oeqa.core.decorator.data import skipIfNotFeature | 5 | from oeqa.core.decorator.data import skipIfNotFeature |
7 | from oeqa.runtime.decorator.package import OEHasPackage | 6 | from oeqa.runtime.decorator.package import OEHasPackage |
8 | 7 | ||
@@ -19,7 +18,6 @@ class StapTest(OERuntimeTestCase): | |||
19 | files = '/tmp/hello.stp' | 18 | files = '/tmp/hello.stp' |
20 | cls.tc.target.run('rm %s' % files) | 19 | cls.tc.target.run('rm %s' % files) |
21 | 20 | ||
22 | @OETestID(1652) | ||
23 | @skipIfNotFeature('tools-profile', | 21 | @skipIfNotFeature('tools-profile', |
24 | 'Test requires tools-profile to be in IMAGE_FEATURES') | 22 | 'Test requires tools-profile to be in IMAGE_FEATURES') |
25 | @OETestDepends(['kernelmodule.KernelModuleTest.test_kernel_module']) | 23 | @OETestDepends(['kernelmodule.KernelModuleTest.test_kernel_module']) |
diff --git a/meta/lib/oeqa/runtime/cases/systemd.py b/meta/lib/oeqa/runtime/cases/systemd.py index 460b8fc3a1..db9da465ee 100644 --- a/meta/lib/oeqa/runtime/cases/systemd.py +++ b/meta/lib/oeqa/runtime/cases/systemd.py | |||
@@ -3,7 +3,6 @@ import time | |||
3 | 3 | ||
4 | from oeqa.runtime.case import OERuntimeTestCase | 4 | from oeqa.runtime.case import OERuntimeTestCase |
5 | from oeqa.core.decorator.depends import OETestDepends | 5 | from oeqa.core.decorator.depends import OETestDepends |
6 | from oeqa.core.decorator.oeid import OETestID | ||
7 | from oeqa.core.decorator.data import skipIfDataVar, skipIfNotDataVar | 6 | from oeqa.core.decorator.data import skipIfDataVar, skipIfNotDataVar |
8 | from oeqa.runtime.decorator.package import OEHasPackage | 7 | from oeqa.runtime.decorator.package import OEHasPackage |
9 | from oeqa.core.decorator.data import skipIfNotFeature | 8 | from oeqa.core.decorator.data import skipIfNotFeature |
@@ -78,12 +77,10 @@ class SystemdBasicTests(SystemdTest): | |||
78 | def test_systemd_basic(self): | 77 | def test_systemd_basic(self): |
79 | self.systemctl('--version') | 78 | self.systemctl('--version') |
80 | 79 | ||
81 | @OETestID(551) | ||
82 | @OETestDepends(['systemd.SystemdBasicTests.test_systemd_basic']) | 80 | @OETestDepends(['systemd.SystemdBasicTests.test_systemd_basic']) |
83 | def test_systemd_list(self): | 81 | def test_systemd_list(self): |
84 | self.systemctl('list-unit-files') | 82 | self.systemctl('list-unit-files') |
85 | 83 | ||
86 | @OETestID(550) | ||
87 | @OETestDepends(['systemd.SystemdBasicTests.test_systemd_basic']) | 84 | @OETestDepends(['systemd.SystemdBasicTests.test_systemd_basic']) |
88 | def test_systemd_failed(self): | 85 | def test_systemd_failed(self): |
89 | settled, output = self.settle() | 86 | settled, output = self.settle() |
@@ -104,7 +101,6 @@ class SystemdServiceTests(SystemdTest): | |||
104 | def test_systemd_status(self): | 101 | def test_systemd_status(self): |
105 | self.systemctl('status --full', 'avahi-daemon.service') | 102 | self.systemctl('status --full', 'avahi-daemon.service') |
106 | 103 | ||
107 | @OETestID(695) | ||
108 | @OETestDepends(['systemd.SystemdServiceTests.test_systemd_status']) | 104 | @OETestDepends(['systemd.SystemdServiceTests.test_systemd_status']) |
109 | def test_systemd_stop_start(self): | 105 | def test_systemd_stop_start(self): |
110 | self.systemctl('stop', 'avahi-daemon.service') | 106 | self.systemctl('stop', 'avahi-daemon.service') |
@@ -113,7 +109,6 @@ class SystemdServiceTests(SystemdTest): | |||
113 | self.systemctl('start','avahi-daemon.service') | 109 | self.systemctl('start','avahi-daemon.service') |
114 | self.systemctl('is-active', 'avahi-daemon.service', verbose=True) | 110 | self.systemctl('is-active', 'avahi-daemon.service', verbose=True) |
115 | 111 | ||
116 | @OETestID(696) | ||
117 | @OETestDepends(['systemd.SystemdServiceTests.test_systemd_status']) | 112 | @OETestDepends(['systemd.SystemdServiceTests.test_systemd_status']) |
118 | def test_systemd_disable_enable(self): | 113 | def test_systemd_disable_enable(self): |
119 | self.systemctl('disable', 'avahi-daemon.service') | 114 | self.systemctl('disable', 'avahi-daemon.service') |
diff --git a/meta/lib/oeqa/runtime/cases/x32lib.py b/meta/lib/oeqa/runtime/cases/x32lib.py index 8da0154e7b..809dfdf9f4 100644 --- a/meta/lib/oeqa/runtime/cases/x32lib.py +++ b/meta/lib/oeqa/runtime/cases/x32lib.py | |||
@@ -1,13 +1,11 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.core.decorator.data import skipIfNotInDataVar | 3 | from oeqa.core.decorator.data import skipIfNotInDataVar |
5 | 4 | ||
6 | class X32libTest(OERuntimeTestCase): | 5 | class X32libTest(OERuntimeTestCase): |
7 | 6 | ||
8 | @skipIfNotInDataVar('DEFAULTTUNE', 'x86-64-x32', | 7 | @skipIfNotInDataVar('DEFAULTTUNE', 'x86-64-x32', |
9 | 'DEFAULTTUNE is not set to x86-64-x32') | 8 | 'DEFAULTTUNE is not set to x86-64-x32') |
10 | @OETestID(281) | ||
11 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 9 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
12 | def test_x32_file(self): | 10 | def test_x32_file(self): |
13 | cmd = 'readelf -h /bin/ls | grep Class | grep ELF32' | 11 | cmd = 'readelf -h /bin/ls | grep Class | grep ELF32' |
diff --git a/meta/lib/oeqa/runtime/cases/xorg.py b/meta/lib/oeqa/runtime/cases/xorg.py index 82521c69ac..421ae56560 100644 --- a/meta/lib/oeqa/runtime/cases/xorg.py +++ b/meta/lib/oeqa/runtime/cases/xorg.py | |||
@@ -1,12 +1,10 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.core.decorator.data import skipIfNotFeature | 3 | from oeqa.core.decorator.data import skipIfNotFeature |
5 | from oeqa.runtime.decorator.package import OEHasPackage | 4 | from oeqa.runtime.decorator.package import OEHasPackage |
6 | 5 | ||
7 | class XorgTest(OERuntimeTestCase): | 6 | class XorgTest(OERuntimeTestCase): |
8 | 7 | ||
9 | @OETestID(1151) | ||
10 | @skipIfNotFeature('x11-base', | 8 | @skipIfNotFeature('x11-base', |
11 | 'Test requires x11 to be in IMAGE_FEATURES') | 9 | 'Test requires x11 to be in IMAGE_FEATURES') |
12 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 10 | @OETestDepends(['ssh.SSHTest.test_ssh']) |