[asterisk-dev] [Code Review]: Predial testsuite test.

rmudgett reviewboard at asterisk.org
Thu Jul 5 17:19:45 CDT 2012



> On July 5, 2012, 4:30 p.m., Matt Jordan wrote:
> > /asterisk/trunk/tests/predial/run-test, lines 24-26
> > <https://reviewboard.asterisk.org/r/2006/diff/1/?file=29332#file29332line24>
> >
> >     You don't need this

Removed


> On July 5, 2012, 4:30 p.m., Matt Jordan wrote:
> > /asterisk/trunk/tests/predial/run-test, line 29
> > <https://reviewboard.asterisk.org/r/2006/diff/1/?file=29332#file29332line29>
> >
> >     The default value for passed is False

Removed


> On July 5, 2012, 4:30 p.m., Matt Jordan wrote:
> > /asterisk/trunk/tests/predial/run-test, lines 182-191
> > <https://reviewboard.asterisk.org/r/2006/diff/1/?file=29332#file29332line182>
> >
> >     May as well remove these

Removed


> On July 5, 2012, 4:30 p.m., Matt Jordan wrote:
> > /asterisk/trunk/tests/predial/test-config.yaml, lines 13-14
> > <https://reviewboard.asterisk.org/r/2006/diff/1/?file=29333#file29333line13>
> >
> >     Tags are generally only useful if we expect there to be multiple tests for a particular component or if a number of tests have some logical group.  A single test can be run with the '--test' option.
> >     
> >     If you think there will be more predial tests then by all means keep it - otherwise, it may not be needed.
> >     
> >     (This may, however, be useful for the Dial and FollowMe applications - which could have more tests)

It should not hurt anything to leave it.


> On July 5, 2012, 4:30 p.m., Matt Jordan wrote:
> > /asterisk/trunk/tests/predial/run-test, line 66
> > <https://reviewboard.asterisk.org/r/2006/diff/1/?file=29332#file29332line66>
> >
> >     This can be written:
> >     
> >     self.test_series += 1

All += changes done.


> On July 5, 2012, 4:30 p.m., Matt Jordan wrote:
> > /asterisk/trunk/tests/predial/configs/ast1/extensions.conf, lines 28-34
> > <https://reviewboard.asterisk.org/r/2006/diff/1/?file=29330#file29330line28>
> >
> >     You may run into timing dependent problems since this is waiting on a menu option to be played back.  If so, you'll need to use TestEvents (which would already be fired if this is using file.c's / app.c's common play sound file methods) to 'listen' for when the sound file has finished, then use redirects to send the DTMF.
> >     
> >     Hopefully that won't be necessary, as that does make the test more complex.

You mean the tests don't run in real time? :)


- rmudgett


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2006/#review6615
-----------------------------------------------------------


On June 29, 2012, 5:34 p.m., rmudgett wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2006/
> -----------------------------------------------------------
> 
> (Updated June 29, 2012, 5:34 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Exercises the Dial and FollowMe applications predial subroutine handlers.
> 
> 
> This addresses bug SWP-4204.
>     https://issues.asterisk.org/jira/browse/SWP-4204
> 
> 
> Diffs
> -----
> 
>   /asterisk/trunk/tests/predial/test-config.yaml PRE-CREATION 
>   /asterisk/trunk/tests/tests.yaml 3284 
>   /asterisk/trunk/tests/predial/configs/ast1/followme.conf PRE-CREATION 
>   /asterisk/trunk/tests/predial/run-test PRE-CREATION 
>   /asterisk/trunk/tests/predial/configs/ast1/extensions.conf PRE-CREATION 
> 
> Diff: https://reviewboard.asterisk.org/r/2006/diff
> 
> 
> Testing
> -------
> 
> The test passes.
> 
> 
> Thanks,
> 
> rmudgett
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120705/db8919a2/attachment-0001.htm>


More information about the asterisk-dev mailing list