• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

doc/23-Nov-2023-76,21475,445

MakefileD23-Nov-20232.7 KiB8644

READMED23-Nov-20235.5 KiB127111

dev_video.cD23-Nov-20232.2 KiB12294

dev_video.hD23-Nov-2023246 133

test_VIDIOC_AUDIO.cD23-Nov-202314.3 KiB527348

test_VIDIOC_AUDIO.hD23-Nov-2023553 208

test_VIDIOC_AUDOUT.cD23-Nov-202313.9 KiB511334

test_VIDIOC_AUDOUT.hD23-Nov-2023562 208

test_VIDIOC_CROP.cD23-Nov-202326.4 KiB800575

test_VIDIOC_CROP.hD23-Nov-2023501 186

test_VIDIOC_CROPCAP.cD23-Nov-20238.9 KiB288196

test_VIDIOC_CROPCAP.hD23-Nov-2023289 133

test_VIDIOC_CTRL.cD23-Nov-202325.8 KiB925675

test_VIDIOC_CTRL.hD23-Nov-2023529 209

test_VIDIOC_ENUMAUDIO.cD23-Nov-20235.1 KiB199138

test_VIDIOC_ENUMAUDIO.hD23-Nov-2023499 175

test_VIDIOC_ENUMAUDOUT.cD23-Nov-20235.6 KiB208141

test_VIDIOC_ENUMAUDOUT.hD23-Nov-2023383 155

test_VIDIOC_ENUMINPUT.cD23-Nov-20235.6 KiB211144

test_VIDIOC_ENUMINPUT.hD23-Nov-2023526 186

test_VIDIOC_ENUMOUTPUT.cD23-Nov-20235.3 KiB209150

test_VIDIOC_ENUMOUTPUT.hD23-Nov-2023383 155

test_VIDIOC_ENUMSTD.cD23-Nov-20235.6 KiB215149

test_VIDIOC_ENUMSTD.hD23-Nov-2023514 186

test_VIDIOC_ENUM_FMT.cD23-Nov-202315.1 KiB484356

test_VIDIOC_ENUM_FMT.hD23-Nov-2023591 196

test_VIDIOC_ENUM_FRAMESIZES.cD23-Nov-202319.2 KiB676539

test_VIDIOC_ENUM_FRAMESIZES.hD23-Nov-2023377 144

test_VIDIOC_EXT_CTRLS.cD23-Nov-202318.5 KiB717519

test_VIDIOC_EXT_CTRLS.hD23-Nov-2023636 2210

test_VIDIOC_FMT.cD23-Nov-202351.1 KiB1,5911,132

test_VIDIOC_FMT.hD23-Nov-2023412 185

test_VIDIOC_FREQUENCY.cD23-Nov-202321 KiB792587

test_VIDIOC_FREQUENCY.hD23-Nov-2023695 229

test_VIDIOC_G_SLICED_VBI_CAP.cD23-Nov-20234.1 KiB153111

test_VIDIOC_G_SLICED_VBI_CAP.hD23-Nov-2023313 133

test_VIDIOC_INPUT.cD23-Nov-20237 KiB303219

test_VIDIOC_INPUT.hD23-Nov-2023373 165

test_VIDIOC_JPEGCOMP.cD23-Nov-20232.8 KiB12487

test_VIDIOC_JPEGCOMP.hD23-Nov-2023252 122

test_VIDIOC_LOG_STATUS.cD23-Nov-20231.1 KiB5229

test_VIDIOC_LOG_STATUS.hD23-Nov-2023212 111

test_VIDIOC_MODULATOR.cD23-Nov-20236.6 KiB258188

test_VIDIOC_MODULATOR.hD23-Nov-2023388 155

test_VIDIOC_OUTPUT.cD23-Nov-20236.8 KiB298218

test_VIDIOC_OUTPUT.hD23-Nov-2023436 175

test_VIDIOC_PARM.cD23-Nov-20239.1 KiB329247

test_VIDIOC_PARM.hD23-Nov-2023283 133

test_VIDIOC_PRIORITY.cD23-Nov-20237.2 KiB281202

test_VIDIOC_PRIORITY.hD23-Nov-2023370 155

