diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-03-10 10:04:04 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-12 11:16:34 +0100 |
commit | 12c89098832de7475ad6ad11fe92f50b13f713f4 (patch) | |
tree | 0069166527227c8767374eca6f04b8c2163e95f6 /mkspecs/features/testcase.prf | |
parent | 2dd6f1467fca051e977eeda0369b9b89e25065b1 (diff) |
sanitize install target names
qmake uses the variable name verbatim, which makes the generated
makefile look "interesting" without this cleanup.
Change-Id: If6c4f12563a0ee6429513fbfac534f40bb7c0b97
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'mkspecs/features/testcase.prf')
-rw-r--r-- | mkspecs/features/testcase.prf | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mkspecs/features/testcase.prf b/mkspecs/features/testcase.prf index 9bb9875f6d..b00d15579f 100644 --- a/mkspecs/features/testcase.prf +++ b/mkspecs/features/testcase.prf @@ -97,7 +97,11 @@ contains(INSTALLS, target) { # ... # for(file, TESTDATA) { - tdi = testdata_install_$${file} + tnam = $$file + tnam ~= s,\\.\\.,dotdot, + tnam ~= s,[?*],wildcard, + tnam ~= s,[^A-Za-z0-9],_, + tdi = testdata_$$tnam tdif = $${tdi}.files tdip = $${tdi}.path |