main.cpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #include <QtTest>
  2. #include <tests/tst_configuration.h>
  3. #include <tests/tst_cppwebapplication.h>
  4. #include <tests/tst_cppwebserver.h>
  5. #include <tests/tst_cppwebcontroller.h>
  6. #include <tests/tst_cstlcompiler.h>
  7. #include <tests/tst_cstlcompilerattributes.h>
  8. #include <tests/tst_cstlcompilerfor.h>
  9. #include <tests/tst_cstlcompilerif.h>
  10. #include <tests/tst_cstlcompilerimport.h>
  11. #include <tests/tst_cstlcompilerobject.h>
  12. #include <tests/tst_filemanager.h>
  13. #include <tests/tst_filter.h>
  14. #include <tests/tst_filterchain.h>
  15. #include <tests/tst_httpparser.h>
  16. #include <tests/tst_httpreadrequest.h>
  17. #include <tests/tst_request.h>
  18. #include <tests/tst_response.h>
  19. #include <tests/tst_session.h>
  20. #include <tests/tst_metaclassparser.h>
  21. #include <tests/tst_properties.h>
  22. #include <tests/tst_qlistobject.h>
  23. #include <tests/tst_qmapthreadsafety.h>
  24. #include <tests/tst_requestdispatcher.h>
  25. #include <tests/tst_cstlcompilerout.h>
  26. #include <tests/tst_urlencoder.h>
  27. int main(int argc, char** argv)
  28. {
  29. int status = 0;
  30. auto ASSERT_TEST = [&status, argc, argv](QObject* obj) { status |= QTest::qExec(obj, argc, argv); delete obj; };
  31. ASSERT_TEST(new TST_Configuration);
  32. ASSERT_TEST(new TST_CppWebApplication);
  33. ASSERT_TEST(new TST_CppWebServer);
  34. ASSERT_TEST(new TST_CppWebController);
  35. ASSERT_TEST(new TST_CSTLCompiler);
  36. ASSERT_TEST(new TST_CSTLCompilerAttributes);
  37. ASSERT_TEST(new TST_CSTLCompilerFor);
  38. ASSERT_TEST(new TST_CSTLCompilerIf);
  39. ASSERT_TEST(new TST_CSTLCompilerImport);
  40. ASSERT_TEST(new TST_CSTLCompilerObject);
  41. ASSERT_TEST(new TST_FileManager);
  42. ASSERT_TEST(new TST_Filter);
  43. ASSERT_TEST(new TST_FilterChain);
  44. ASSERT_TEST(new TST_HttpParser);
  45. ASSERT_TEST(new TST_HttpReadRequest);
  46. ASSERT_TEST(new TST_Request);
  47. ASSERT_TEST(new TST_Response);
  48. ASSERT_TEST(new TST_Session);
  49. ASSERT_TEST(new TST_MetaClassParser);
  50. ASSERT_TEST(new TST_Properties);
  51. ASSERT_TEST(new TST_QListObject);
  52. ASSERT_TEST(new TST_QMapThreadSafety);
  53. ASSERT_TEST(new TST_RequestDispatcher);
  54. ASSERT_TEST(new TST_URLEncoder);
  55. ASSERT_TEST(new TST_CSTLCompilerOut);
  56. return status;
  57. }