test.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (C) 2009 Mamadou Diop.
  3. * Copyright (C) 2012 Doubango Telecom <http://www.doubango.org>
  4. *
  5. * This file is part of Open Source Doubango Framework.
  6. *
  7. * DOUBANGO is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * DOUBANGO is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with DOUBANGO.
  19. *
  20. */
  21. #include "stdafx.h"
  22. #include "tsk.h"
  23. #include "tsdp.h"
  24. #include "tinysdp/parsers/tsdp_parser_message.h"
  25. #define RUN_TEST_LOOP 1
  26. #define RUN_TEST_ALL 0
  27. #define RUN_TEST_PARSER 1
  28. #define RUN_TEST_SOA 0
  29. #define RUN_TEST_RFC5939 0
  30. #include "test_parser.h"
  31. #include "test_soa.h"
  32. #if RUN_TEST_RFC5939 || RUN_TEST_PARSER
  33. //#include "test_rfc5939.h"
  34. #endif
  35. #ifdef _WIN32_WCE
  36. int _tmain(int argc, _TCHAR* argv[])
  37. #else
  38. int main()
  39. #endif
  40. {
  41. do {
  42. /* Print copyright information */
  43. printf("Doubango Project\nCopyright (C) 2009 - 2010 Mamadou Diop \n\n");
  44. #if RUN_TEST_ALL || RUN_TEST_PARSER
  45. test_parser();
  46. #endif
  47. #if RUN_TEST_ALL || RUN_TEST_SOA
  48. test_soa();
  49. #endif
  50. #if RUN_TEST_ALL || RUN_TEST_RFC5939
  51. test_rfc5939();
  52. #endif
  53. }
  54. while(RUN_TEST_LOOP);
  55. }