Sat Apr 26 2014 22:03:19

Asterisk developer's documentation


test.c File Reference

Unit Test Framework. More...

#include "asterisk.h"
#include "asterisk/_private.h"
Include dependency graph for test.c:

Go to the source code of this file.

Functions

int ast_test_init ()
 ASTERISK_FILE_VERSION (__FILE__,"$Revision: 401661 $")

Detailed Description

Unit Test Framework.

Author:
David Vossel <dvossel@digium.com>
Russell Bryant <russell@digium.com>

Definition in file test.c.


Function Documentation

int ast_test_init ( void  )

Provided by test.c

Definition at line 941 of file test.c.

References ARRAY_LEN, ast_cli_register_multiple(), and ast_register_atexit().

Referenced by main().

{
#ifdef TEST_FRAMEWORK
   /* Register cli commands */
   ast_cli_register_multiple(test_cli, ARRAY_LEN(test_cli));
   ast_register_atexit(test_shutdown);
#endif

   return 0;
}
ASTERISK_FILE_VERSION ( __FILE__  ,
"$Revision: 401661 $"   
)