summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qttest_p4.prf
blob: e0b22f2c74b2241e68f96d09d7184fcf3e3d0d8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
isEmpty(TEMPLATE):TEMPLATE=app
CONFIG += qt warn_on console depend_includepath

qtAddLibrary(QtTest)

symbian:{
    TARGET.EPOCHEAPSIZE = 0x100000 0x2000000
#    DEFINES += QTEST_NO_SPECIALIZATIONS
    TARGET.CAPABILITY="ALL -TCB"
    RSS_RULES ="group_name=\"QtTests\";" 
}

# prefix test binary with tst_
!contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_")


check.files                =
check.path                 = .
!isEmpty(DESTDIR): check.commands = cd ./$(DESTDIR) &&
macx:      check.commands += ./$(QMAKE_TARGET).app/Contents/MacOS/$(QMAKE_TARGET)
else:unix: check.commands += ./$(QMAKE_TARGET)
else:win32: {
    CONFIG(debug, debug|release):check.commands += debug\\$(QMAKE_TARGET)
    else:check.commands += release\\$(QMAKE_TARGET)
}
embedded:  check.commands += -qws
QMAKE_EXTRA_TARGETS += check


target.path += $$[QT_INSTALL_PREFIX]/tests/qt4
INSTALLS += target