test: camera: Add state machine test

Add a test of the different access level enforced by the state machine
inside the camera. The state machine aims to limit operations on the
camera to the cameras state.

The test exercises all states of the camera and verifies that only the
intended operations are possible at each stage.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Niklas Söderlund
2019-03-14 15:59:17 +01:00
parent f873d801dd
commit af2144231e
2 changed files with 276 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@
camera_tests = [
[ 'configuration_default', 'configuration_default.cpp' ],
[ 'configuration_set', 'configuration_set.cpp' ],
[ 'statemachine', 'statemachine.cpp' ],
[ 'capture', 'capture.cpp' ],
]