summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2020-09-16tests: Provide {un,}bind testingKieran Bingham
Perform unbind-bind testing of the VSP devices to validate successful removal of the drivers. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-07-14Add license and copyright informationLaurent Pinchart
Add SPDX tags to describe license and copyright information to all files in the repository. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
2019-02-19tests: Provide copy test to validate 1xN streamsKieran Bingham
Validate that a 1xN stream can be read through the RPF and written through the WPF. The test framework does not currently support processing images where the stride does not match the output width - so the testing is currently limited to testing only the vertical direction in this aspect. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> [Drop 1024x768 and 128x128 resolutions] Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-02-19tests: Add pseudo platform testKieran Bingham
Provide an initial test which can run as part of the test suite. This test will report the platform and kernel version, along with the identified paths of required utilities. This will aid in ensuring that required tools are available on a running platform - and report the kernel and platform details in any test suite output for clarification of results. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> [Don't depend on columns] Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2018-05-21tests: suspend/resume: Increase number of processed framesLaurent Pinchart
The suspend/resume test starts a run of 300 frames and suspends the system one second later. On some SoCs (namely H3 ES2.0) the VSP bandwidth is high enough to complete processing of 300 frames in less than a second. The test thus suspends and resumes the system with the VSP idle instead of running, defeating the purpose of the test. Fix this by increasing the number of frames to process to 1000. The frame count is now passed as an argument to the test_extended_wpf_packing function to ease future changes. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> --- Changes since v1: - Don't explicitly state at which frame suspend/resume is expected to occur as that's device-dependent - Compare the last three frames instead of just one
2017-08-30tests: Add BRS testLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Tested-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
2017-08-24tests: Use POSIX '.' as 'source'Kieran Bingham
On posix shells, only the '.' command is supported. Even when running on a full bash shell, the file to source should be either fully or locally qualified to avoid picking up a stray version available in $PATH. Fix both issues by swapping to the posix standard Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-26tests: Don't perform HSV capture test on Gen3 hardwareLaurent Pinchart
The Gen3 VSP doesn't support HSV formats on the RPF or WPF. Skip the test. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-03-03tests: Add HGT testNiklas Söderlund
Test HGT histogram during video streaming. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13tests: Add extended stress testingKieran Bingham
Duplicate the functionality of vsp-unit-test-0020, to provide a longer duration task for the hardware to run, whilst we load the system using the 'stress' utility. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13tests: Add basic stress testingKieran Bingham
Duplicate the functionality of vsp-unit-test-0001, to provide a set of work for the hardware to run, whilst we load the system using the 'stress' utility. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13tests: Test suspend/resume on active pipelinesKieran Bingham
Provide a test to verify the hardware completes a functional test whilst performing a suspend resume cycle in parallel. Make use of the /sys/power/pm_test functionality provided by CONFIG_PM_DEBUG to perform the testing Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13tests: Test suspend/resume on idle pipelinesKieran Bingham
Provide a test to verify the hardware is functional both before and after entering a suspend / resume cycle. Make use of the /sys/power/pm_test functionality provided by CONFIG_PM_DEBUG to perform the testing Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-12tests: Add RPF cropping testKieran Bingham
Test both the input cropping size and position Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-10-24tests: Add YVU 3-planar formats in RGB and WPF testsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-16tests: Add HSV capture and conversion testLaurent Pinchart
Test conversion from RGB to HSV with output in both HSV24 and HSV32 formats as well as HSV to HSV pass-through. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-16tests: Skip VYUY tests on Gen3 platformsLaurent Pinchart
The Gen3 platforms don't support VYUY, skip the related tests. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Add flipping/rotation test with UDSLaurent Pinchart
Insert a UDS in the pipeline to force image partitioning on Gen3 hardware and test all flipping and rotation combinations. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Provide SRU unit testKieran Bingham
Provide a pipeline configuration in vsp-lib, and simple tests for the SRU processing unit Signed-off-by: Kieran Bingham <kieran@bingham.xyz> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Make local variables localLaurent Pinchart
Avoid interfering with the vsp-lib namespace by making local variables local. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Test identity scaling in UDS testLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Add RPF unpacking tests in RGB and YUVLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Lower flip test resolutionLaurent Pinchart
Testing all combinations of flipping and rotation is time consuming, speed it up by lowering the resolution to 640x480. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Don't convert formats in flip testsLaurent Pinchart
Use the same input and output formats to disable format conversion as the purpose of the tests is to test flipping. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Reset the rotation control before running the flip testsLaurent Pinchart
The rotation control can be set to a non-default value by a previously run test, reset it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-20tests: Add WPF flip update testsLaurent Pinchart
Test updating the vertical and horizontal flip controls during video streaming. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-20tests: Add WPF rotation and flip testsLaurent Pinchart
Test all combinations of horizontal flip, vertical flip and rotation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-20tests: Add CLU and LUT testLaurent Pinchart
Test CLU and LUT operation in both RGB and YUV modes with different look up tables. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-20vsp-lib: Replace vsp-runner script with a function from vsp-libLaurent Pinchart
This allows reusing variables internal to vsp-lib and getting rid of the mdev and format arguments to the vsp-runner invocations. As part of the transition, handle additional options with an explicit list of supported options instead of passing them straight to yavta. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Store the scaling configuration internallyLaurent Pinchart
This allows deciding whether to compare output frames using the exact or fuzzy algorithm internally, removing the need for an explicit argument to the compare_frames function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19tests: Perform scaling verification in fuzzy modeLaurent Pinchart
The reference frame generator scaling algorithm doesn't match the VSP scaler in a pixel-perfect fashion, use fuzzy comparision of the result. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19tests: Remove unneeded legacy pipeline configuration from HGO testLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19tests: Use YUV444M instead of UYVY for YUV input formatsLaurent Pinchart
Depending on the test this lowers the conversion errors or ensures a pixel-perfect match between the reference frame generator and the hardware. In the latter case we can now use the faster exact output verification method. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19tests: Add YUV422M and YUV444M support to YUV->YUV testLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19tests: Split RPF->WPF testLaurent Pinchart
The VSP instance that supports the largest number of RPF might not be the same as the one that supports the largest number of WPF. To maximize test coverage, split the test into RPF and WPF tests that can use different VSP instances. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Store the number of BRU inputs internallyLaurent Pinchart
Instead of getting the number of BRU inputs from an explicit argument to the compare_frames function, store it internally when configuring the pipeline. This simplifies the test scripts by removing the reftype argument to the compare_frames function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Don't pass WPF index and format to comparison functionsLaurent Pinchart
The information is already known to the pipeline configuration functions, store it internally and reuse it instead of having to pass it explicitly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Handle logging internallyLaurent Pinchart
Remove the need to pipe individual commands to the logger from the test scripts by moving all logging code internally to vsp-lib and vsp-runner. As an interesting side effect the removal of shell pipes from the test scripts avoids running functions in subshells. This makes it possible for the pipeline configuration functions to set variables that can be used later. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-05-19Initial commitLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>