test_VIDIOC_QUERYBUF.cD23-Nov-202315.3 KiB507404

test_VIDIOC_QUERYBUF.hD23-Nov-2023678 2010

test_VIDIOC_QUERYCAP.cD23-Nov-20233.8 KiB14695

test_VIDIOC_QUERYCAP.hD23-Nov-2023305 132

test_VIDIOC_QUERYCTRL.cD23-Nov-202319.9 KiB713525

test_VIDIOC_QUERYCTRL.hD23-Nov-2023564 199

test_VIDIOC_QUERYMENU.cD23-Nov-20239.6 KiB401302

test_VIDIOC_QUERYMENU.hD23-Nov-2023383 155

test_VIDIOC_QUERYSTD.cD23-Nov-20232.3 KiB9660

test_VIDIOC_QUERYSTD.hD23-Nov-2023248 122

test_VIDIOC_REQBUFS.cD23-Nov-202312.9 KiB449348

test_VIDIOC_REQBUFS.hD23-Nov-2023578 218

test_VIDIOC_STD.cD23-Nov-202314.5 KiB532401

test_VIDIOC_STD.hD23-Nov-2023451 176

test_VIDIOC_TUNER.cD23-Nov-202315.1 KiB568427

test_VIDIOC_TUNER.hD23-Nov-2023478 198

test_invalid_ioctl.cD23-Nov-20231.2 KiB6440

test_invalid_ioctl.hD23-Nov-2023310 154

v4l2_foreach.cD23-Nov-20232.3 KiB9064

v4l2_foreach.hD23-Nov-2023356 153

v4l2_show.cD23-Nov-20233.7 KiB166139

v4l2_show.hD23-Nov-2023535 185

v4l2_test.cD23-Nov-202318.9 KiB488354

v4l2_test.hD23-Nov-2023460 228

v4l2_validator.cD23-Nov-20232 KiB11085

v4l2_validator.hD23-Nov-2023454 175

video_limits.hD23-Nov-2023631 2911

README

