summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/sstatetests.py
diff options
context:
space:
mode:
authorDaniel Istrate <daniel.alexandrux.istrate@intel.com>2015-10-23 15:07:51 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-27 07:24:28 +0000
commit426a9b78d0018a739ec06c5dddcd0f8b6c4194cf (patch)
treecc33f531c7c2aa59b43f18c97223efb1b250f6b6 /meta/lib/oeqa/selftest/sstatetests.py
parent835525c8bb79007b262b10e9f473ebfa1e4c8ceb (diff)
downloadpoky-426a9b78d0018a739ec06c5dddcd0f8b6c4194cf.tar.gz
oeqa/selftest: Added testcase decorators.
Added testcase decorators for testopia integration. (From OE-Core rev: 9c7ffd397c8232d53c87017e58e03e3056863edf) Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/sstatetests.py')
-rw-r--r--meta/lib/oeqa/selftest/sstatetests.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/meta/lib/oeqa/selftest/sstatetests.py b/meta/lib/oeqa/selftest/sstatetests.py
index 9ccc7bb265..3c230620ed 100644
--- a/meta/lib/oeqa/selftest/sstatetests.py
+++ b/meta/lib/oeqa/selftest/sstatetests.py
@@ -34,7 +34,7 @@ class SStateTests(SStateBase):
34 targetarch = get_bb_var('TUNE_ARCH') 34 targetarch = get_bb_var('TUNE_ARCH')
35 self.run_test_sstate_creation(['binutils-cross-'+ targetarch, 'binutils-native'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True) 35 self.run_test_sstate_creation(['binutils-cross-'+ targetarch, 'binutils-native'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True)
36 36
37 @testcase(975) 37 @testcase(1374)
38 def test_sstate_creation_distro_specific_fail(self): 38 def test_sstate_creation_distro_specific_fail(self):
39 targetarch = get_bb_var('TUNE_ARCH') 39 targetarch = get_bb_var('TUNE_ARCH')
40 self.run_test_sstate_creation(['binutils-cross-'+ targetarch, 'binutils-native'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True, should_pass=False) 40 self.run_test_sstate_creation(['binutils-cross-'+ targetarch, 'binutils-native'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True, should_pass=False)
@@ -43,7 +43,7 @@ class SStateTests(SStateBase):
43 def test_sstate_creation_distro_nonspecific_pass(self): 43 def test_sstate_creation_distro_nonspecific_pass(self):
44 self.run_test_sstate_creation(['glibc-initial'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True) 44 self.run_test_sstate_creation(['glibc-initial'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True)
45 45
46 @testcase(976) 46 @testcase(1375)
47 def test_sstate_creation_distro_nonspecific_fail(self): 47 def test_sstate_creation_distro_nonspecific_fail(self):
48 self.run_test_sstate_creation(['glibc-initial'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True, should_pass=False) 48 self.run_test_sstate_creation(['glibc-initial'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True, should_pass=False)
49 49
@@ -70,11 +70,11 @@ class SStateTests(SStateBase):
70 targetarch = get_bb_var('TUNE_ARCH') 70 targetarch = get_bb_var('TUNE_ARCH')
71 self.run_test_cleansstate_task(['binutils-cross-' + targetarch, 'binutils-native', 'glibc-initial'], distro_specific=True, distro_nonspecific=True, temp_sstate_location=True) 71 self.run_test_cleansstate_task(['binutils-cross-' + targetarch, 'binutils-native', 'glibc-initial'], distro_specific=True, distro_nonspecific=True, temp_sstate_location=True)
72 72
73 @testcase(977) 73 @testcase(1376)
74 def test_cleansstate_task_distro_nonspecific(self): 74 def test_cleansstate_task_distro_nonspecific(self):
75 self.run_test_cleansstate_task(['glibc-initial'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True) 75 self.run_test_cleansstate_task(['glibc-initial'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True)
76 76
77 @testcase(977) 77 @testcase(1377)
78 def test_cleansstate_task_distro_specific(self): 78 def test_cleansstate_task_distro_specific(self):
79 targetarch = get_bb_var('TUNE_ARCH') 79 targetarch = get_bb_var('TUNE_ARCH')
80 self.run_test_cleansstate_task(['binutils-cross-'+ targetarch, 'binutils-native', 'glibc-initial'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True) 80 self.run_test_cleansstate_task(['binutils-cross-'+ targetarch, 'binutils-native', 'glibc-initial'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True)
@@ -111,12 +111,12 @@ class SStateTests(SStateBase):
111 targetarch = get_bb_var('TUNE_ARCH') 111 targetarch = get_bb_var('TUNE_ARCH')
112 self.run_test_rebuild_distro_specific_sstate(['binutils-cross-' + targetarch, 'binutils-native'], temp_sstate_location=True) 112 self.run_test_rebuild_distro_specific_sstate(['binutils-cross-' + targetarch, 'binutils-native'], temp_sstate_location=True)
113 113
114 @testcase(175) 114 @testcase(1372)
115 def test_rebuild_distro_specific_sstate_cross_target(self): 115 def test_rebuild_distro_specific_sstate_cross_target(self):
116 targetarch = get_bb_var('TUNE_ARCH') 116 targetarch = get_bb_var('TUNE_ARCH')
117 self.run_test_rebuild_distro_specific_sstate(['binutils-cross-' + targetarch], temp_sstate_location=True) 117 self.run_test_rebuild_distro_specific_sstate(['binutils-cross-' + targetarch], temp_sstate_location=True)
118 118
119 @testcase(175) 119 @testcase(1373)
120 def test_rebuild_distro_specific_sstate_native_target(self): 120 def test_rebuild_distro_specific_sstate_native_target(self):
121 self.run_test_rebuild_distro_specific_sstate(['binutils-native'], temp_sstate_location=True) 121 self.run_test_rebuild_distro_specific_sstate(['binutils-native'], temp_sstate_location=True)
122 122
@@ -283,6 +283,7 @@ NATIVELSBSTRING = \"DistroB\"
283 self.maxDiff = None 283 self.maxDiff = None
284 self.assertItemsEqual(files1, files2) 284 self.assertItemsEqual(files1, files2)
285 285
286 @testcase(1368)
286 def test_sstate_allarch_samesigs(self): 287 def test_sstate_allarch_samesigs(self):
287 """ 288 """
288 The sstate checksums of allarch packages should be independent of whichever 289 The sstate checksums of allarch packages should be independent of whichever
@@ -330,6 +331,7 @@ MACHINE = \"qemuarm\"
330 self.maxDiff = None 331 self.maxDiff = None
331 self.assertItemsEqual(files1, files2) 332 self.assertItemsEqual(files1, files2)
332 333
334 @testcase(1369)
333 def test_sstate_sametune_samesigs(self): 335 def test_sstate_sametune_samesigs(self):
334 """ 336 """
335 The sstate checksums of two identical machines (using the same tune) should be the 337 The sstate checksums of two identical machines (using the same tune) should be the