Show
Ignore:
Timestamp:
08/09/08 21:44:20 (5 months ago)
Author:
liamstask
Message:

- a few tests for the Builder class: creating a Makefile properly and loading in the requisite libraries
- update the AinToServo? example's project file format

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mcbuilder/trunk/tests/main.cpp

    r798 r799  
     1/********************************************************************************* 
    12 
     3 Copyright 2008 MakingThings 
     4 
     5 Licensed under the Apache License,  
     6 Version 2.0 (the "License"); you may not use this file except in compliance  
     7 with the License. You may obtain a copy of the License at 
     8 
     9 http://www.apache.org/licenses/LICENSE-2.0  
     10  
     11 Unless required by applicable law or agreed to in writing, software distributed 
     12 under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
     13 CONDITIONS OF ANY KIND, either express or implied. See the License for 
     14 the specific language governing permissions and limitations under the License. 
     15 
     16*********************************************************************************/ 
    217 
    318#include <QtTest/QtTest> 
     19#include <QApplication> 
     20#include "MainWindow.h" 
    421#include "TestProjectManager.h" 
    522#include "TestBuilder.h" 
    623 
    7 int main(int argc, char** argv) 
     24/* 
     25  A test suite that fires off each unit test in succession. 
     26*/ 
     27int main(int argc, char* argv[]) 
    828 
    929  (void)argc; 
    1030  (void)argv; 
     31  QApplication app(argc, argv); 
     32  MainWindow window; 
    1133   
    1234  TestProjectManager testProjectManager; 
    1335  QTest::qExec(&testProjectManager); 
    1436   
    15   TestBuilder testBuilder; 
     37  TestBuilder testBuilder(&window); 
    1638  QTest::qExec(&testBuilder); 
    1739}