1
2           v4l-test: Test environment for Video For Linux Two API
3
4Release History
5---------------
623 Jul 2009  0.17 Test cases added for VIDIOC_ENUM_FRAMESIZES and
7                  VIDIOC_G_JPEGCOMP. New V4L2_PIX_FMT_* formats also
8                  used in test cases.
9 6 Jul 2009  0.16 Iterate through all available inputs in VIDIOC_G_STD and
10                  VIDIOC_S_STD test cases
1125 May 2009  0.15 Test cases added for VIDIOC_G_EXT_CTRLS, VIDIOC_S_EXT_CTRLS
12                  and VIDIOC_TRY_EXT_CTRLS
13 7 May 2009  0.14 Test cases added for VIDIOC_QUERYBUF;
14                  Debug functions separated
1529 Apr 2009  0.13 Added string content validation;
16                  Test cases added for VIDIOC_REQBUFS
1719 Apr 2009  0.12 Test cases added for VIDIOC_S_FMT;
18                  NULL parameter test suite split to read only, write only
19                  and write/read ioctl suite;
20                  More verbose debug output in VIDIOC_S_FREQUENCY and in some
21                  other test cases;
22                  More strict check added for strings in different test cases
23 9 Apr 2009  0.11 Test cases added for VIDIOC_G_OUTPUT, VIDIOC_S_OUTPUT,
24                  VIDIOC_G_FMT, VIDIOC_G_SLICED_VBI_CAP, VIDIOC_QUERYMENU;
25                  Cleaned up ret and errno variable names;
26                  Separated the NULL parameter test cases to a spearated testsuite
27                  and reworked most of the NULL parameter test cases;
28                  Added camera enabling through /sys/devices/platform/eeepc/camera;
29                  Added results page to documentation;
30                  Follow kernel API changes in video_dummy.ko
3118 Mar 2009  0.10 Test cases added for VIDIOC_G_PARM;
32                  Duplicated test for V4L2_BUF_TYPE_VIDEO_CAPTURE removed in
33                  VIDIOC_ENUM_FMT test
3414 Mar 2009  0.9  Test cases added for VIDIOC_S_CROP;
35                  Test steps added for VIDIOC_S_CTRL
3622 Feb 2009  0.8  Test cases added for VIDIOC_G_CROP, VIDIOC_G_CTRL and VIDIOC_S_CTRL
37 9 Feb 2009  0.7  Test cases added for VIDIOC_G_AUDIO, VIDIOC_G_AUDOUT,
38                  VIDIOC_S_AUDIO and VIDIOC_G_CROP;
39                  Added video_dummy kernel driver to verify the test
40                  environment;
41                  Some cleanup
42 4 Feb 2009  0.6  Test cases added for VIDIOC_G_AUDIO, VIDIOC_G_AUDOUT,
43                  VIDIOC_G_MODULATOR, VIDIOC_G_PRIORITY, VIDIOC_S_PRIORITY
44                  and VIDIOC_S_FREQUENCY
4531 Jan 2009  0.5  Test cases added for VIDIOC_QUERYSTD, VIDIOC_G_FREQUENCY
46                  and VIDIOC_G_TUNER
4724 Jan 2009  0.4  Test cases for MAX_EM28XX_INPUT, MAX_EM28XX_TVNORMS removed;
48                  some typos fixed
49 4 Jan 2008  0.3  Test cases for VIDIOC_ENUMOUTPUT, VIDIOC_ENUMAUDOUT,
50                  VIDIOC_QUERYCTRL added;
51                  New test cases for VIDIOC_ENUMAUDIO, VIDIOC_ENUM_FMT,
52                  VIDIOC_ENUM_STD
5322 Dec 2008  0.2  Test cases with NULL parameter added;
54                  Test cases for VIDIOC_CROPCAP added
5518 Dec 2008  0.1  First release
56
57Written by M�rton N�meth <nm127@freemail.hu>
58Released under GPL
59
60What is this?
61-------------
62v4l-test is a test environment for V4L2 drivers. The V4L2 drivers
63are running under Linux in kernel space. This test environment is running
64in userspace and tries what normal video application would do. It also
65tries some things which are supposed to test the error handling mechanisms
66of a V4L2 driver. These are the "invalid test cases".
67
68The V4L2 API only covers webcams and analog tuner cards, the digital broadcast
69is out of the scope of V4L2 API so it is also out of the scope of this test
70environment. See Linux DVB API at http://linuxtv.org/docs/dvbapi/dvbapi.html
71for digital broadcast and Chapter 6.3 "Relation of V4L2 to other Linux multimedia APIs"
72in V4L2 specification.
73
74How to build?
75-------------
76To build the test environment you will need a C compiler, "make" and the
77CUnit development files installed. Just type "make" and the test environment
78is ready.
79
80How to run?
81-----------
82You need to have a video device (i.e. webcam, tuner card, etc.) connected
83to your system and available under /dev/video0. If you don't have any
84hardware device available, you can still test the "Virtual Video Driver".
85To compile this you need to compile your kernel with CONFIG_VIDEO_VIVI=m
86under:
87
88  -> Device Drivers
89    -> Multimedia devices
90      -> Video For Linux
91        -> Video capture adapters
92         -> Virtual Video Driver
93
94At this point you can execute v4l-test.
95
96Video for Linux Two Specification
97---------------------------------
98The V4L2 API specification can be found at http://v4l2spec.bytesex.org/spec/ .
99Revision 0.42 of V4L2 is the base for this test environment.
100
101Code Coverage
102-------------
103The code coverage shows which lines of the code were executed and how many
104times. The measurement results gives you a feedback about the quality of
105the test cases.
106You can measure the code coverage of a kernel module with the gocv and lcov
107softwares. See http://ltp.sourceforge.net/coverage/gcov.php and
108http://ltp.sourceforge.net/coverage/lcov.php for details.
109
110Current status
111--------------
112Currently all test are running and evaluated automatically. This might
113change in future if we want to test for example plugging and unplugging
114a USB video device or ask the user if a received picture make sense or not.
115
116See doc/index.html about how much of the specification is covered by the
117different test cases.
118
119See also
120--------
121See also doc/index.html for further references and recommended readings.
122
123Feedbacks
124---------
125Any feedbacks, comments, ideas, etc. are welcome at the author's
126email address: M�rton N�meth <nm127@freemail.hu>.
127