forked from qt-creator/qt-creator
For shadow builds some tests couldn't find their test data. Solved by using the same pattern as in Qt tests: Inject $$PWD as SRCDIR via a DEFINES statement. Note: It was considered to use QFINDTESTDATA for Qt5, but this was rejected due to: 1) It's Qt5 only (would mean to introduce some wrapper...) 2) As the doc states, it will not work with QTEST_APPLESS_MAIN tests. Change-Id: Ie6cf59570fe61725b7f6f83b7da650331ddb38fc Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
25 lines
1.0 KiB
Prolog
25 lines
1.0 KiB
Prolog
include(../../qttest.pri)
|
|
include(../shared/shared.pri)
|
|
|
|
# Inject the source dir for referencing test data from shadow builds.
|
|
DEFINES += SRCDIR=\\\"$$PWD\\\"
|
|
|
|
SOURCES += tst_preprocessor.cpp
|
|
OTHER_FILES = \
|
|
data/noPP.1.cpp \
|
|
data/noPP.2.cpp \
|
|
data/identifier-expansion.1.cpp data/identifier-expansion.1.out.cpp \
|
|
data/identifier-expansion.2.cpp data/identifier-expansion.2.out.cpp \
|
|
data/identifier-expansion.3.cpp data/identifier-expansion.3.out.cpp \
|
|
data/identifier-expansion.4.cpp data/identifier-expansion.4.out.cpp \
|
|
data/identifier-expansion.5.cpp data/identifier-expansion.5.out.cpp \
|
|
data/reserved.1.cpp data/reserved.1.out.cpp \
|
|
data/recursive.1.cpp data/recursive.1.out.cpp \
|
|
data/macro_expand.c data/macro_expand.out.c \
|
|
data/macro_expand_1.cpp data/macro_expand_1.out.cpp \
|
|
data/macro-test.cpp data/macro-test.out.cpp \
|
|
data/poundpound.1.cpp data/poundpound.1.out.cpp \
|
|
data/empty-macro.cpp data/empty-macro.out.cpp \
|
|
data/empty-macro.2.cpp data/empty-macro.2.out.cpp \
|
|
data/macro_pounder_fn.c
|