Changeset 798

Show
Ignore:
Timestamp:
08/09/08 18:10:05 (3 months ago)
Author:
liamstask
Message:

- updating tests to run as a suite, as opposed to single class

Location:
mcbuilder/trunk
Files:
5 added
2 removed
2 modified

Legend:

Unmodified
Added
Removed
  • mcbuilder/trunk/mcbuilder.pro

    r768 r798  
    9393 
    9494 
     95# ******************************************* 
     96#              test suite 
     97# ******************************************* 
     98 
     99test_suite { 
     100  TARGET = mcbuilder_test 
     101  DEFINES += MCBUILDER_TEST_SUITE 
     102  CONFIG += qtestlib 
     103  CONFIG -= release # always, no matter what it's set to above 
     104  DESTDIR = tests 
     105  INCLUDEPATH += tests 
     106   
     107  SOURCES -= src/main.cpp 
     108   
     109  SOURCES +=  tests/main.cpp \ 
     110              tests/TestProjectManager.cpp \ 
     111              tests/TestBuilder.cpp \ 
     112               
     113  HEADERS +=  tests/TestProjectManager.h \ 
     114              tests/TestBuilder.h 
     115} 
    95116 
    96117 
  • mcbuilder/trunk/tests/runtests.sh

    r731 r798  
    22 
    33# first build the test 
    4 qmake 
     4cd .. 
     5qmake "CONFIG += test_suite" mcbuilder.pro 
    56make 
    67echo # some space 
    78 
    89# then run it... 
    9 TestMcbuilder.app/Contents/MacOS/TestMcbuilder 
     10tests/mcbuilder_test.app/Contents/MacOS/mcbuilder_test 
    1011 
    1112echo # more space