From f1f46be2f1a974ba4c42075cc0ebb5d950828677 Mon Sep 17 00:00:00 2001
From: Rohan McGovern <rohan.mcgovern@nokia.com>
Date: Tue, 22 Sep 2009 00:33:38 +1000
Subject: [PATCH] Make tests follow Qt conventions by starting all unit tests
 with `tst_'.

Some scripts make use of this convention to differentiate unit tests
from applications which happen to link to testlib.

Reviewed-by: ossi
---
 tests/auto/aggregation/aggregation.pro     | 1 +
 tests/auto/cplusplus/ast/ast.pro           | 2 ++
 tests/auto/cplusplus/lookup/lookup.pro     | 1 +
 tests/auto/cplusplus/semantic/semantic.pro | 1 +
 tests/auto/debugger/dumpers.pro            | 2 ++
 tests/auto/debugger/plugin.pro             | 2 ++
 tests/auto/fakevim/fakevim.pro             | 1 +
 tests/auto/profilereader/profilereader.pro | 1 +
 8 files changed, 11 insertions(+)

diff --git a/tests/auto/aggregation/aggregation.pro b/tests/auto/aggregation/aggregation.pro
index c35c696239e..ca1d1205a35 100644
--- a/tests/auto/aggregation/aggregation.pro
+++ b/tests/auto/aggregation/aggregation.pro
@@ -12,3 +12,4 @@ SOURCES += tst_aggregate.cpp \
 HEADERS += $$AGGREGATION_PATH/aggregate.h \
     $$AGGREGATION_PATH/aggregation_global.h
 
+TARGET=tst_$$TARGET
diff --git a/tests/auto/cplusplus/ast/ast.pro b/tests/auto/cplusplus/ast/ast.pro
index 84733f97e6f..2f5a0a33eae 100644
--- a/tests/auto/cplusplus/ast/ast.pro
+++ b/tests/auto/cplusplus/ast/ast.pro
@@ -3,3 +3,5 @@ CONFIG += qt warn_on console depend_includepath
 QT = core testlib
 include(../shared/shared.pri)
 SOURCES += tst_ast.cpp
+TARGET=tst_$$TARGET
+
diff --git a/tests/auto/cplusplus/lookup/lookup.pro b/tests/auto/cplusplus/lookup/lookup.pro
index cd02b709575..b80aa2f2b7b 100644
--- a/tests/auto/cplusplus/lookup/lookup.pro
+++ b/tests/auto/cplusplus/lookup/lookup.pro
@@ -5,3 +5,4 @@ QT = core testlib
 include(../../../../src/libs/cplusplus/cplusplus-lib.pri)
 
 SOURCES += tst_lookup.cpp
+TARGET=tst_$$TARGET
diff --git a/tests/auto/cplusplus/semantic/semantic.pro b/tests/auto/cplusplus/semantic/semantic.pro
index 37c013685f7..09f80ab27ab 100644
--- a/tests/auto/cplusplus/semantic/semantic.pro
+++ b/tests/auto/cplusplus/semantic/semantic.pro
@@ -4,3 +4,4 @@ QT = core testlib
 include(../shared/shared.pri)
 
 SOURCES += tst_semantic.cpp
+TARGET=tst_$$TARGET
diff --git a/tests/auto/debugger/dumpers.pro b/tests/auto/debugger/dumpers.pro
index ca5338af380..201c36cb436 100644
--- a/tests/auto/debugger/dumpers.pro
+++ b/tests/auto/debugger/dumpers.pro
@@ -14,3 +14,5 @@ DEFINES += MACROSDEBUG
 
 INCLUDEPATH += $$DEBUGGERDIR $$UTILSDIR $$MACROSDIR
 
+TARGET = tst_$$TARGET
+
diff --git a/tests/auto/debugger/plugin.pro b/tests/auto/debugger/plugin.pro
index fae675b38f8..7cc42dac750 100644
--- a/tests/auto/debugger/plugin.pro
+++ b/tests/auto/debugger/plugin.pro
@@ -12,3 +12,5 @@ DEFINES += MACROSDEBUG
 
 INCLUDEPATH += $$DEBUGGERDIR $$UTILSDIR $$MACROSDIR
 
+TARGET = tst_$$TARGET
+
diff --git a/tests/auto/fakevim/fakevim.pro b/tests/auto/fakevim/fakevim.pro
index 04fefc12d30..a4aaea078ed 100644
--- a/tests/auto/fakevim/fakevim.pro
+++ b/tests/auto/fakevim/fakevim.pro
@@ -21,3 +21,4 @@ HEADERS += \
 
 INCLUDEPATH += $$FAKEVIMDIR $$UTILSDIR
 
+TARGET=tst_$$TARGET
diff --git a/tests/auto/profilereader/profilereader.pro b/tests/auto/profilereader/profilereader.pro
index b80ce8e4954..486ddd547d0 100644
--- a/tests/auto/profilereader/profilereader.pro
+++ b/tests/auto/profilereader/profilereader.pro
@@ -14,3 +14,4 @@ HEADERS += \
     profilereader.h \
     profilecache.h \
     qtversionmanager.h
+TARGET=tst_$$TARGET
-- 
GitLab