test.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright (C) 2009 Mamadou Diop.
  3. *
  4. * Contact: Mamadou Diop <diopmamadou(at)doubango.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 Lesser 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 <string.h>
  23. #include <stdlib.h>
  24. #include "tinyrtp.h"
  25. #define LOOP 1
  26. #define RUN_TEST_ALL 0
  27. #define RUN_TEST_PARSER 0
  28. #define RUN_TEST_MANAGER 1
  29. #include "test_parser.h"
  30. #include "test_manager.h"
  31. #ifdef _WIN32_WCE
  32. int _tmain(int argc, _TCHAR* argv[])
  33. #else
  34. int main()
  35. #endif
  36. {
  37. tnet_startup();
  38. do {
  39. /* Print copyright information */
  40. printf("Doubango Project\nCopyright (C) 2009-2010 Mamadou Diop \n\n");
  41. #if RUN_TEST_PARSER || RUN_TEST_ALL
  42. test_parser();
  43. #endif
  44. #if RUN_TEST_MANAGER || RUN_TEST_ALL
  45. test_manager();
  46. #endif
  47. }
  48. while(LOOP);
  49. tnet_cleanup();
  50. return 0;
  51. }