summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-06-29 09:05:36 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-06-29 09:06:37 +0200
commit1491065506eb97c9def93b908db1df9fcdf3fff0 (patch)
tree8241e72cc1016b41c08f9d14e81fb63c07e6a5ba /tests
parent551e1e63d9da18787ae72fc3f0e76f28dbe5f7e3 (diff)
parent61c775684fe38f3c1e1bc7599e21054aedba523c (diff)
Merge branch 'buildsystem' (second round)
refactoring and cleanup. fixes x-builds between different os families. Conflicts: mkspecs/features/qt.prf Change-Id: I0205e6f07f77c9b015cf055dd87a471883949a91
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/tools/qmake/testdata/functions/functions.pro14
-rw-r--r--tests/auto/tools/qmake/testdata/operators/operators.pro22
-rw-r--r--tests/auto/tools/qmake/testdata/variables/variables.pro16
3 files changed, 26 insertions, 26 deletions
diff --git a/tests/auto/tools/qmake/testdata/functions/functions.pro b/tests/auto/tools/qmake/testdata/functions/functions.pro
index daab1fd954..6660e8d4fa 100644
--- a/tests/auto/tools/qmake/testdata/functions/functions.pro
+++ b/tests/auto/tools/qmake/testdata/functions/functions.pro
@@ -1,17 +1,17 @@
-CONFIG = qt thread
+VAR = qt thread
defineTest(testReplace) {
!isEqual(1, $$2):message("FAILED: $$3: got $$1, expected $${2}.")
}
#count
-!count( CONFIG, 2 ) {
- message( "FAILED: count function: $$CONFIG" )
+!count( VAR, 2 ) {
+ message( "FAILED: count function: $$VAR" )
}
#contains
-!contains( CONFIG, thread ) {
- message( "FAILED: contains function: $$CONFIG" )
+!contains( VAR, thread ) {
+ message( "FAILED: contains function: $$VAR" )
}
#exists
@@ -20,8 +20,8 @@ defineTest(testReplace) {
}
#isEmpty
-isEmpty( CONFIG ) {
- message( "FAILED: isEmpty function: $CONFIG" )
+isEmpty( VAR ) {
+ message( "FAILED: isEmpty function: $VAR" )
}
#files
diff --git a/tests/auto/tools/qmake/testdata/operators/operators.pro b/tests/auto/tools/qmake/testdata/operators/operators.pro
index 5285c1a982..d6eb3d13c7 100644
--- a/tests/auto/tools/qmake/testdata/operators/operators.pro
+++ b/tests/auto/tools/qmake/testdata/operators/operators.pro
@@ -1,24 +1,24 @@
-CONFIG = qt thread
+VAR = qt thread
-CONFIG += debug
-!contains( CONFIG, debug ) {
+VAR += debug
+!contains( VAR, debug ) {
message( "FAILED: +=" )
}
-CONFIG -= thread
-contains( CONFIG, thread ) {
+VAR -= thread
+contains( VAR, thread ) {
message( "FAILED: -=" )
}
-CONFIG = thread
-CONFIG *= thread
-!count( CONFIG, 1 ) {
+VAR = thread
+VAR *= thread
+!count( VAR, 1 ) {
message( "FAILED: *=" )
}
-CONFIG = thread QT_DLL debug
-CONFIG ~= s/QT_+/Q_
-!contains( CONFIG, Q_DLL ) {
+VAR = thread QT_DLL debug
+VAR ~= s/QT_+/Q_
+!contains( VAR, Q_DLL ) {
message( "FAILED: ~=" )
}
diff --git a/tests/auto/tools/qmake/testdata/variables/variables.pro b/tests/auto/tools/qmake/testdata/variables/variables.pro
index cefcddf0fb..d5d1e56939 100644
--- a/tests/auto/tools/qmake/testdata/variables/variables.pro
+++ b/tests/auto/tools/qmake/testdata/variables/variables.pro
@@ -1,14 +1,14 @@
-CONFIG = 1 2 3 4 5
-JOINEDCONFIG = $$join( CONFIG, "-GLUE-", "-BEFORE-", "-AFTER-" )
-!contains( JOINEDCONFIG, -BEFORE-1-GLUE-2-GLUE-3-GLUE-4-GLUE-5-AFTER- ) {
- message( "FAILED: join [$$JOINEDCONFIG != -BEFORE-1-GLUE-2-GLUE-3-GLUE-4-GLUE-5-AFTER-]" )
+VAR = 1 2 3 4 5
+JOINEDVAR = $$join( VAR, "-GLUE-", "-BEFORE-", "-AFTER-" )
+!contains( JOINEDVAR, -BEFORE-1-GLUE-2-GLUE-3-GLUE-4-GLUE-5-AFTER- ) {
+ message( "FAILED: join [$$JOINEDVAR != -BEFORE-1-GLUE-2-GLUE-3-GLUE-4-GLUE-5-AFTER-]" )
}
# To test member we need to use join
-NEWCONFIG = $$member( CONFIG, 4 ) $$member( CONFIG, 3 ) $$member( CONFIG, 2 )
-JOINEDNEWCONFIG = $$join( NEWCONFIG, "-" )
-!contains( JOINEDNEWCONFIG, 5-4-3 ) {
- message( "FAILED: member [$$JOINEDNEWCONFIG != 5-4-3]" )
+NEWVAR = $$member( VAR, 4 ) $$member( VAR, 3 ) $$member( VAR, 2 )
+JOINEDNEWVAR = $$join( NEWVAR, "-" )
+!contains( JOINEDNEWVAR, 5-4-3 ) {
+ message( "FAILED: member [$$JOINEDNEWVAR != 5-4-3]" )
}