summaryrefslogtreecommitdiff
path: root/jobs
diff options
authorcgregan@canonical.com <>2015-02-24 16:23:16 -0500
committercgregan@canonical.com <>2015-02-24 16:23:16 -0500
commit55279830657ba97ad3c93a166de98e09d11f2448 (patch)
treec4c2ee195fa0cb506e33316b84ad09ea10c55903 /jobs
parent64e3bae41707904a73e4576a2ad861f212d446b9 (diff)
New versions of gnome screenshot tests for hybrid graphics
Diffstat (limited to 'jobs')
-rw-r--r--jobs/graphics.txt.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/jobs/graphics.txt.in b/jobs/graphics.txt.in
index 15902a6..91dd38c 100644
--- a/jobs/graphics.txt.in
+++ b/jobs/graphics.txt.in
@@ -550,3 +550,33 @@ command: [ -f ${PLAINBOX_SESSION_SHARE}/screen-capture.png ] && base64 ${PLAINBO
_description: Attaches the simple screen capture file
+id: graphics/generator_screen-capture-internal
+_description: Simple screen capture using gnome-screenshot
+_summary: Obtains a simple screen capture
+plugin: local
+requires: package.name == 'gnome-screenshot'
+command: cat <<'EOF' | run_templates -t -s 'graphics_card_resource'
+ plugin: shell
+ id: graphics/`echo ${index}`_screen-capture-internal_`echo "${product}" | sed 's/ /_/g;s/[^_a-zA-Z0-9-]//g'`
+ _summary: Obtains a simple screen capture
+ estimated_duration: 1.0
+ requires: package.name == 'gnome-screenshot'
+ command: gnome-screenshot --file ${PLAINBOX_SESSION_SHARE}/screen-capture.png
+ _description: Obtains a simple screen capture using gnome-screenshot if present
+ EOF
+
+id: graphics/generator_screen-capture-internal.png
+_summary: Attaches a simple screen capture
+plugin: local
+command:
+ cat <<'EOF' | run_templates -t -s 'graphics_card_resource'
+ plugin: attachment
+ id: `echo ${index}`_screen-capture-internal_`echo "${product}" | sed 's/ /_/g;s/[^_a-zA-Z0-9-]//g'`.png
+ depends: graphics/`echo ${index}`_screen-capture-internal_`echo "${product}" | sed 's/ /_/g;s/[^_a-zA-Z0-9-]//g'`
+ plugin: attachment
+ _summary: Attaches a simple screen capture
+ estimated_duration: 1.0
+ command: [ -f ${PLAINBOX_SESSION_SHARE}/screen-capture.png ] && base64 ${PLAINBOX_SESSION_SHARE}/screen-capture.png
+ _description: Attaches the simple screen capture file
+ EOF
+