test.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Copyright (C) 2009 Mamadou Diop.
  3. *
  4. * Contact: Mamadou Diop <diopmamadou(at)doubango[dot]org>
  5. *
  6. * This file is part of Open Source Doubango Framework.
  7. *
  8. * DOUBANGO is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * DOUBANGO is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with DOUBANGO.
  20. *
  21. */
  22. #include "stdafx.h"
  23. #include "tinysip.h"
  24. #include "test_sipmessages.h"
  25. #include "test_uri.h" /*SIP/SIPS/TEL*/
  26. #include "test_transac.h"
  27. #include "test_stack.h"
  28. #include "test_imsaka.h"
  29. #define RUN_TEST_LOOP 1
  30. #define RUN_TEST_ALL 0
  31. #define RUN_TEST_MESSAGES 1
  32. #define RUN_TEST_URI 0
  33. #define RUN_TEST_TRANSAC 0
  34. #define RUN_TEST_STACK 0
  35. #define RUN_TEST_IMS_AKA 0
  36. #ifdef _WIN32_WCE
  37. int _tmain(int argc, _TCHAR* argv[])
  38. #else
  39. int main()
  40. #endif
  41. {
  42. tnet_startup();
  43. #if RUN_TEST_LOOP
  44. for(;;)
  45. #endif
  46. {
  47. /* Print copyright information */
  48. printf("Doubango Project\nCopyright (C) 2009 - 2010 Mamadou Diop \n\n");
  49. #if RUN_TEST_ALL || RUN_TEST_MESSAGES
  50. test_messages();
  51. #endif
  52. #if RUN_TEST_ALL || RUN_TEST_URI
  53. test_uri();
  54. #endif
  55. #if RUN_TEST_ALL ||RUN_TEST_TRANSAC
  56. test_transac();
  57. #endif
  58. #if RUN_TEST_ALL || RUN_TEST_STACK
  59. test_stack();
  60. #endif
  61. #if RUN_TEST_ALL || RUN_TEST_IMS_AKA
  62. test_imsaka();
  63. #endif
  64. }
  65. tnet_cleanup();
  66. return 0;
  67. }