nextcloud-desktop/test/main.cpp.in

23 lines
573 B
C++
Raw Normal View History

2012-10-26 22:24:12 +04:00
/*
This software is in the public domain, furnished "as is", without technical
support, and with no warranty, express or implied, as to its usefulness for
any purpose.
*/
#include <QtCore>
#include <QtTest>
#include "test@OWNCLOUD_TEST_CLASS_LOWERCASE@.h"
// #include "moc_test@OWNCLOUD_TEST_CLASS_LOWERCASE@.cpp"
int main( int argc, char** argv)
{
QCoreApplication app( argc, argv );
#define TEST( Type ) { \
Type o; \
if (int r = QTest::qExec( &o, argc, argv ) != 0) return r; }
TEST( Test@OWNCLOUD_TEST_CLASS@ );
return 0;
}