summaryrefslogtreecommitdiff
path: root/units/camera
diff options
Diffstat (limited to 'units/camera')
-rw-r--r--units/camera/jobs.pxu57
-rw-r--r--units/camera/packaging.pxu3
2 files changed, 60 insertions, 0 deletions
diff --git a/units/camera/jobs.pxu b/units/camera/jobs.pxu
new file mode 100644
index 0000000..4db5222
--- /dev/null
+++ b/units/camera/jobs.pxu
@@ -0,0 +1,57 @@
+plugin: shell
+category_id: com.canonical.plainbox::camera
+id: camera/detect
+estimated_duration: 1.2
+requires:
+ device.category == 'CAPTURE'
+command: if [ "`lsb_release -c | awk {'print $2'}`" == "precise" ]; then camera_test_legacy detect; else camera_test detect; fi
+_description: This Automated test attempts to detect a camera.
+
+plugin: user-interact-verify
+category_id: com.canonical.plainbox::camera
+id: camera/display
+estimated_duration: 120.0
+depends: camera/detect
+requires:
+ device.category == 'CAPTURE'
+command: if [ "`lsb_release -c | awk {'print $2'}`" == "precise" ]; then camera_test_legacy display; else camera_test display; fi
+_description:
+ PURPOSE:
+ This test will check that the built-in camera works
+ STEPS:
+ 1. Click on Test to display a video capture from the camera for ten seconds.
+ VERIFICATION:
+ Did you see the video capture?
+
+plugin: user-interact-verify
+category_id: com.canonical.plainbox::camera
+id: camera/still
+estimated_duration: 120.0
+depends: camera/detect
+requires:
+ package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
+ package.name == 'eog'
+ package.name == 'fswebcam' or package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
+ device.category == 'CAPTURE'
+command: if [ "`lsb_release -c | awk {'print $2'}`" == "precise" ]; then camera_test_legacy still; else camera_test still; fi
+_description:
+ PURPOSE:
+ This test will check that the built-in camera works
+ STEPS:
+ 1. Click on Test to display a still image from the camera for ten seconds.
+ VERIFICATION:
+ Did you see the image?
+
+plugin: shell
+category_id: com.canonical.plainbox::camera
+id: camera/multiple-resolution-images
+estimated_duration: 1.2
+depends: camera/detect
+requires:
+ package.name == 'fswebcam' or package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
+ device.category == 'CAPTURE'
+command: if [ "`lsb_release -c | awk {'print $2'}`" == "precise" ]; then camera_test_legacy resolutions; else camera_test resolutions; fi
+_description:
+ Takes multiple pictures based on the resolutions supported by the camera and
+ validates their size and that they are of a valid format.
+
diff --git a/units/camera/packaging.pxu b/units/camera/packaging.pxu
new file mode 100644
index 0000000..bb12d64
--- /dev/null
+++ b/units/camera/packaging.pxu
@@ -0,0 +1,3 @@
+unit: packaging meta-data
+os-id: debian
+Depends: gir1.2-cheese-3.0