main.cpp.in 573 B

12345678910111213141516171819202122
  1. /*
  2. This software is in the public domain, furnished "as is", without technical
  3. support, and with no warranty, express or implied, as to its usefulness for
  4. any purpose.
  5. */
  6. #include <QtCore>
  7. #include <QtTest>
  8. #include "test@OWNCLOUD_TEST_CLASS_LOWERCASE@.h"
  9. // #include "moc_test@OWNCLOUD_TEST_CLASS_LOWERCASE@.cpp"
  10. int main( int argc, char** argv)
  11. {
  12. QCoreApplication app( argc, argv );
  13. #define TEST( Type ) { \
  14. Type o; \
  15. if (int r = QTest::qExec( &o, argc, argv ) != 0) return r; }
  16. TEST( Test@OWNCLOUD_TEST_CLASS@ );
  17. return 0;
  18. }