summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMihail Stanciu <stanciux.mihail@intel.com>2015-08-07 19:18:09 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-11 09:28:50 -0700
commitd2598bf39631568cf9149898d83076fc84565d65 (patch)
treef78a89ef2aa54c38f6a9a69e6205a548d4c73f3c /meta
parent61fe46da9235925cffd0c1a4123a34d2631e1f59 (diff)
downloadpoky-d2598bf39631568cf9149898d83076fc84565d65.tar.gz
oeqa/selftest: remove tests for TCs that are no longer valid
Several toaster backend tests are no longer valid due to design changes. (From OE-Core rev: 08a938adbeb809dd3ea3f30ffe8f8bc2c37ed4b1) Signed-off-by: Mihail Stanciu <stanciux.mihail@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/_toaster.py125
1 files changed, 0 insertions, 125 deletions
diff --git a/meta/lib/oeqa/selftest/_toaster.py b/meta/lib/oeqa/selftest/_toaster.py
index 51ebda3e80..c424659fdc 100644
--- a/meta/lib/oeqa/selftest/_toaster.py
+++ b/meta/lib/oeqa/selftest/_toaster.py
@@ -45,38 +45,6 @@ class Toaster_DB_Tests(ToasterSetup):
45 total_builds = Build.objects.values('id').count() 45 total_builds = Build.objects.values('id').count()
46 self.assertEqual(distinct_path, total_builds, msg = 'Build coocker log path is not unique') 46 self.assertEqual(distinct_path, total_builds, msg = 'Build coocker log path is not unique')
47 47
48 # Check if the number of errors matches the number of orm_logmessage.level entries with value 2 - tc_id=820
49 @testcase(820)
50 def test_Build_Errors_No(self):
51 builds = Build.objects.values('id', 'errors_no')
52 cnt_err = []
53 for build in builds:
54 log_mess_err_no = LogMessage.objects.filter(build = build['id'], level = 2).count()
55 if (build['errors_no'] != log_mess_err_no):
56 cnt_err.append(build['id'])
57 self.assertEqual(len(cnt_err), 0, msg = 'Errors for build id: %s' % cnt_err)
58
59 # Check if the number of warnings matches the number of orm_logmessage.level entries with value 1 - tc=821
60 @testcase(821)
61 def test_Build_Warnings_No(self):
62 builds = Build.objects.values('id', 'warnings_no')
63 cnt_err = []
64 for build in builds:
65 log_mess_warn_no = LogMessage.objects.filter(build = build['id'], level = 1).count()
66 if (build['warnings_no'] != log_mess_warn_no):
67 cnt_err.append(build['id'])
68 self.assertEqual(len(cnt_err), 0, msg = 'Errors for build id: %s' % cnt_err)
69
70 # Check if the build succeeded then the errors_no is 0 - tc_id=822
71 @testcase(822)
72 def test_Build_Suceeded_Errors_No(self):
73 builds = Build.objects.filter(outcome = 0).values('id', 'errors_no')
74 cnt_err = []
75 for build in builds:
76 if (build['errors_no'] != 0):
77 cnt_err.append(build['id'])
78 self.assertEqual(len(cnt_err), 0, msg = 'Errors for build id: %s' % cnt_err)
79
80 # Check if task order is unique for one build - tc=824 48 # Check if task order is unique for one build - tc=824
81 @testcase(824) 49 @testcase(824)
82 def test_Task_Unique_Order(self): 50 def test_Task_Unique_Order(self):
@@ -237,88 +205,6 @@ class Toaster_DB_Tests(ToasterSetup):
237 cnt_err.append(dep['id']) 205 cnt_err.append(dep['id'])
238 self.assertEqual(len(cnt_err), 0, msg = 'Errors for package dependency id: %s' % cnt_err) 206 self.assertEqual(len(cnt_err), 0, msg = 'Errors for package dependency id: %s' % cnt_err)
239 207
240 # Check if recipe name does not start with a number (0-9) - tc=838
241 @testcase(838)
242 def test_Recipe_Name(self):
243 recipes = Recipe.objects.values('id', 'name')
244 cnt_err = []
245 for recipe in recipes:
246 if (recipe['name'][0].isdigit() is True):
247 cnt_err.append(recipe['id'])
248 self.assertEqual(len(cnt_err), 0, msg = 'Errors for recipe id: %s' % cnt_err)
249
250 # Check if recipe section matches the content of the SECTION variable (if set) in file_path - tc=839
251 @testcase(839)
252 def test_Recipe_DB_Section_Match_Recipe_File_Section(self):
253 recipes = Recipe.objects.values('id', 'section', 'file_path')
254 cnt_err = []
255 for recipe in recipes:
256 file_path = self.fix_file_path(recipe['file_path'])
257 file_exists = os.path.isfile(file_path)
258 if (not file_path or (file_exists is False)):
259 cnt_err.append(recipe['id'])
260 else:
261 file_section = self.recipe_parse(file_path, "SECTION = ")
262 db_section = recipe['section']
263 if file_section:
264 if (db_section != file_section):
265 cnt_err.append(recipe['id'])
266 self.assertEqual(len(cnt_err), 0, msg = 'Errors for recipe id: %s' % cnt_err)
267
268 # Check if recipe license matches the content of the LICENSE variable (if set) in file_path - tc=840
269 @testcase(840)
270 def test_Recipe_DB_License_Match_Recipe_File_License(self):
271 recipes = Recipe.objects.values('id', 'license', 'file_path')
272 cnt_err = []
273 for recipe in recipes:
274 file_path = self.fix_file_path(recipe['file_path'])
275 file_exists = os.path.isfile(file_path)
276 if (not file_path or (file_exists is False)):
277 cnt_err.append(recipe['id'])
278 else:
279 file_license = self.recipe_parse(file_path, "LICENSE = ")
280 db_license = recipe['license']
281 if file_license:
282 if (db_license != file_license):
283 cnt_err.append(recipe['id'])
284 self.assertEqual(len(cnt_err), 0, msg = 'Errors for recipe id: %s' % cnt_err)
285
286 # Check if recipe homepage matches the content of the HOMEPAGE variable (if set) in file_path - tc=841
287 @testcase(841)
288 def test_Recipe_DB_Homepage_Match_Recipe_File_Homepage(self):
289 recipes = Recipe.objects.values('id', 'homepage', 'file_path')
290 cnt_err = []
291 for recipe in recipes:
292 file_path = self.fix_file_path(recipe['file_path'])
293 file_exists = os.path.isfile(file_path)
294 if (not file_path or (file_exists is False)):
295 cnt_err.append(recipe['id'])
296 else:
297 file_homepage = self.recipe_parse(file_path, "HOMEPAGE = ")
298 db_homepage = recipe['homepage']
299 if file_homepage:
300 if (db_homepage != file_homepage):
301 cnt_err.append(recipe['id'])
302 self.assertEqual(len(cnt_err), 0, msg = 'Errors for recipe id: %s' % cnt_err)
303
304 # Check if recipe bugtracker matches the content of the BUGTRACKER variable (if set) in file_path - tc=842
305 @testcase(842)
306 def test_Recipe_DB_Bugtracker_Match_Recipe_File_Bugtracker(self):
307 recipes = Recipe.objects.values('id', 'bugtracker', 'file_path')
308 cnt_err = []
309 for recipe in recipes:
310 file_path = self.fix_file_path(recipe['file_path'])
311 file_exists = os.path.isfile(file_path)
312 if (not file_path or (file_exists is False)):
313 cnt_err.append(recipe['id'])
314 else:
315 file_bugtracker = self.recipe_parse(file_path, "BUGTRACKER = ")
316 db_bugtracker = recipe['bugtracker']
317 if file_bugtracker:
318 if (db_bugtracker != file_bugtracker):
319 cnt_err.append(recipe['id'])
320 self.assertEqual(len(cnt_err), 0, msg = 'Errors for recipe id: %s' % cnt_err)
321
322 # Recipe key verification, recipe name does not depends on a recipe having the same name - tc=883 208 # Recipe key verification, recipe name does not depends on a recipe having the same name - tc=883
323 @testcase(883) 209 @testcase(883)
324 def test_Recipe_Dependency(self): 210 def test_Recipe_Dependency(self):
@@ -409,17 +295,6 @@ class Toaster_DB_Tests(ToasterSetup):
409 cnt_err.append(layer['id']) 295 cnt_err.append(layer['id'])
410 self.assertEqual(len(cnt_err), 0, msg = 'Errors for layer id: %s' % cnt_err) 296 self.assertEqual(len(cnt_err), 0, msg = 'Errors for layer id: %s' % cnt_err)
411 297
412 # Check if the output of bitbake-layers show_layers matches the info from database - tc=895
413 @testcase(895)
414 def test_Layers_Show_Layers(self):
415 layers = Layer.objects.values('id', 'name', 'local_path')
416 cmd = commands.getoutput('bitbake-layers show_layers')
417 cnt_err = []
418 for layer in layers:
419 if (layer['name'] or layer['local_path']) not in cmd:
420 cnt_err.append(layer['id'])
421 self.assertEqual(len(cnt_err), 0, msg = 'Errors for layer id: %s' % cnt_err)
422
423 # Check if django server starts regardless of the timezone set on the machine - tc=905 298 # Check if django server starts regardless of the timezone set on the machine - tc=905
424 @testcase(905) 299 @testcase(905)
425 def test_Start_Django_Timezone(self): 300 def test_Start_Django_Timezone(self):