From 28bfa8f6cc62306ada0fbd4e367f4b99748ca606 Mon Sep 17 00:00:00 2001 From: Kurt Korbatits Date: Tue, 10 Jan 2012 10:38:51 +1000 Subject: Changed selftests unittest to work from installation directory. - All subprograms installed as part of test instead of separate installs - Added installTestHelperApp() to testcase.prf Change-Id: I02fbbb299f095054c9216ad0e5f91f574fb0fe3d Reviewed-by: Kurt Korbatits Reviewed-by: Jason McDonald Reviewed-by: Rohan McGovern --- mkspecs/features/testcase.prf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'mkspecs/features') diff --git a/mkspecs/features/testcase.prf b/mkspecs/features/testcase.prf index 15135e1f89..f890e97733 100644 --- a/mkspecs/features/testcase.prf +++ b/mkspecs/features/testcase.prf @@ -126,3 +126,28 @@ contains(INSTALLS, target) { } +defineTest(installTestHelperApp) { + # args: relativeSource, relativeDestination, targetName + # description: install executables from other project directories as part of your installation. + # relativeSource - file to install including relative path + # relativeDestination - relative directory to install to + # targetName - executable without extension + targetName = $$replace(3, ' ', '_') # handle spaces in name + subTarget = $${targetName}.target + subInstall = $${targetName}_install + subConfig = $${subInstall}.CONFIG + subFiles = $${subInstall}.files + subPath = $${subInstall}.path + win32: extension = .exe + $$subTarget = $${2}/$${3}$${extension} + $$subFiles = $${1}$${extension} + $$subPath = $${target.path}/$${2} + $$subConfig += no_check_exist executable + INSTALLS += $${subInstall} + export(INSTALLS) + export($$subTarget) + export($$subFiles) + export($$subPath) + export($$subConfig) +} + -- cgit v1.2.3