Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th February 2015, 21:25   #1  |  Link
martin53
Registered User
 
Join Date: Mar 2007
Posts: 407
Automated Plugin Test Suite

After I made the 1st plugin, and before I write the doc and publish it, I felt the need for a test suite.

So here I'd like to hear suggestions, see attached files.

The test is implemented in a batch file (Test.cmd, run it to execute the test), which sets an environment variable in a test loop.
In the corresponding test script, the RT_Stats plugin can make the variable available to the script.
This variable controls the essential variations of the plugin.

I opened all variations once, and when I found the output OK, I saved the frame as the future automated test reference, 0.png to xx.png (this does not work with noise or random numbers in scripts, I stepped into that trap )

For the evaulation, the plugin output is compared to the resp. reference frame with the RGBDifference function in a runtime environment. And depending on the result, either "pass" or "fail" files are outout for each test step.
For a fail, the actual output is also written for easy comparision.

As the host to open the script, I chose AvsMeter.

EDIT
avs and cmd files have evolved quite a bit during the last weeks, so find actual version here. It is a test for the TfNLMeans fork i'm playing with.

Last edited by martin53; 8th March 2015 at 19:58. Reason: new suite version
martin53 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.