Difference between revisions of "XmltvValidation"

From XMLTV
Jump to: navigation, search
 
m (tv_validate_file: fix typo and link to manpage instead of suggesting to use perldoc)
Line 7: Line 7:
 
===tv_validate_file===
 
===tv_validate_file===
  
tv_validate_file checks an xmltv-file against the xmltv dtd and the other rules defined in [[XMLTVFormat]]. See ''perldoc tv_validate_file'' for instruvtions.
+
tv_validate_file checks an xmltv file against the xmltv dtd and the other rules defined in [[XMLTVFormat]]. See {{manpage|tv_validate_file|1}} for instructions.
 +
 
 
===test_grabbers===
 
===test_grabbers===
  

Revision as of 12:58, 2 May 2012

Validation

The xmltv distribution contains a number of tools that can help you validate that a grabber behaves the way it is expected to.

tv_validate_grabber

tv_validate_grabber tests one grabber to see that it supports the correct command-line parameters and that it produces the correct output. See perldoc tv_validate_grabber for instructions.

tv_validate_file

tv_validate_file checks an xmltv file against the xmltv dtd and the other rules defined in XMLTVFormat. See tv_validate_file(1) for instructions.

test_grabbers

The test_grabbers script is used to test all grabbers in the distribution at once. It can be found under grab/ in the source distribution of xmltv. To run it, cd to an empty directory and run it from there. It will automatically test all grabbers found in subdirectories relative to itself. It uses test.conf-files found in the subdirectory for each grabber. These can be created with

% ./grab/test_grabbers --configure --only xx

The test_grabbers script is run every night and published on the web. See XmltvStatus.