NCL Composer  0.1.5
 All Classes Functions Variables Pages
tst_Core.cpp
1 /* Copyright (c) 2011 Telemidia/PUC-Rio.
2  * All rights reserved. This program and the accompanying materials
3  * are made available under the terms of the Eclipse Public License v1.0
4  * which accompanies this distribution, and is available at
5  * http://www.eclipse.org/legal/epl-v10.html
6  *
7  * Contributors:
8  * Telemidia/PUC-Rio - initial API and implementation
9  */
10 #include "tst_ModuleInit.h"
11 #include "tst_ModuleLanguage.h"
12 #include "tst_ModuleProject.h"
13 #include "tst_ModulePlugin.h"
14 #include "tst_InsertNode.h"
15 
16 int run_ModuleInit()
17 {
18  tst_ModuleInit testModuleInit;
19  testModuleInit.setInterations(10240);
20  testModuleInit.setBenchmark(true);
21  QStringList args;
22  args.append("-v2");
23  return QTest::qExec(&testModuleInit,args);
24 }
25 
26 int run_ModuleLanguage()
27 {
28  tst_ModuleLanguage testModuleLanguage;
29  testModuleLanguage.setBenchmark(true);
30  QStringList args;
31  args.append("-v2");
32  return QTest::qExec(&testModuleLanguage, args);
33 }
34 
35 int run_ModuleProject()
36 {
37  tst_ModuleProject testModuleProject;
38  testModuleProject.setBenchmark(true);
39  QStringList args;
40  args.append("-v2");
41  return QTest::qExec(&testModuleProject, args);
42 }
43 
44 int run_ModulePlugins()
45 {
46  tst_ModulePlugin testModulePlugins;
47  testModulePlugins.setBenchmark(true);
48  QStringList args;
49  args.append("-v2");
50  return QTest::qExec(&testModulePlugins, args);
51 }
52 
53 int run_InsertNode()
54 {
55  tst_InsertNode testInsertNode;
56  QStringList args;
57  args.append("-v2");
58  return QTest::qExec(&testInsertNode, args);
59 }
60 
61 //QTEST_MAIN(tst_ModuleProject)
62 //QTEST_MAIN(tst_ModulePlugin)
63 QTEST_MAIN(tst_InsertNode)