{"id":2654,"date":"2010-08-09T22:22:23","date_gmt":"2010-08-10T05:22:23","guid":{"rendered":"http:\/\/multimedia.cx\/eggs\/?p=2654"},"modified":"2010-08-09T22:22:23","modified_gmt":"2010-08-10T05:22:23","slug":"new-fate-test-coverage-system","status":"publish","type":"post","link":"https:\/\/multimedia.cx\/eggs\/new-fate-test-coverage-system\/","title":{"rendered":"New FATE Test Coverage System"},"content":{"rendered":"<p>I&#8217;ve been feeling a bit scattered for the last week since I was <a href=\"http:\/\/multimedia.cx\/eggs\/usurper-of-fate\/\">fired from my volunteer position as the FFmpeg QA manager<\/a>, wondering if there is anything I should attempt to do with the project. It can&#8217;t be denied that <a href=\"http:\/\/fate.ffmpeg.org\/\">the new system<\/a> is working well. But one area I&#8217;ve wondered about is test coverage.<\/p>\n<p>Under my old regime I <a href=\"http:\/\/wiki.multimedia.cx\/index.php?title=FATE_Test_Coverage\">tracked test coverage as a wiki page<\/a> which was a highly flawed method&#8211; tedious and error-prone. There are those 2 adjectives again&#8211; tedious and error-prone; whenever I see those, I search for automation methods. I think that might be more plausible thanks to the new FATE&#8217;s tighter integration with the FFmpeg build system.<\/p>\n<p>I don&#8217;t think anyone is working on this problem so I wanted to toss out a brainstorm:<\/p>\n<ol>\n<li>First, run &#8216;ffmpeg -formats&#8217;, &#8216;ffmpeg -codecs&#8217;, etc. and parse the output to collect a list of all the features (full list: -formats, -codecs, -bsfs, -protocols, -filters, -pix_fmts). Transform these lists into a standardized list of features, e.g., <code>\"DEVSD  ffvhuff         Huffyuv FFmpeg variant\"<\/code> represents features &#8216;decode-video-ffvhuff&#8217;, &#8216;encode-video-ffvhuff&#8217;, &#8216;ffvhuff-horizband&#8217;, and &#8216;ffvhuff-dr1&#8217;.<\/li>\n<li>Next, tag each individual test spec with the features that it exercises. E.g., test &#8216;fate-vqa-cc&#8217; exercises features &#8216;demux-wsvqa&#8217;, &#8216;decode-video-vqavideo&#8217;, and &#8216;decode-audio-adpcm_ima_ws&#8217;.<\/li>\n<li>Finally, compare the data from parts 1 and 2. Print a list of all the features that are not exercised in FATE.<\/li>\n<\/ol>\n<p>I think a lot of this could be implemented at the GNU make level. Then again, I&#8217;m no expert on GNU make syntax so I may be overestimating its capabilities. Or there might be simpler ways to automatically track test coverage stats based on the improved testing infrastructure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Accounting for FFmpeg&#8217;s test coverage in an automated manner<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-2654","post","type-post","status-publish","format-standard","hentry","category-fate-server"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/2654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/comments?post=2654"}],"version-history":[{"count":3,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/2654\/revisions"}],"predecessor-version":[{"id":2657,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/2654\/revisions\/2657"}],"wp:attachment":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/media?parent=2654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/categories?post=2654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/tags?post=2654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}