v4l-test 0.16 for LTP
PATCH 1/1 v4l-test 0.16 for LTP
Hi,
this is v4l-test 0.16 for LTP.
Changes:
Iterate through all available inputs in VIDIOC_G_STD and VIDIOC_S_STD test cases
Regards,
Márton Németh
---
v4l-test home page: http://v4l-test.sourceforge.net/
testcases/kernel/device-drivers/v4l/user_space/doc/index.html +45 -2
@@ -510,6 +510,18 @@ influence on the V4L2 API functions:</p> <td>Resume</td> <td>no</td> </tr> + <tr> + <td>Check for memory leak (e.g. analyze /proc/slab_allocators)</td> + <td>no</td> + </tr> + <tr> + <td>Opening /dev/video0 multiple times</td> + <td>no</td> + </tr> + <tr> + <td>Using /dev/video0 from a multi-threaded or multi-process environment paralell</td> + <td>no</td> + </tr> </tbody> </table>
@@ -555,12 +567,43 @@ The following documents and articles are writen by <a href="http://moinejf.free.fr/">Jean-François Moine</a> </li> </ul> +<p> +For USB or V4L loopback testing: +</p> +<ul> + <li> + <a href="http://sourceforge.net/projects/usbip/">USB/IP</a> + </li> + <li> + <a href="http://www.linux-usb.org/gadget/">Linux-USB Gadget API Framework</a> + </li> + <li> + <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/VideoFourLinuxLoopbackDevice"> + Video4Linux Loopback Device + </a> + </li> +</ul> +<p> +And what else can we read if we are looking for webcam test ideas: +</p> +<ul> + <li> + <a href="http://www.microsoft.com/whdc/device/media/vidcap-drvtest.mspx"> + Testing Windows Video Capture Drivers + </a> + </li> + <li> + <a href="http://www.microsoft.com/whdc/device/media/WebCam_VidTests.mspx"> + Webcam Video Fidelity Tests + </a> +</ul> <h2><a name="feedback">Feedbacks</a></h2> -<p>Any feedbacks, comments, ideas, etc. are welcome at the author's email address.</p> +<p>Any feedbacks, comments, ideas, etc. are welcome at the author's email address. +You can find the email address in the source package in the README file.</p> <hr style="width: 100%; height: 2px;"> <p>Last changed: -Mon May 25 08:08:11 CEST 2009 +Wed Jun 3 08:35:10 CEST 2009 </p> <p> <a href="http://validator.w3.org/check?uri=referer"><img
testcases/kernel/device-drivers/v4l/user_space/Makefile +2 -0
@@ -1,6 +1,7 @@ # # v4l-test: Test environment for Video For Linux Two API # +# 5 Jul 2009 0.18 v4l2_foreach.c added # 19 May 2009 0.17 test_VIDIOC_EXT_CTRLS.c added # 7 May 2009 0.16 v4l2_show.c added # 5 May 2009 0.15 test_VIDIOC_QUERYBUF.c added
@@ -38,6 +39,7 @@ LDFLAGS = -lcunit OBJS = dev_video.o \ v4l2_validator.o \ + v4l2_foreach.o \ test_VIDIOC_QUERYCAP.o \ test_VIDIOC_ENUMAUDIO.o \ test_VIDIOC_ENUMAUDOUT.o \
testcases/kernel/device-drivers/v4l/user_space/README +5 -8
@@ -3,6 +3,8 @@ Release History --------------- + 6 Jul 2009 0.16 Iterate through all available inputs in VIDIOC_G_STD and + VIDIOC_S_STD test cases 25 May 2009 0.15 Test cases added for VIDIOC_G_EXT_CTRLS, VIDIOC_S_EXT_CTRLS and VIDIOC_TRY_EXT_CTRLS 7 May 2009 0.14 Test cases added for VIDIOC_QUERYBUF;
@@ -111,14 +113,9 @@ a USB video device or ask the user if a See doc/index.html about how much of the specification is covered by the different test cases. -Similar projects ----------------- - - v4ltest: http://www.linuxowl.com/v4ltest.html - - test cases in dvb-apps repository, under /test directory: http://linuxtv.org/hg/dvb-apps/file - - test cases in v4l-dvb repository, under /v4l2-apps/test directory: -http://linuxtv.org/hg/v4l-dvb/file - - this test environment is also available under Linux Test Project (LTP), - under directory testcases/kernel/device-drivers/v4l/user_space: http://ltp.sourceforge.net/ +See also +-------- +See also doc/index.html for further references and recommended readings. Feedbacks ---------
testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_ENUMINPUT.c +3 -17
@@ -1,6 +1,7 @@/* * v4l-test: Test environment for Video For Linux Two API * +* 5 Jul 2009 0.10 show_v4l2_input() introduced * 20 Apr 2009 0.9 Added string content validation * 19 Apr 2009 0.8 Also check std field * 18 Apr 2009 0.7 More strict check for strings
@@ -35,6 +36,7 @@#include "dev_video.h" #include "video_limits.h" #include "v4l2_validator.h" +#include "v4l2_show.h" #include "test_VIDIOC_ENUMINPUT.h"
@@ -86,23 +88,7 @@ void test_VIDIOC_ENUMINPUT() { input2.status = input.status;CU_ASSERT_EQUAL (memcmp (&input, &input2,sizeof (input)),0 ); -dprintf ("\tinput = {.index=%u, .name=\"%s\", " -".type=0x%X, .audioset=0x%X, .tuner=0x%X, " -".std=%llX, " -".status=0x%X, " -".reserved[]={ 0x%X, 0x%X, 0x%X, 0x%X } }\n" , - input.index, - input.name, - input.type, - input.audioset, - input.tuner, - input.std, - input.status, - input.reserved[0 ], - input.reserved[1 ], - input.reserved[2 ], - input.reserved[3 ] - ); +show_v4l2_input (&input); }else {CU_ASSERT_EQUAL (ret_enum,-1 );
testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_STD.c +214 -86
416 lines not on this page · raw message
testcases/kernel/device-drivers/v4l/user_space/v4l2_foreach.c +83 -0
83 lines not on this page · raw message
testcases/kernel/device-drivers/v4l/user_space/v4l2_foreach.h +14 -0
@@ -0,0 +1,14 @@ +/* +* v4l-test: Test environment for Video For Linux Two API +* +* 5 Jul 2009 0.1 First release +* +* Written by M�rton N�meth <[email protected]> +* Released under GPL +*/ + +#include <linux/videodev2.h> + +typedef void (*V4L2InputTestFunc )(int ret_input_enum,int errno_input_enum,struct v4l2_input * input); + +void foreach_input (V4L2InputTestFunc pFunc);
testcases/kernel/device-drivers/v4l/user_space/v4l2_show.c +21 -0
@@ -1,6 +1,7 @@/* * v4l-test: Test environment for Video For Linux Two API * +* 5 Jul 2009 0.2 show_v4l2_input() introduced * 7 May 2009 0.1 First release * * Written by M�rton N�meth <[email protected]>
@@ -114,3 +115,23 @@ void show_v4l2_buffer(struct v4l2_buffer ); } + +void show_v4l2_input (struct v4l2_input *input) { +dprintf ("\tinput = {.index=%u, .name=\"%s\", " +".type=0x%X, .audioset=0x%X, .tuner=0x%X, " +".std=%llX, " +".status=0x%X, " +".reserved[]={ 0x%X, 0x%X, 0x%X, 0x%X } }\n" , + input->index, + input->name, + input->type, + input->audioset, + input->tuner, + input->std, + input->status, + input->reserved[0 ], + input->reserved[1 ], + input->reserved[2 ], + input->reserved[3 ] + ); +}
testcases/kernel/device-drivers/v4l/user_space/v4l2_show.h +2 -0
@@ -1,6 +1,7 @@/* * v4l-test: Test environment for Video For Linux Two API * +* 5 Jul 2009 0.2 show_v4l2_input() introduced * 7 May 2009 0.1 First release * * Written by M�rton N�meth <[email protected]>
@@ -11,3 +12,4 @@void show_v4l2_requestbuffers (struct v4l2_requestbuffers *reqbuf);void show_v4l2_buffer (struct v4l2_buffer *buf); +void show_v4l2_input (struct v4l2_input *input);
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 9 lines · Németh Márton
Hi,
this is v4l-test 0.16 for LTP.
Changes:
Iterate through all available inputs inVIDIOC_G_STDandVIDIOC_S_STDtest casesSigned-off-by Márton Németh <[email protected]>
Thanks.
Regards--
Subrata
Quoted 7 lines
Regards,
Márton Németh
---
v4l-test home page: http://v4l-test.sourceforge.net/
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list