mirror of
https://git.yoctoproject.org/poky
synced 2026-07-16 15:57:04 +00:00
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: 551153b0bd1ebbc05582f6014e3d88b9ce4a46d0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> [Backported to keep in-sync with future qa changes] Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
from oeqa.runtime.utils.targetbuildproject import TargetBuildProject
|
||||
@@ -18,7 +17,6 @@ class BuildCpioTest(OERuntimeTestCase):
|
||||
def tearDownClass(cls):
|
||||
cls.project.clean()
|
||||
|
||||
@OETestID(205)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['gcc'])
|
||||
@OEHasPackage(['make'])
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
from oeqa.runtime.utils.targetbuildproject import TargetBuildProject
|
||||
@@ -18,7 +17,6 @@ class GalculatorTest(OERuntimeTestCase):
|
||||
def tearDownClass(cls):
|
||||
cls.project.clean()
|
||||
|
||||
@OETestID(1526)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['gcc'])
|
||||
@OEHasPackage(['make'])
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
from oeqa.runtime.utils.targetbuildproject import TargetBuildProject
|
||||
@@ -19,7 +18,6 @@ class BuildLzipTest(OERuntimeTestCase):
|
||||
def tearDownClass(cls):
|
||||
cls.project.clean()
|
||||
|
||||
@OETestID(206)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['gcc'])
|
||||
@OEHasPackage(['make'])
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class ConnmanTest(OERuntimeTestCase):
|
||||
@@ -12,7 +11,6 @@ class ConnmanTest(OERuntimeTestCase):
|
||||
else:
|
||||
return "Unable to get status or logs for %s" % service
|
||||
|
||||
@OETestID(961)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(["connman"])
|
||||
def test_connmand_help(self):
|
||||
@@ -20,7 +18,6 @@ class ConnmanTest(OERuntimeTestCase):
|
||||
msg = 'Failed to get connman help. Output: %s' % output
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
@OETestID(221)
|
||||
@OETestDepends(['connman.ConnmanTest.test_connmand_help'])
|
||||
def test_connmand_running(self):
|
||||
cmd = '%s | grep [c]onnmand' % self.tc.target_cmds['ps']
|
||||
|
||||
@@ -2,7 +2,6 @@ import re
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class DateTest(OERuntimeTestCase):
|
||||
@@ -17,7 +16,6 @@ class DateTest(OERuntimeTestCase):
|
||||
self.logger.debug('Starting systemd-timesyncd daemon')
|
||||
self.target.run('systemctl start systemd-timesyncd')
|
||||
|
||||
@OETestID(211)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['coreutils', 'busybox'])
|
||||
def test_date(self):
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class DfTest(OERuntimeTestCase):
|
||||
|
||||
@OETestID(234)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['coreutils', 'busybox'])
|
||||
def test_df(self):
|
||||
|
||||
@@ -5,7 +5,6 @@ from oeqa.utils.httpserver import HTTPService
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
@@ -26,27 +25,22 @@ class DnfBasicTest(DnfTest):
|
||||
'RPM is not the primary package manager')
|
||||
@OEHasPackage(['dnf'])
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OETestID(1735)
|
||||
def test_dnf_help(self):
|
||||
self.dnf('--help')
|
||||
|
||||
@OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
|
||||
@OETestID(1739)
|
||||
def test_dnf_version(self):
|
||||
self.dnf('--version')
|
||||
|
||||
@OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
|
||||
@OETestID(1737)
|
||||
def test_dnf_info(self):
|
||||
self.dnf('info dnf')
|
||||
|
||||
@OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
|
||||
@OETestID(1738)
|
||||
def test_dnf_search(self):
|
||||
self.dnf('search dnf')
|
||||
|
||||
@OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
|
||||
@OETestID(1736)
|
||||
def test_dnf_history(self):
|
||||
self.dnf('history')
|
||||
|
||||
@@ -71,7 +65,6 @@ class DnfRepoTest(DnfTest):
|
||||
return output
|
||||
|
||||
@OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
|
||||
@OETestID(1744)
|
||||
def test_dnf_makecache(self):
|
||||
self.dnf_with_repo('makecache')
|
||||
|
||||
@@ -82,12 +75,10 @@ class DnfRepoTest(DnfTest):
|
||||
# self.dnf_with_repo('repolist')
|
||||
|
||||
@OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
|
||||
@OETestID(1746)
|
||||
def test_dnf_repoinfo(self):
|
||||
self.dnf_with_repo('repoinfo')
|
||||
|
||||
@OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
|
||||
@OETestID(1740)
|
||||
def test_dnf_install(self):
|
||||
output = self.dnf_with_repo('list run-postinsts-dev')
|
||||
if 'Installed Packages' in output:
|
||||
@@ -95,13 +86,11 @@ class DnfRepoTest(DnfTest):
|
||||
self.dnf_with_repo('install -y run-postinsts-dev')
|
||||
|
||||
@OETestDepends(['dnf.DnfRepoTest.test_dnf_install'])
|
||||
@OETestID(1741)
|
||||
def test_dnf_install_dependency(self):
|
||||
self.dnf_with_repo('remove -y run-postinsts')
|
||||
self.dnf_with_repo('install -y run-postinsts-dev')
|
||||
|
||||
@OETestDepends(['dnf.DnfRepoTest.test_dnf_install_dependency'])
|
||||
@OETestID(1742)
|
||||
def test_dnf_install_from_disk(self):
|
||||
self.dnf_with_repo('remove -y run-postinsts-dev')
|
||||
self.dnf_with_repo('install -y --downloadonly run-postinsts-dev')
|
||||
@@ -110,7 +99,6 @@ class DnfRepoTest(DnfTest):
|
||||
self.dnf_with_repo('install -y %s' % output)
|
||||
|
||||
@OETestDepends(['dnf.DnfRepoTest.test_dnf_install_from_disk'])
|
||||
@OETestID(1743)
|
||||
def test_dnf_install_from_http(self):
|
||||
output = subprocess.check_output('%s %s -name run-postinsts-dev*' % (bb.utils.which(os.getenv('PATH'), "find"),
|
||||
os.path.join(self.tc.td['WORKDIR'], 'oe-testimage-repo')), shell=True).decode("utf-8")
|
||||
@@ -120,12 +108,10 @@ class DnfRepoTest(DnfTest):
|
||||
self.dnf_with_repo('install -y %s' % url)
|
||||
|
||||
@OETestDepends(['dnf.DnfRepoTest.test_dnf_install'])
|
||||
@OETestID(1745)
|
||||
def test_dnf_reinstall(self):
|
||||
self.dnf_with_repo('reinstall -y run-postinsts-dev')
|
||||
|
||||
@OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
|
||||
@OETestID(1771)
|
||||
def test_dnf_installroot(self):
|
||||
rootpath = '/home/root/chroot/test'
|
||||
#Copy necessary files to avoid errors with not yet installed tools on
|
||||
@@ -151,7 +137,6 @@ class DnfRepoTest(DnfTest):
|
||||
self.assertEqual(0, status, output)
|
||||
|
||||
@OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
|
||||
@OETestID(1772)
|
||||
def test_dnf_exclude(self):
|
||||
excludepkg = 'curl-dev'
|
||||
self.dnf_with_repo('install -y curl*')
|
||||
|
||||
@@ -2,7 +2,6 @@ import os
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class GccCompileTest(OERuntimeTestCase):
|
||||
@@ -24,7 +23,6 @@ class GccCompileTest(OERuntimeTestCase):
|
||||
files = '/tmp/test.c /tmp/test.o /tmp/test /tmp/testmakefile'
|
||||
cls.tc.target.run('rm %s' % files)
|
||||
|
||||
@OETestID(203)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['gcc'])
|
||||
def test_gcc_compile(self):
|
||||
@@ -36,7 +34,6 @@ class GccCompileTest(OERuntimeTestCase):
|
||||
msg = 'running compiled file failed, output: %s' % output
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
@OETestID(200)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['g++'])
|
||||
def test_gpp_compile(self):
|
||||
@@ -48,7 +45,6 @@ class GccCompileTest(OERuntimeTestCase):
|
||||
msg = 'running compiled file failed, output: %s' % output
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
@OETestID(1142)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['g++'])
|
||||
def test_gpp2_compile(self):
|
||||
@@ -60,7 +56,6 @@ class GccCompileTest(OERuntimeTestCase):
|
||||
msg = 'running compiled file failed, output: %s' % output
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
@OETestID(204)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['gcc'])
|
||||
@OEHasPackage(['make'])
|
||||
|
||||
@@ -2,7 +2,6 @@ import os
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfNotFeature
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
@@ -23,7 +22,6 @@ class KernelModuleTest(OERuntimeTestCase):
|
||||
files = '/tmp/Makefile /tmp/hellomod.c'
|
||||
cls.tc.target.run('rm %s' % files)
|
||||
|
||||
@OETestID(1541)
|
||||
@skipIfNotFeature('tools-sdk',
|
||||
'Test requires tools-sdk to be in IMAGE_FEATURES')
|
||||
@OETestDepends(['gcc.GccCompileTest.test_gcc_compile'])
|
||||
|
||||
@@ -3,7 +3,6 @@ import time
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfNotFeature
|
||||
|
||||
# need some kernel fragments
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfNotFeature
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class LddTest(OERuntimeTestCase):
|
||||
|
||||
@OETestID(962)
|
||||
@OEHasPackage(["ldd"])
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_ldd(self):
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class LogrotateTest(OERuntimeTestCase):
|
||||
@@ -16,7 +15,6 @@ class LogrotateTest(OERuntimeTestCase):
|
||||
def tearDownClass(cls):
|
||||
cls.tc.target.run('mv -f $HOME/wtmp.oeqabak /etc/logrotate.d/wtmp && rm -rf $HOME/logrotate_dir')
|
||||
|
||||
@OETestID(1544)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['logrotate'])
|
||||
def test_1_logrotate_setup(self):
|
||||
@@ -31,7 +29,6 @@ class LogrotateTest(OERuntimeTestCase):
|
||||
' %s and %s' % (status, output))
|
||||
self.assertEqual(status, 0, msg = msg)
|
||||
|
||||
@OETestID(1542)
|
||||
@OETestDepends(['logrotate.LogrotateTest.test_1_logrotate_setup'])
|
||||
def test_2_logrotate(self):
|
||||
status, output = self.target.run('logrotate -f /etc/logrotate.conf')
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfNotInDataVar
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
@@ -23,7 +22,6 @@ class MultilibTest(OERuntimeTestCase):
|
||||
msg = "%s isn't %s (is %s)" % (binary, arch, theclass)
|
||||
self.assertEqual(theclass, arch, msg=msg)
|
||||
|
||||
@OETestID(1593)
|
||||
@skipIfNotInDataVar('MULTILIBS', 'multilib:lib32',
|
||||
"This isn't a multilib:lib32 image")
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@@ -36,7 +34,6 @@ class MultilibTest(OERuntimeTestCase):
|
||||
self.archtest("/lib/libc.so.6", "ELF32")
|
||||
self.archtest("/lib64/libc.so.6", "ELF64")
|
||||
|
||||
@OETestID(279)
|
||||
@OETestDepends(['multilib.MultilibTest.test_check_multilib_libc'])
|
||||
@OEHasPackage(['lib32-connman', '!connman'])
|
||||
def test_file_connman(self):
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfDataVar
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class SyslogTest(OERuntimeTestCase):
|
||||
|
||||
@OETestID(201)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(["busybox-syslog", "sysklogd", "rsyslog", "syslog-ng"])
|
||||
def test_syslog_running(self):
|
||||
@@ -19,7 +17,6 @@ class SyslogTest(OERuntimeTestCase):
|
||||
|
||||
class SyslogTestConfig(OERuntimeTestCase):
|
||||
|
||||
@OETestID(1149)
|
||||
@OETestDepends(['oe_syslog.SyslogTest.test_syslog_running'])
|
||||
def test_syslog_logger(self):
|
||||
status, output = self.target.run('logger foobar')
|
||||
@@ -36,7 +33,6 @@ class SyslogTestConfig(OERuntimeTestCase):
|
||||
' Output: %s ' % output)
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
@OETestID(1150)
|
||||
@OETestDepends(['oe_syslog.SyslogTest.test_syslog_running'])
|
||||
def test_syslog_restart(self):
|
||||
if "systemd" != self.tc.td.get("VIRTUAL-RUNTIME_init_manager", ""):
|
||||
@@ -45,7 +41,6 @@ class SyslogTestConfig(OERuntimeTestCase):
|
||||
(_, _) = self.target.run('systemctl restart syslog.service')
|
||||
|
||||
|
||||
@OETestID(202)
|
||||
@OETestDepends(['oe_syslog.SyslogTestConfig.test_syslog_logger'])
|
||||
@OEHasPackage(["busybox-syslog"])
|
||||
@skipIfDataVar('VIRTUAL-RUNTIME_init_manager', 'systemd',
|
||||
|
||||
@@ -3,12 +3,10 @@
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfNotFeature
|
||||
|
||||
class PamBasicTest(OERuntimeTestCase):
|
||||
|
||||
@OETestID(1543)
|
||||
@skipIfNotFeature('pam', 'Test requires pam to be in DISTRO_FEATURES')
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_pam(self):
|
||||
|
||||
@@ -4,7 +4,6 @@ from subprocess import check_output
|
||||
from shutil import rmtree
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfDataVar
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
@@ -351,7 +350,6 @@ class ParseLogsTest(OERuntimeTestCase):
|
||||
def write_dmesg(self):
|
||||
(status, dmesg) = self.target.run('dmesg > /tmp/dmesg_output.log')
|
||||
|
||||
@OETestID(1059)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_parselogs(self):
|
||||
self.write_dmesg()
|
||||
|
||||
@@ -2,11 +2,9 @@ import os
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class PerlTest(OERuntimeTestCase):
|
||||
@OETestID(208)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['perl'])
|
||||
def test_perl_works(self):
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.oetimeout import OETimeout
|
||||
|
||||
class PingTest(OERuntimeTestCase):
|
||||
|
||||
@OETimeout(30)
|
||||
@OETestID(964)
|
||||
def test_ping(self):
|
||||
output = ''
|
||||
count = 0
|
||||
|
||||
@@ -4,14 +4,12 @@ import datetime
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfNotFeature
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
from oeqa.utils.logparser import PtestParser
|
||||
|
||||
class PtestRunnerTest(OERuntimeTestCase):
|
||||
|
||||
@OETestID(1600)
|
||||
@skipIfNotFeature('ptest', 'Test requires ptest to be in DISTRO_FEATURES')
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['ptest-runner'])
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class PythonTest(OERuntimeTestCase):
|
||||
@OETestID(965)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['python3-core'])
|
||||
def test_python3(self):
|
||||
|
||||
@@ -3,14 +3,12 @@ import fnmatch
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfDataVar
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
from oeqa.core.utils.path import findFile
|
||||
|
||||
class RpmBasicTest(OERuntimeTestCase):
|
||||
|
||||
@OETestID(960)
|
||||
@OEHasPackage(['rpm'])
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_rpm_help(self):
|
||||
@@ -18,7 +16,6 @@ class RpmBasicTest(OERuntimeTestCase):
|
||||
msg = 'status and output: %s and %s' % (status, output)
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
@OETestID(191)
|
||||
@OETestDepends(['rpm.RpmBasicTest.test_rpm_help'])
|
||||
def test_rpm_query(self):
|
||||
status, output = self.target.run('ls /var/lib/rpm/')
|
||||
@@ -43,7 +40,6 @@ class RpmInstallRemoveTest(OERuntimeTestCase):
|
||||
cls.test_file = os.path.join(rpmdir, f)
|
||||
cls.dst = '/tmp/base-passwd-doc.rpm'
|
||||
|
||||
@OETestID(192)
|
||||
@OETestDepends(['rpm.RpmBasicTest.test_rpm_query'])
|
||||
def test_rpm_install(self):
|
||||
self.tc.target.copyTo(self.test_file, self.dst)
|
||||
@@ -52,14 +48,12 @@ class RpmInstallRemoveTest(OERuntimeTestCase):
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
self.tc.target.run('rm -f %s' % self.dst)
|
||||
|
||||
@OETestID(194)
|
||||
@OETestDepends(['rpm.RpmInstallRemoveTest.test_rpm_install'])
|
||||
def test_rpm_remove(self):
|
||||
status,output = self.target.run('rpm -e base-passwd-doc')
|
||||
msg = 'Failed to remove base-passwd-doc package: %s' % output
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
@OETestID(1096)
|
||||
@OETestDepends(['rpm.RpmBasicTest.test_rpm_query'])
|
||||
def test_rpm_query_nonroot(self):
|
||||
|
||||
@@ -92,7 +86,6 @@ class RpmInstallRemoveTest(OERuntimeTestCase):
|
||||
finally:
|
||||
unset_up_test_user(tuser)
|
||||
|
||||
@OETestID(195)
|
||||
@OETestDepends(['rpm.RpmInstallRemoveTest.test_rpm_remove'])
|
||||
def test_check_rpm_install_removal_log_file_size(self):
|
||||
"""
|
||||
|
||||
@@ -3,7 +3,6 @@ from tempfile import mkstemp
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class ScpTest(OERuntimeTestCase):
|
||||
@@ -19,7 +18,6 @@ class ScpTest(OERuntimeTestCase):
|
||||
def tearDownClass(cls):
|
||||
os.remove(cls.tmp_path)
|
||||
|
||||
@OETestID(220)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['openssh-scp', 'dropbear'])
|
||||
def test_scp_file(self):
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
# IMAGE_INSTALL_append = " service" in local.conf
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfDataVar
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
@@ -22,7 +21,6 @@ class SkeletonBasicTest(OERuntimeTestCase):
|
||||
msg = 'skeleton-test not found. Output:\n%s' % output
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
@OETestID(284)
|
||||
@OETestDepends(['skeletoninit.SkeletonBasicTest.test_skeleton_availability'])
|
||||
def test_skeleton_script(self):
|
||||
output1 = self.target.run("/etc/init.d/skeleton start")[1]
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class SSHTest(OERuntimeTestCase):
|
||||
|
||||
@OETestID(224)
|
||||
@OETestDepends(['ping.PingTest.test_ping'])
|
||||
@OEHasPackage(['dropbear', 'openssh-sshd'])
|
||||
def test_ssh(self):
|
||||
|
||||
@@ -2,7 +2,6 @@ import os
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfNotFeature
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
@@ -19,7 +18,6 @@ class StapTest(OERuntimeTestCase):
|
||||
files = '/tmp/hello.stp'
|
||||
cls.tc.target.run('rm %s' % files)
|
||||
|
||||
@OETestID(1652)
|
||||
@skipIfNotFeature('tools-profile',
|
||||
'Test requires tools-profile to be in IMAGE_FEATURES')
|
||||
@OETestDepends(['kernelmodule.KernelModuleTest.test_kernel_module'])
|
||||
|
||||
@@ -3,7 +3,6 @@ import time
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfDataVar, skipIfNotDataVar
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
from oeqa.core.decorator.data import skipIfNotFeature
|
||||
@@ -78,12 +77,10 @@ class SystemdBasicTests(SystemdTest):
|
||||
def test_systemd_basic(self):
|
||||
self.systemctl('--version')
|
||||
|
||||
@OETestID(551)
|
||||
@OETestDepends(['systemd.SystemdBasicTests.test_systemd_basic'])
|
||||
def test_systemd_list(self):
|
||||
self.systemctl('list-unit-files')
|
||||
|
||||
@OETestID(550)
|
||||
@OETestDepends(['systemd.SystemdBasicTests.test_systemd_basic'])
|
||||
def test_systemd_failed(self):
|
||||
settled, output = self.settle()
|
||||
@@ -104,7 +101,6 @@ class SystemdServiceTests(SystemdTest):
|
||||
def test_systemd_status(self):
|
||||
self.systemctl('status --full', 'avahi-daemon.service')
|
||||
|
||||
@OETestID(695)
|
||||
@OETestDepends(['systemd.SystemdServiceTests.test_systemd_status'])
|
||||
def test_systemd_stop_start(self):
|
||||
self.systemctl('stop', 'avahi-daemon.service')
|
||||
@@ -113,7 +109,6 @@ class SystemdServiceTests(SystemdTest):
|
||||
self.systemctl('start','avahi-daemon.service')
|
||||
self.systemctl('is-active', 'avahi-daemon.service', verbose=True)
|
||||
|
||||
@OETestID(696)
|
||||
@OETestDepends(['systemd.SystemdServiceTests.test_systemd_status'])
|
||||
def test_systemd_disable_enable(self):
|
||||
self.systemctl('disable', 'avahi-daemon.service')
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfNotInDataVar
|
||||
|
||||
class X32libTest(OERuntimeTestCase):
|
||||
|
||||
@skipIfNotInDataVar('DEFAULTTUNE', 'x86-64-x32',
|
||||
'DEFAULTTUNE is not set to x86-64-x32')
|
||||
@OETestID(281)
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_x32_file(self):
|
||||
cmd = 'readelf -h /bin/ls | grep Class | grep ELF32'
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
from oeqa.core.decorator.data import skipIfNotFeature
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class XorgTest(OERuntimeTestCase):
|
||||
|
||||
@OETestID(1151)
|
||||
@skipIfNotFeature('x11-base',
|
||||
'Test requires x11 to be in IMAGE_FEATURES')
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
|
||||
Reference in New Issue
Block a user