summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/buildoptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/buildoptions.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/buildoptions.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py
index 6a18eb8366..953c6e468d 100644
--- a/meta/lib/oeqa/selftest/cases/buildoptions.py
+++ b/meta/lib/oeqa/selftest/cases/buildoptions.py
@@ -7,11 +7,9 @@ from oeqa.selftest.case import OESelftestTestCase
7from oeqa.selftest.cases.buildhistory import BuildhistoryBase 7from oeqa.selftest.cases.buildhistory import BuildhistoryBase
8from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars 8from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars
9import oeqa.utils.ftools as ftools 9import oeqa.utils.ftools as ftools
10from oeqa.core.decorator.oeid import OETestID
11 10
12class ImageOptionsTests(OESelftestTestCase): 11class ImageOptionsTests(OESelftestTestCase):
13 12
14 @OETestID(761)
15 def test_incremental_image_generation(self): 13 def test_incremental_image_generation(self):
16 image_pkgtype = get_bb_var("IMAGE_PKGTYPE") 14 image_pkgtype = get_bb_var("IMAGE_PKGTYPE")
17 if image_pkgtype != 'rpm': 15 if image_pkgtype != 'rpm':
@@ -30,7 +28,6 @@ class ImageOptionsTests(OESelftestTestCase):
30 incremental_removed = re.search(r"Erasing\s*:\s*packagegroup-core-ssh-openssh", log_data_removed) 28 incremental_removed = re.search(r"Erasing\s*:\s*packagegroup-core-ssh-openssh", log_data_removed)
31 self.assertTrue(incremental_removed, msg = "Match failed in:\n%s" % log_data_removed) 29 self.assertTrue(incremental_removed, msg = "Match failed in:\n%s" % log_data_removed)
32 30
33 @OETestID(286)
34 def test_ccache_tool(self): 31 def test_ccache_tool(self):
35 bitbake("ccache-native") 32 bitbake("ccache-native")
36 bb_vars = get_bb_vars(['SYSROOT_DESTDIR', 'bindir'], 'ccache-native') 33 bb_vars = get_bb_vars(['SYSROOT_DESTDIR', 'bindir'], 'ccache-native')
@@ -45,7 +42,6 @@ class ImageOptionsTests(OESelftestTestCase):
45 loglines = "".join(f.readlines()) 42 loglines = "".join(f.readlines())
46 self.assertIn("ccache", loglines, msg="No match for ccache in m4-native log.do_compile. For further details: %s" % log_compile) 43 self.assertIn("ccache", loglines, msg="No match for ccache in m4-native log.do_compile. For further details: %s" % log_compile)
47 44
48 @OETestID(1435)
49 def test_read_only_image(self): 45 def test_read_only_image(self):
50 distro_features = get_bb_var('DISTRO_FEATURES') 46 distro_features = get_bb_var('DISTRO_FEATURES')
51 if not ('x11' in distro_features and 'opengl' in distro_features): 47 if not ('x11' in distro_features and 'opengl' in distro_features):
@@ -56,7 +52,6 @@ class ImageOptionsTests(OESelftestTestCase):
56 52
57class DiskMonTest(OESelftestTestCase): 53class DiskMonTest(OESelftestTestCase):
58 54
59 @OETestID(277)
60 def test_stoptask_behavior(self): 55 def test_stoptask_behavior(self):
61 self.write_config('BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},100000G,100K"') 56 self.write_config('BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},100000G,100K"')
62 res = bitbake("delay -c delay", ignore_status = True) 57 res = bitbake("delay -c delay", ignore_status = True)
@@ -76,7 +71,6 @@ class SanityOptionsTest(OESelftestTestCase):
76 if line in l: 71 if line in l:
77 return l 72 return l
78 73
79 @OETestID(927)
80 def test_options_warnqa_errorqa_switch(self): 74 def test_options_warnqa_errorqa_switch(self):
81 75
82 self.write_config("INHERIT_remove = \"report-error\"") 76 self.write_config("INHERIT_remove = \"report-error\"")
@@ -98,7 +92,6 @@ class SanityOptionsTest(OESelftestTestCase):
98 line = self.getline(res, "QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors.") 92 line = self.getline(res, "QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors.")
99 self.assertTrue(line and line.startswith("WARNING:"), msg=res.output) 93 self.assertTrue(line and line.startswith("WARNING:"), msg=res.output)
100 94
101 @OETestID(1421)
102 def test_layer_without_git_dir(self): 95 def test_layer_without_git_dir(self):
103 """ 96 """
104 Summary: Test that layer git revisions are displayed and do not fail without git repository 97 Summary: Test that layer git revisions are displayed and do not fail without git repository
@@ -140,12 +133,10 @@ class SanityOptionsTest(OESelftestTestCase):
140 133
141class BuildhistoryTests(BuildhistoryBase): 134class BuildhistoryTests(BuildhistoryBase):
142 135
143 @OETestID(293)
144 def test_buildhistory_basic(self): 136 def test_buildhistory_basic(self):
145 self.run_buildhistory_operation('xcursor-transparent-theme') 137 self.run_buildhistory_operation('xcursor-transparent-theme')
146 self.assertTrue(os.path.isdir(get_bb_var('BUILDHISTORY_DIR')), "buildhistory dir was not created.") 138 self.assertTrue(os.path.isdir(get_bb_var('BUILDHISTORY_DIR')), "buildhistory dir was not created.")
147 139
148 @OETestID(294)
149 def test_buildhistory_buildtime_pr_backwards(self): 140 def test_buildhistory_buildtime_pr_backwards(self):
150 target = 'xcursor-transparent-theme' 141 target = 'xcursor-transparent-theme'
151 error = "ERROR:.*QA Issue: Package version for package %s went backwards which would break package feeds from (.*-r1.* to .*-r0.*)" % target 142 error = "ERROR:.*QA Issue: Package version for package %s went backwards which would break package feeds from (.*-r1.* to .*-r0.*)" % target
@@ -153,7 +144,6 @@ class BuildhistoryTests(BuildhistoryBase):
153 self.run_buildhistory_operation(target, target_config="PR = \"r0\"", change_bh_location=False, expect_error=True, error_regex=error) 144 self.run_buildhistory_operation(target, target_config="PR = \"r0\"", change_bh_location=False, expect_error=True, error_regex=error)
154 145
155class ArchiverTest(OESelftestTestCase): 146class ArchiverTest(OESelftestTestCase):
156 @OETestID(926)
157 def test_arch_work_dir_and_export_source(self): 147 def test_arch_work_dir_and_export_source(self):
158 """ 148 """
159 Test for archiving the work directory and exporting the source files. 149 Test for archiving the work directory and exporting the source files.