summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/sstatetests.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-08 16:56:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-20 14:38:16 +0100
commit10e1b48a9e2d726229a0245339bf7be21ad9ca53 (patch)
treefc1e31a00d193490e4b5b65f9af04372a6e57693 /meta/lib/oeqa/selftest/cases/sstatetests.py
parent64fa42868df98dd87fb1f5ad74977ac833936cb5 (diff)
downloadpoky-10e1b48a9e2d726229a0245339bf7be21ad9ca53.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: 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>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/sstatetests.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/sstatetests.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py
index 938e654e9a..8cae2f7491 100644
--- a/meta/lib/oeqa/selftest/cases/sstatetests.py
+++ b/meta/lib/oeqa/selftest/cases/sstatetests.py
@@ -7,7 +7,6 @@ import tempfile
7from oeqa.selftest.case import OESelftestTestCase 7from oeqa.selftest.case import OESelftestTestCase
8from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_test_layer, create_temp_layer 8from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_test_layer, create_temp_layer
9from oeqa.selftest.cases.sstate import SStateBase 9from oeqa.selftest.cases.sstate import SStateBase
10from oeqa.core.decorator.oeid import OETestID
11 10
12import bb.siggen 11import bb.siggen
13 12
@@ -73,19 +72,15 @@ class SStateTests(SStateBase):
73 else: 72 else:
74 self.assertTrue(not file_tracker , msg="Found sstate files in the wrong place for: %s (found %s)" % (', '.join(map(str, targets)), str(file_tracker))) 73 self.assertTrue(not file_tracker , msg="Found sstate files in the wrong place for: %s (found %s)" % (', '.join(map(str, targets)), str(file_tracker)))
75 74
76 @OETestID(975)
77 def test_sstate_creation_distro_specific_pass(self): 75 def test_sstate_creation_distro_specific_pass(self):
78 self.run_test_sstate_creation(['binutils-cross-'+ self.tune_arch, 'binutils-native'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True) 76 self.run_test_sstate_creation(['binutils-cross-'+ self.tune_arch, 'binutils-native'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True)
79 77
80 @OETestID(1374)
81 def test_sstate_creation_distro_specific_fail(self): 78 def test_sstate_creation_distro_specific_fail(self):
82 self.run_test_sstate_creation(['binutils-cross-'+ self.tune_arch, 'binutils-native'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True, should_pass=False) 79 self.run_test_sstate_creation(['binutils-cross-'+ self.tune_arch, 'binutils-native'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True, should_pass=False)
83 80
84 @OETestID(976)
85 def test_sstate_creation_distro_nonspecific_pass(self): 81 def test_sstate_creation_distro_nonspecific_pass(self):
86 self.run_test_sstate_creation(['linux-libc-headers'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True) 82 self.run_test_sstate_creation(['linux-libc-headers'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True)
87 83
88 @OETestID(1375)
89 def test_sstate_creation_distro_nonspecific_fail(self): 84 def test_sstate_creation_distro_nonspecific_fail(self):
90 self.run_test_sstate_creation(['linux-libc-headers'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True, should_pass=False) 85 self.run_test_sstate_creation(['linux-libc-headers'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True, should_pass=False)
91 86
@@ -106,17 +101,14 @@ class SStateTests(SStateBase):
106 tgz_removed = self.search_sstate('|'.join(map(str, [s + r'.*?\.tgz$' for s in targets])), distro_specific, distro_nonspecific) 101 tgz_removed = self.search_sstate('|'.join(map(str, [s + r'.*?\.tgz$' for s in targets])), distro_specific, distro_nonspecific)
107 self.assertTrue(not tgz_removed, msg="do_cleansstate didn't remove .tgz sstate files for: %s (%s)" % (', '.join(map(str, targets)), str(tgz_removed))) 102 self.assertTrue(not tgz_removed, msg="do_cleansstate didn't remove .tgz sstate files for: %s (%s)" % (', '.join(map(str, targets)), str(tgz_removed)))
108 103
109 @OETestID(977)
110 def test_cleansstate_task_distro_specific_nonspecific(self): 104 def test_cleansstate_task_distro_specific_nonspecific(self):
111 targets = ['binutils-cross-'+ self.tune_arch, 'binutils-native'] 105 targets = ['binutils-cross-'+ self.tune_arch, 'binutils-native']
112 targets.append('linux-libc-headers') 106 targets.append('linux-libc-headers')
113 self.run_test_cleansstate_task(targets, distro_specific=True, distro_nonspecific=True, temp_sstate_location=True) 107 self.run_test_cleansstate_task(targets, distro_specific=True, distro_nonspecific=True, temp_sstate_location=True)
114 108
115 @OETestID(1376)
116 def test_cleansstate_task_distro_nonspecific(self): 109 def test_cleansstate_task_distro_nonspecific(self):
117 self.run_test_cleansstate_task(['linux-libc-headers'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True) 110 self.run_test_cleansstate_task(['linux-libc-headers'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True)
118 111
119 @OETestID(1377)
120 def test_cleansstate_task_distro_specific(self): 112 def test_cleansstate_task_distro_specific(self):
121 targets = ['binutils-cross-'+ self.tune_arch, 'binutils-native'] 113 targets = ['binutils-cross-'+ self.tune_arch, 'binutils-native']
122 targets.append('linux-libc-headers') 114 targets.append('linux-libc-headers')
@@ -155,15 +147,12 @@ class SStateTests(SStateBase):
155 created_once = [x for x in file_tracker_2 if x not in file_tracker_1] 147 created_once = [x for x in file_tracker_2 if x not in file_tracker_1]
156 self.assertTrue(created_once == [], msg="The following sstate files ware created only in the second run: %s" % ', '.join(map(str, created_once))) 148 self.assertTrue(created_once == [], msg="The following sstate files ware created only in the second run: %s" % ', '.join(map(str, created_once)))
157 149
158 @OETestID(175)
159 def test_rebuild_distro_specific_sstate_cross_native_targets(self): 150 def test_rebuild_distro_specific_sstate_cross_native_targets(self):
160 self.run_test_rebuild_distro_specific_sstate(['binutils-cross-' + self.tune_arch, 'binutils-native'], temp_sstate_location=True) 151 self.run_test_rebuild_distro_specific_sstate(['binutils-cross-' + self.tune_arch, 'binutils-native'], temp_sstate_location=True)
161 152
162 @OETestID(1372)
163 def test_rebuild_distro_specific_sstate_cross_target(self): 153 def test_rebuild_distro_specific_sstate_cross_target(self):
164 self.run_test_rebuild_distro_specific_sstate(['binutils-cross-' + self.tune_arch], temp_sstate_location=True) 154 self.run_test_rebuild_distro_specific_sstate(['binutils-cross-' + self.tune_arch], temp_sstate_location=True)
165 155
166 @OETestID(1373)
167 def test_rebuild_distro_specific_sstate_native_target(self): 156 def test_rebuild_distro_specific_sstate_native_target(self):
168 self.run_test_rebuild_distro_specific_sstate(['binutils-native'], temp_sstate_location=True) 157 self.run_test_rebuild_distro_specific_sstate(['binutils-native'], temp_sstate_location=True)
169 158
@@ -210,7 +199,6 @@ class SStateTests(SStateBase):
210 expected_not_actual = [x for x in expected_remaining_sstate if x not in actual_remaining_sstate] 199 expected_not_actual = [x for x in expected_remaining_sstate if x not in actual_remaining_sstate]
211 self.assertFalse(expected_not_actual, msg="Extra files ware removed: %s" ', '.join(map(str, expected_not_actual))) 200 self.assertFalse(expected_not_actual, msg="Extra files ware removed: %s" ', '.join(map(str, expected_not_actual)))
212 201
213 @OETestID(973)
214 def test_sstate_cache_management_script_using_pr_1(self): 202 def test_sstate_cache_management_script_using_pr_1(self):
215 global_config = [] 203 global_config = []
216 target_config = [] 204 target_config = []
@@ -218,7 +206,6 @@ class SStateTests(SStateBase):
218 target_config.append('PR = "0"') 206 target_config.append('PR = "0"')
219 self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic']) 207 self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic'])
220 208
221 @OETestID(978)
222 def test_sstate_cache_management_script_using_pr_2(self): 209 def test_sstate_cache_management_script_using_pr_2(self):
223 global_config = [] 210 global_config = []
224 target_config = [] 211 target_config = []
@@ -228,7 +215,6 @@ class SStateTests(SStateBase):
228 target_config.append('PR = "1"') 215 target_config.append('PR = "1"')
229 self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic']) 216 self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic'])
230 217
231 @OETestID(979)
232 def test_sstate_cache_management_script_using_pr_3(self): 218 def test_sstate_cache_management_script_using_pr_3(self):
233 global_config = [] 219 global_config = []
234 target_config = [] 220 target_config = []
@@ -240,7 +226,6 @@ class SStateTests(SStateBase):
240 target_config.append('PR = "1"') 226 target_config.append('PR = "1"')
241 self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic']) 227 self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic'])
242 228
243 @OETestID(974)
244 def test_sstate_cache_management_script_using_machine(self): 229 def test_sstate_cache_management_script_using_machine(self):
245 global_config = [] 230 global_config = []
246 target_config = [] 231 target_config = []
@@ -250,7 +235,6 @@ class SStateTests(SStateBase):
250 target_config.append('') 235 target_config.append('')
251 self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic']) 236 self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic'])
252 237
253 @OETestID(1270)
254 def test_sstate_32_64_same_hash(self): 238 def test_sstate_32_64_same_hash(self):
255 """ 239 """
256 The sstate checksums for both native and target should not vary whether 240 The sstate checksums for both native and target should not vary whether
@@ -299,7 +283,6 @@ PACKAGE_CLASSES = "package_rpm package_ipk package_deb"
299 self.assertCountEqual(files1, files2) 283 self.assertCountEqual(files1, files2)
300 284
301 285
302 @OETestID(1271)
303 def test_sstate_nativelsbstring_same_hash(self): 286 def test_sstate_nativelsbstring_same_hash(self):
304 """ 287 """
305 The sstate checksums should be independent of whichever NATIVELSBSTRING is 288 The sstate checksums should be independent of whichever NATIVELSBSTRING is
@@ -333,7 +316,6 @@ NATIVELSBSTRING = \"DistroB\"
333 self.maxDiff = None 316 self.maxDiff = None
334 self.assertCountEqual(files1, files2) 317 self.assertCountEqual(files1, files2)
335 318
336 @OETestID(1368)
337 def test_sstate_allarch_samesigs(self): 319 def test_sstate_allarch_samesigs(self):
338 """ 320 """
339 The sstate checksums of allarch packages should be independent of whichever 321 The sstate checksums of allarch packages should be independent of whichever
@@ -354,7 +336,6 @@ MACHINE = \"qemuarm\"
354""" 336"""
355 self.sstate_allarch_samesigs(configA, configB) 337 self.sstate_allarch_samesigs(configA, configB)
356 338
357 @OETestID(1645)
358 def test_sstate_nativesdk_samesigs_multilib(self): 339 def test_sstate_nativesdk_samesigs_multilib(self):
359 """ 340 """
360 check nativesdk stamps are the same between the two MACHINE values. 341 check nativesdk stamps are the same between the two MACHINE values.
@@ -405,7 +386,6 @@ MULTILIBS = \"\"
405 self.maxDiff = None 386 self.maxDiff = None
406 self.assertEqual(files1, files2) 387 self.assertEqual(files1, files2)
407 388
408 @OETestID(1369)
409 def test_sstate_sametune_samesigs(self): 389 def test_sstate_sametune_samesigs(self):
410 """ 390 """
411 The sstate checksums of two identical machines (using the same tune) should be the 391 The sstate checksums of two identical machines (using the same tune) should be the
@@ -452,7 +432,6 @@ DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
452 self.assertCountEqual(files1, files2) 432 self.assertCountEqual(files1, files2)
453 433
454 434
455 @OETestID(1498)
456 def test_sstate_noop_samesigs(self): 435 def test_sstate_noop_samesigs(self):
457 """ 436 """
458 The sstate checksums of two builds with these variables changed or 437 The sstate checksums of two builds with these variables changed or