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/TestBuilder.h

    r798 r799  
     1/********************************************************************************* 
     2 
     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*********************************************************************************/ 
     17 
     18#ifndef TEST_BUILDER_H 
     19#define TEST_BUILDER_H 
    120 
    221#include <QtTest/QtTest> 
     22#include "MainWindow.h" 
    323#include "Builder.h" 
     24 
     25class Builder; 
    426 
    527/* 
     
    1032  Q_OBJECT 
    1133   
     34public: 
     35  TestBuilder( MainWindow* window ); 
     36  QString currentProjectPath(); 
     37   
    1238private: 
    1339  Builder* builder; 
     40  MainWindow* window; 
    1441 
    1542private slots: 
    1643  void initTestCase(); 
     44  void loadLibs(); 
     45  void testMakefile(); 
    1746}; 
     47 
     48#endif // TEST_BUILDER_H 
    1849 
    1950 
     
    2253 
    2354 
    24  
    25