summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-07-12 15:54:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-19 08:56:52 +0100
commitdb5426b0794c65f69efe34273fe98823e2a655d7 (patch)
tree5e1714e35a3f292aab922c3e927ebe1a183d0e18 /bitbake/lib/toaster/toastergui
parent9475a684c4baa45ba7bdc6ac7a122c122ed17ed9 (diff)
downloadpoky-db5426b0794c65f69efe34273fe98823e2a655d7.tar.gz
bitbake: toaster-tests: add tests for build artifact display on build dashboard
Add tests for display of image, kernel and SDK artifacts on the build dashboard, checking that the "Images" option in the left-hand menu and the "Build artifacts" section display correctly for different types of build. Also add metadata to elements on the build dashboard so it's clearer what they represent, and to assist in finding them in the tests. Add a method to the test helper to make it more convenient to check whether a single element matching a selector exists. [YOCTO #8556] [YOCTO #8563] [YOCTO #9500] (Bitbake rev: 644a888ce5a2141f2e6e1c22430e196b65cb1313) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: bavery <brian.avery@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/basebuildpage.html2
-rw-r--r--bitbake/lib/toaster/toastergui/templates/builddashboard.html12
2 files changed, 7 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html
index eb709bbd43..44749bf49a 100644
--- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html
+++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html
@@ -63,7 +63,7 @@
63 <a href="{% url 'builddashboard' build.pk %}">Build summary</a> 63 <a href="{% url 'builddashboard' build.pk %}">Build summary</a>
64 </li> 64 </li>
65 {% if build.has_images and build.outcome == build.SUCCEEDED %} 65 {% if build.has_images and build.outcome == build.SUCCEEDED %}
66 <li class="nav-header">Images</li> 66 <li class="nav-header" data-menu-heading="images">Images</li>
67 {% block nav-target %} 67 {% block nav-target %}
68 {% for t in build.get_sorted_target_list %} 68 {% for t in build.get_sorted_target_list %}
69 {% if t.has_images %} 69 {% if t.has_images %}
diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html
index 36c28b7d6a..bc41e23622 100644
--- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html
+++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html
@@ -70,7 +70,7 @@
70{%if build.outcome == build.SUCCEEDED%} 70{%if build.outcome == build.SUCCEEDED%}
71<!-- built images --> 71<!-- built images -->
72 {% if hasArtifacts %} 72 {% if hasArtifacts %}
73 <h2>Build artifacts</h2> 73 <h2 data-heading="build-artifacts">Build artifacts</h2>
74 {% for target in targets %} 74 {% for target in targets %}
75 {% if target.target.is_image %} 75 {% if target.target.is_image %}
76 <div class="well well-transparent dashboard-section" data-artifacts-for-target="{{target.target.pk}}"> 76 <div class="well well-transparent dashboard-section" data-artifacts-for-target="{{target.target.pk}}">
@@ -88,12 +88,12 @@
88 </dt> 88 </dt>
89 89
90 <dd> 90 <dd>
91 <a href="{% url 'build_artifact' build.pk 'licensemanifest' target.target.pk %}">License manifest</a> 91 <a data-link="license-manifest" href="{% url 'build_artifact' build.pk 'licensemanifest' target.target.pk %}">License manifest</a>
92 </dd> 92 </dd>
93 93
94 {% if target.target.package_manifest_path %} 94 {% if target.target.package_manifest_path %}
95 <dd> 95 <dd>
96 <a href="{% url 'build_artifact' build.pk 'packagemanifest' target.target.pk %}">Package manifest</a> 96 <a data-link="package-manifest" href="{% url 'build_artifact' build.pk 'packagemanifest' target.target.pk %}">Package manifest</a>
97 </dd> 97 </dd>
98 {% endif %} 98 {% endif %}
99 </dl> 99 </dl>
@@ -104,7 +104,7 @@
104 Image files 104 Image files
105 </dt> 105 </dt>
106 <dd> 106 <dd>
107 <ul class="list-unstyled"> 107 <ul class="list-unstyled" data-links="image-artifacts">
108 {% for i in target.imageFiles|dictsort:"suffix" %} 108 {% for i in target.imageFiles|dictsort:"suffix" %}
109 <li> 109 <li>
110 <a href="{% url 'build_artifact' build.pk 'imagefile' i.id %}"> 110 <a href="{% url 'build_artifact' build.pk 'imagefile' i.id %}">
@@ -119,7 +119,7 @@
119 Kernel artifacts 119 Kernel artifacts
120 </dt> 120 </dt>
121 <dd> 121 <dd>
122 <ul class="list-unstyled"> 122 <ul class="list-unstyled" data-links="kernel-artifacts">
123 {% for artifact in target.target_kernel_artifacts|dictsort:"basename" %} 123 {% for artifact in target.target_kernel_artifacts|dictsort:"basename" %}
124 <li> 124 <li>
125 <a href="{% url 'build_artifact' build.id 'targetkernelartifact' artifact.id %}">{{artifact.basename}}</a> 125 <a href="{% url 'build_artifact' build.id 'targetkernelartifact' artifact.id %}">{{artifact.basename}}</a>
@@ -136,7 +136,7 @@
136 SDK artifacts 136 SDK artifacts
137 </dt> 137 </dt>
138 <dd> 138 <dd>
139 <ul class="list-unstyled"> 139 <ul class="list-unstyled" data-links="sdk-artifacts">
140 {% for artifact in target.target_sdk_artifacts|dictsort:"basename" %} 140 {% for artifact in target.target_sdk_artifacts|dictsort:"basename" %}
141 <li> 141 <li>
142 <a href="{% url 'build_artifact' build.id 'targetsdkartifact' artifact.id %}">{{artifact.basename}}</a> 142 <a href="{% url 'build_artifact' build.id 'targetsdkartifact' artifact.id %}">{{artifact.basename}}</a>