Commit 7b350628d231f8e491172dd00cd8ef5f7bda331e
- Diff rendering mode:
- inline
- side by side
mkspecs/features/qttest_p4.prf
(11 / 15)
|   | |||
| 13 | 13 | # prefix test binary with tst_ | |
| 14 | 14 | !contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_") | |
| 15 | 15 | ||
| 16 | ######################################################################## | ||
| 17 | # Use install rule to run test application. | ||
| 18 | # This lets you do 'make install' on a test to both build and run it, | ||
| 19 | # and lets you easily build and run all tests from the parent directory. | ||
| 20 | # ---------------------------------------------------------------------- | ||
| 21 | 16 | ||
| 22 | runme.files = | ||
| 23 | runme.path = . | ||
| 24 | !isEmpty(DESTDIR): runme.commands = cd ./$(DESTDIR) && | ||
| 25 | macx: runme.commands += ./$(QMAKE_TARGET).app/Contents/MacOS/$(QMAKE_TARGET) | ||
| 26 | else:unix: runme.commands += ./$(QMAKE_TARGET) | ||
| 17 | check.files = | ||
| 18 | check.path = . | ||
| 19 | !isEmpty(DESTDIR): check.commands = cd ./$(DESTDIR) && | ||
| 20 | macx: check.commands += ./$(QMAKE_TARGET).app/Contents/MacOS/$(QMAKE_TARGET) | ||
| 21 | else:unix: check.commands += ./$(QMAKE_TARGET) | ||
| 27 | 22 | else:win32: { | |
| 28 | CONFIG(debug, debug|release):runme.commands += debug\\$(QMAKE_TARGET) | ||
| 29 | else:runme.commands += release\\$(QMAKE_TARGET) | ||
| 23 | CONFIG(debug, debug|release):check.commands += debug\\$(QMAKE_TARGET) | ||
| 24 | else:check.commands += release\\$(QMAKE_TARGET) | ||
| 30 | 25 | } | |
| 31 | embedded: runme.commands += -qws | ||
| 32 | INSTALLS += runme | ||
| 26 | embedded: check.commands += -qws | ||
| 27 | QMAKE_EXTRA_TARGETS += check | ||
| 33 | 28 | ||
| 34 | 29 | ||
| 35 | ######################################################################## | ||
| 30 | target.path += $$[QT_INSTALL_PREFIX]/tests/qt4 | ||
| 31 | INSTALLS += target |

