make 'make check' work with non-installed prefix builds
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 14 Sep 2012 13:39:49 +0000 (15:39 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 19 Sep 2012 17:54:44 +0000 (19:54 +0200)
add the appropriate environment to the command lines

Change-Id: Ic9d3c60255be88f431213acd8c5e0ff55e014f5b
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
mkspecs/features/testcase.prf

index f76018a..6406501 100644 (file)
@@ -36,6 +36,9 @@ else:           check.commands += $(DESTDIR_TARGET)
 # Allow for custom arguments to tests
 check.commands += $(TESTARGS)
 
+# Add environment for non-installed builds
+qtAddTargetEnv(check.commands)
+
 # If the test is marked as insignificant, discard the exit code
 insignificant_test:check.commands = -$${check.commands}