desktop/test/main.cpp.in

23 строки
573 B
C++

/*
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;
}