[asterisk-dev] About asterisk development plans
John Lange
john at johnlange.ca
Wed Mar 18 16:13:45 CDT 2009
On Wed, 2009-03-18 at 22:56 +0200, Tzafrir Cohen wrote:
> How can they be tested?
>
> Let's take one case: CDR to either sqlite or CSV (those two cases are
> the simplest as they require no third-party DB).
>
> Can you come up with a system that starts Asterisk, runs a number of
> scenarios automatically, and cheks of the CDR is OK?
Yes. Perhaps I'm not understanding something about your question? This
is *nix, automation and scripting is what it does well.
For example, CDR. Since the tests are the same every time, the CDR
should be the same. Just a simple "diff" comparing the CDRs would flag
anything that changed. Something similar could probably done with AMI
and even console output just to flag abnormalities.
Once the testing suite is working well I'd think you'd cron it to run
daily pulling in the latest SVN and reporting results.
> * Starting up Asterisk from within the Asterisk build tree:
> contrib/scripts/live_ast .
>
> * It's easy to make calls within one Asterisk.
>
> * sipp can be used to add some SIP calls into the mix.
>
> * What about a second Asterisk?
Again, I don't think I'm understanding what you feel the problem is? The
two systems are connected together. You trigger something on Box A and
look for results on Box B (or a combination of A & B depending on the
test).
--
John Lange
http://www.johnlange.ca
More information about the asterisk-dev
mailing list