From 514cdee46f78c88a9d883f6c006a71e7306e3fed Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 14 Sep 2012 15:39:49 +0200 Subject: [PATCH] make 'make check' work with non-installed prefix builds add the appropriate environment to the command lines Change-Id: Ic9d3c60255be88f431213acd8c5e0ff55e014f5b Reviewed-by: Rohan McGovern Reviewed-by: Joerg Bornemann --- mkspecs/features/testcase.prf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkspecs/features/testcase.prf b/mkspecs/features/testcase.prf index f76018a..6406501 100644 --- a/mkspecs/features/testcase.prf +++ b/mkspecs/features/testcase.prf @@ -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} -- 2.7.4