diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-11-24 10:36:10 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-01 09:12:52 +0100 |
commit | 3385fb91e1e55e1bfa1f78dfb8ce2e9f3fdaedef (patch) | |
tree | b77bb527bf3a21dc95a317248b2640c73751f629 /tests/auto/corelib/io/qfile/test | |
parent | 13eba9ddf47d570fc4562c20fcfbacd1dfa4a61a (diff) |
Fixed installation of corelib tests
In .pro files, removed wince/symbian-specific DEPLOYMENT cases and
replaced them with TESTDATA where appropriate.
In .cpp files, removed SRCDIR and relative paths to testdata and
replaced them with the QFINDTESTDATA macro where appropriate.
Modified test helper apps/libs to install themselves under the test
they relate to.
This change allows corelib tests to be correctly installed, along with
their testdata, via `make install'.
Change-Id: I5e202e2f3b577af7e39072d5c9fe13e0ca125304
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto/corelib/io/qfile/test')
-rw-r--r-- | tests/auto/corelib/io/qfile/test/test.pro | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/tests/auto/corelib/io/qfile/test/test.pro b/tests/auto/corelib/io/qfile/test/test.pro index aca034b098..2f1e50010c 100644 --- a/tests/auto/corelib/io/qfile/test/test.pro +++ b/tests/auto/corelib/io/qfile/test/test.pro @@ -1,24 +1,13 @@ CONFIG += testcase +QT = core network testlib TARGET = ../tst_qfile SOURCES = ../tst_qfile.cpp RESOURCES += ../qfile.qrc ../rename-fallback.qrc ../copy-fallback.qrc -wince* { - QT = core gui testlib - files.files += ..\\dosfile.txt ..\\noendofline.txt ..\\testfile.txt \ - ..\\testlog.txt ..\\two.dots.file ..\\tst_qfile.cpp \ - ..\\Makefile ..\\forCopying.txt ..\\forRenaming.txt - files.path = . - resour.files += ..\\resources\\file1.ext1 - resour.path = resources - - DEPLOYMENT += files resour - SOURCES += $$QT_SOURCE_TREE/src/corelib/kernel/qfunctions_wince.cpp # needed for QT_OPEN - DEFINES += SRCDIR=\\\"\\\" -} else { - QT = core network testlib - DEFINES += SRCDIR=\\\"$$PWD/../\\\" -} +TESTDATA += ../dosfile.txt ../noendofline.txt ../testfile.txt \ + ../testlog.txt ../two.dots.file ../tst_qfile.cpp \ + ../Makefile ../forCopying.txt ../forRenaming.txt \ + ../resources/file1.ext1 win32 { CONFIG(debug, debug|release) { |