/*
* Copyright (c) 2007, 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Implementation for presence cache reader and writer.
*
*/
#include "ut_cntsimutility.h"
#include <qtest.h>
#include <stdio.h>
#include <qdebug.h>
#include <qfile.h>
#define LOG_TO_FILE
//QTEST_MAIN(TestOfTest);
int main(int argc, char *argv[])
{
#ifdef LOG_TO_FILE
bool promptOnExit(0);
for (int i=0; i<argc; i++) {
if (QString(argv[i]) == "-noprompt")
promptOnExit = false;
}
printf("Running tests...\n");
QApplication app(argc, argv);
QString entityTestsFileName = "c:/testsimutility_qt.xml";
QStringList args( "ut_cntsimutility");
args << "-xml" << "-o" << entityTestsFileName;
TestCntSimUtility simtests;
QTest::qExec(&simtests, args);
if (promptOnExit) {
printf("Press any key...\n");
getchar();
}
#else
QApplication app(argc, argv);
TestCntSimUtility simtests;
QStringList args( "ut_cntsimutility.exe");
QTest::qExec(&simtests, args);
#endif
return 0;
}