initial commit
This commit is contained in:
commit
9d20827c46
2469 changed files with 470994 additions and 0 deletions
24
qa/guitest/guitest.cpp
Normal file
24
qa/guitest/guitest.cpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#include <QApplication>
|
||||
#include <QDebug>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "guitestmanager.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (argc < 2) {
|
||||
std::cerr << "Usage: " << argv[0] << " <test>" << std::endl << std::endl;
|
||||
std::cerr << "The following tests are available: " << std::endl;
|
||||
foreach(QString test, GUITestManager::instance()->getTestNames()) {
|
||||
std::cerr << " " << (std::string) test << std::endl;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
QApplication a(argc, argv);
|
||||
if (GUITestManager::instance()->runTest(argv[1])) {
|
||||
return a.exec();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in a new issue