diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-05-26 16:12:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 08:35:04 +0100 |
commit | 82722cb5645cfee8007adc0076315ea63f2bda15 (patch) | |
tree | 928012ef4b2e9f9d44515f3e873a91c96fe6c21e /bitbake/lib/toaster/toastergui/fixtures | |
parent | c42f1cc81dda06ee39d1f0dd76a14da17b9c7f54 (diff) | |
download | poky-82722cb5645cfee8007adc0076315ea63f2bda15.tar.gz |
bitbake: toaster: tests Add new build tables to tests
- Add new build tables to be tested
- Add required data into the fixture and clean up a few empty fields
- Fix the SoftwareRecipesTable specific test so as not to rely on two
particular defined recipes
(Bitbake rev: 7cf23671659666b27b5629fecd5f947f9bdb94e0)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/fixtures')
-rw-r--r-- | bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml | 91 |
1 files changed, 68 insertions, 23 deletions
diff --git a/bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml b/bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml index cf35be4be6..213bf0f675 100644 --- a/bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml +++ b/bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml | |||
@@ -82,9 +82,8 @@ | |||
82 | <field to="orm.build" name="build" rel="ManyToOneRel">1</field> | 82 | <field to="orm.build" name="build" rel="ManyToOneRel">1</field> |
83 | <field type="CharField" name="target">a image recipe</field> | 83 | <field type="CharField" name="target">a image recipe</field> |
84 | <field type="CharField" name="task"><None></None></field> | 84 | <field type="CharField" name="task"><None></None></field> |
85 | <field type="BooleanField" name="is_image">False</field> | 85 | <field type="BooleanField" name="is_image">True</field> |
86 | <field type="IntegerField" name="image_size">0</field> | 86 | <field type="IntegerField" name="image_size">290</field> |
87 | <field type="CharField" name="license_manifest_path"><None></None></field> | ||
88 | </object> | 87 | </object> |
89 | <object pk="2" model="orm.target"> | 88 | <object pk="2" model="orm.target"> |
90 | <field to="orm.build" name="build" rel="ManyToOneRel">2</field> | 89 | <field to="orm.build" name="build" rel="ManyToOneRel">2</field> |
@@ -118,9 +117,9 @@ | |||
118 | </object> | 117 | </object> |
119 | <object pk="2" model="orm.package"> | 118 | <object pk="2" model="orm.package"> |
120 | <field to="orm.build" name="build" rel="ManyToOneRel">1</field> | 119 | <field to="orm.build" name="build" rel="ManyToOneRel">1</field> |
121 | <field to="orm.recipe" name="recipe" rel="ManyToOneRel">2</field> | 120 | <field to="orm.recipe" name="recipe" rel="ManyToOneRel">1</field> |
122 | <field type="CharField" name="name">f pkg</field> | 121 | <field type="CharField" name="name">f pkg</field> |
123 | <field type="CharField" name="installed_name"></field> | 122 | <field type="CharField" name="installed_name">f</field> |
124 | <field type="CharField" name="version"></field> | 123 | <field type="CharField" name="version"></field> |
125 | <field type="CharField" name="revision"></field> | 124 | <field type="CharField" name="revision"></field> |
126 | <field type="TextField" name="summary"></field> | 125 | <field type="TextField" name="summary"></field> |
@@ -297,6 +296,16 @@ | |||
297 | <field type="CharField" name="pathflags"></field> | 296 | <field type="CharField" name="pathflags"></field> |
298 | <field type="BooleanField" name="is_image">False</field> | 297 | <field type="BooleanField" name="is_image">False</field> |
299 | </object> | 298 | </object> |
299 | <!-- Added for an additional built recipe --> | ||
300 | <object pk="6" model="orm.recipe"> | ||
301 | <field type="CharField" name="name">g recipe</field> | ||
302 | <field type="CharField" name="version">1.2.3</field> | ||
303 | <field to="orm.layer_version" name="layer_version" rel="ManyToOneRel">3</field> | ||
304 | <field type="CharField" name="license">g license</field> | ||
305 | <field type="FilePathField" name="file_path">/g</field> | ||
306 | <field type="BooleanField" name="is_image">False</field> | ||
307 | </object> | ||
308 | |||
300 | <object pk="1" model="orm.machine"> | 309 | <object pk="1" model="orm.machine"> |
301 | <field to="orm.layersource" name="layer_source" rel="ManyToOneRel"><None></None></field> | 310 | <field to="orm.layersource" name="layer_source" rel="ManyToOneRel"><None></None></field> |
302 | <field type="IntegerField" name="up_id"><None></None></field> | 311 | <field type="IntegerField" name="up_id"><None></None></field> |
@@ -353,8 +362,6 @@ | |||
353 | </object> | 362 | </object> |
354 | <object pk="1" model="orm.branch"> | 363 | <object pk="1" model="orm.branch"> |
355 | <field to="orm.layersource" name="layer_source" rel="ManyToOneRel">1</field> | 364 | <field to="orm.layersource" name="layer_source" rel="ManyToOneRel">1</field> |
356 | <field type="IntegerField" name="up_id"><None></None></field> | ||
357 | <field type="DateTimeField" name="up_date"><None></None></field> | ||
358 | <field type="CharField" name="name">master</field> | 365 | <field type="CharField" name="name">master</field> |
359 | <field type="CharField" name="short_description"></field> | 366 | <field type="CharField" name="short_description"></field> |
360 | </object> | 367 | </object> |
@@ -363,13 +370,7 @@ | |||
363 | <field type="IntegerField" name="up_id"><None></None></field> | 370 | <field type="IntegerField" name="up_id"><None></None></field> |
364 | <field type="DateTimeField" name="up_date"><None></None></field> | 371 | <field type="DateTimeField" name="up_date"><None></None></field> |
365 | <field type="CharField" name="name">a layer</field> | 372 | <field type="CharField" name="name">a layer</field> |
366 | <field type="CharField" name="layer_index_url"></field> | ||
367 | <field type="CharField" name="vcs_url">/tmp/</field> | 373 | <field type="CharField" name="vcs_url">/tmp/</field> |
368 | <field type="CharField" name="vcs_web_url"><None></None></field> | ||
369 | <field type="CharField" name="vcs_web_tree_base_url"><None></None></field> | ||
370 | <field type="CharField" name="vcs_web_file_base_url"><None></None></field> | ||
371 | <field type="TextField" name="summary"><None></None></field> | ||
372 | <field type="TextField" name="description"><None></None></field> | ||
373 | </object> | 374 | </object> |
374 | <object pk="2" model="orm.layer"> | 375 | <object pk="2" model="orm.layer"> |
375 | <field to="orm.layersource" name="layer_source" rel="ManyToOneRel">1</field> | 376 | <field to="orm.layersource" name="layer_source" rel="ManyToOneRel">1</field> |
@@ -378,21 +379,16 @@ | |||
378 | <field type="CharField" name="name">z layer</field> | 379 | <field type="CharField" name="name">z layer</field> |
379 | <field type="CharField" name="layer_index_url"></field> | 380 | <field type="CharField" name="layer_index_url"></field> |
380 | <field type="CharField" name="vcs_url">git://two/</field> | 381 | <field type="CharField" name="vcs_url">git://two/</field> |
381 | <field type="CharField" name="vcs_web_url"><None></None></field> | ||
382 | <field type="CharField" name="vcs_web_tree_base_url"><None></None></field> | ||
383 | <field type="CharField" name="vcs_web_file_base_url"><None></None></field> | ||
384 | <field type="TextField" name="summary"><None></None></field> | ||
385 | <field type="TextField" name="description"><None></None></field> | ||
386 | </object> | 382 | </object> |
387 | <object pk="1" model="orm.layer_version"> | 383 | <object pk="1" model="orm.layer_version"> |
388 | <field to="orm.build" name="build" rel="ManyToOneRel"><None></None></field> | 384 | <field to="orm.build" name="build" rel="ManyToOneRel">1</field> |
389 | <field to="orm.layer" name="layer" rel="ManyToOneRel">1</field> | 385 | <field to="orm.layer" name="layer" rel="ManyToOneRel">1</field> |
390 | <field to="orm.layersource" name="layer_source" rel="ManyToOneRel">1</field> | 386 | <field to="orm.layersource" name="layer_source" rel="ManyToOneRel">1</field> |
391 | <field type="IntegerField" name="up_id"><None></None></field> | 387 | <field type="IntegerField" name="up_id"><None></None></field> |
392 | <field type="DateTimeField" name="up_date"><None></None></field> | 388 | <field type="DateTimeField" name="up_date"><None></None></field> |
393 | <field to="orm.branch" name="up_branch" rel="ManyToOneRel">1</field> | 389 | <field to="orm.branch" name="up_branch" rel="ManyToOneRel">1</field> |
394 | <field type="CharField" name="branch"></field> | 390 | <field type="CharField" name="branch">master</field> |
395 | <field type="CharField" name="commit">master</field> | 391 | <field type="CharField" name="commit">abcdef123</field> |
396 | <field type="CharField" name="dirpath">/tmp/</field> | 392 | <field type="CharField" name="dirpath">/tmp/</field> |
397 | <field type="IntegerField" name="priority">0</field> | 393 | <field type="IntegerField" name="priority">0</field> |
398 | <field type="FilePathField" name="local_path">/</field> | 394 | <field type="FilePathField" name="local_path">/</field> |
@@ -405,8 +401,22 @@ | |||
405 | <field type="IntegerField" name="up_id"><None></None></field> | 401 | <field type="IntegerField" name="up_id"><None></None></field> |
406 | <field type="DateTimeField" name="up_date"><None></None></field> | 402 | <field type="DateTimeField" name="up_date"><None></None></field> |
407 | <field to="orm.branch" name="up_branch" rel="ManyToOneRel">1</field> | 403 | <field to="orm.branch" name="up_branch" rel="ManyToOneRel">1</field> |
408 | <field type="CharField" name="branch"></field> | 404 | <field type="CharField" name="branch">testing-branch</field> |
409 | <field type="CharField" name="commit">master</field> | 405 | <field type="CharField" name="commit">9876fedcba</field> |
406 | <field type="CharField" name="dirpath"><None></None></field> | ||
407 | <field type="IntegerField" name="priority">0</field> | ||
408 | <field type="FilePathField" name="local_path">/</field> | ||
409 | <field to="orm.project" name="project" rel="ManyToOneRel"><None></None></field> | ||
410 | </object> | ||
411 | <object pk="3" model="orm.layer_version"> | ||
412 | <field to="orm.build" name="build" rel="ManyToOneRel">1</field> | ||
413 | <field to="orm.layer" name="layer" rel="ManyToOneRel">2</field> | ||
414 | <field to="orm.layersource" name="layer_source" rel="ManyToOneRel">1</field> | ||
415 | <field type="IntegerField" name="up_id"><None></None></field> | ||
416 | <field type="DateTimeField" name="up_date"><None></None></field> | ||
417 | <field to="orm.branch" name="up_branch" rel="ManyToOneRel">1</field> | ||
418 | <field type="CharField" name="branch">testing-branch</field> | ||
419 | <field type="CharField" name="commit">9876fedcba</field> | ||
410 | <field type="CharField" name="dirpath"><None></None></field> | 420 | <field type="CharField" name="dirpath"><None></None></field> |
411 | <field type="IntegerField" name="priority">0</field> | 421 | <field type="IntegerField" name="priority">0</field> |
412 | <field type="FilePathField" name="local_path">/</field> | 422 | <field type="FilePathField" name="local_path">/</field> |
@@ -443,4 +453,39 @@ | |||
443 | <field type="FilePathField" name="pathname"></field> | 453 | <field type="FilePathField" name="pathname"></field> |
444 | <field type="IntegerField" name="lineno"><None></None></field> | 454 | <field type="IntegerField" name="lineno"><None></None></field> |
445 | </object> | 455 | </object> |
456 | <!-- Some tasks for build 1 to test build tables --> | ||
457 | <object pk="1" model="orm.task"> | ||
458 | <field to="orm.build" name="build" rel="ManyToOneRel">1</field> | ||
459 | <field type="IntegerField" name="order">1</field> | ||
460 | <field type="BooleanField" name="task_executed">False</field> | ||
461 | <field type="IntegerField" name="outcome">-1</field> | ||
462 | <field type="CharField" name="sstate_checksum">abcdef123</field> | ||
463 | <field type="FilePathField" name="path_to_sstate_obj">34/wefw.tar</field> | ||
464 | <field to="orm.recipe" name="recipe" rel="ManyToOneRel">1</field> | ||
465 | <field type="CharField" name="task_name">a_do_compile</field> | ||
466 | <field type="DecimalField" name="elapsed_time">100</field> | ||
467 | <field type="IntegerField" name="disk_io">10</field> | ||
468 | <field type="IntegerField" name="disk_io_read">11</field> | ||
469 | <field type="IntegerField" name="disk_io_write">12</field> | ||
470 | <field type="DecimalField" name="cpu_time_user">10.1</field> | ||
471 | <field type="DecimalField" name="cpu_time_system">10.2</field> | ||
472 | <field type="IntegerField" name="sstate_result">3</field> | ||
473 | </object> | ||
474 | <object pk="2" model="orm.task"> | ||
475 | <field to="orm.build" name="build" rel="ManyToOneRel">1</field> | ||
476 | <field type="IntegerField" name="order">2</field> | ||
477 | <field type="BooleanField" name="task_executed">True</field> | ||
478 | <field type="IntegerField" name="outcome">2</field> | ||
479 | <field type="CharField" name="sstate_checksum">85bccb7802fd5f48</field> | ||
480 | <field type="FilePathField" name="path_to_sstate_obj">85/sstarpm.tgz</field> | ||
481 | <field to="orm.recipe" name="recipe" rel="ManyToOneRel">2</field> | ||
482 | <field type="CharField" name="task_name">z_do_package_write_rpm</field> | ||
483 | <field type="DecimalField" name="elapsed_time">245</field> | ||
484 | <field type="IntegerField" name="disk_io">12424</field> | ||
485 | <field type="IntegerField" name="disk_io_read">23423</field> | ||
486 | <field type="IntegerField" name="disk_io_write">83943</field> | ||
487 | <field type="DecimalField" name="cpu_time_user">20394.3</field> | ||
488 | <field type="DecimalField" name="cpu_time_system">5363.3</field> | ||
489 | <field type="IntegerField" name="sstate_result">1</field> | ||
490 | </object> | ||
446 | </django-objects> | 491 | </django-objects> |