int main(int argc, char **argv) { QApplication app(argc, argv); DataGenerator tester; tester.run(argc, argv); return 0; }
bool atWrapper::executeTests() { qDebug("Executing the tests..."); QHashIterator<QString, QString> i(enginesToTest); DataGenerator generator; //Running datagenerator against all the frameworks specified in the config file. while ( i.hasNext() ) { i.next(); qDebug( "Now testing: " + i.key().toLatin1() ); char* params[13]; //./bin/datagenerator -framework data/framework.ini -engine OpenGL -suite 1.1 -output outtest QByteArray eng = i.key().toLatin1(); QByteArray fwk = framework.toLatin1(); QByteArray sut = suite.toLatin1(); QByteArray out = output.toLatin1(); QByteArray siz = size.toLatin1(); QByteArray fill = fillColor.toLatin1(); params[1] = "-framework"; params[2] = fwk.data(); params[3] = "-engine"; params[4] = eng.data(); params[5] = "-suite"; params[6] = sut.data(); params[7] = "-output"; params[8] = out.data(); params[9] = "-size"; params[10] = siz.data(); params[11] = "-fill"; params[12] = fill.data(); generator.run( 13, params ); } return true; }