diff options
Diffstat (limited to 'tests/auto/qmake/testdata/variables/variables.pro')
-rw-r--r-- | tests/auto/qmake/testdata/variables/variables.pro | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qmake/testdata/variables/variables.pro b/tests/auto/qmake/testdata/variables/variables.pro new file mode 100644 index 0000000..cefcddf --- /dev/null +++ b/tests/auto/qmake/testdata/variables/variables.pro @@ -0,0 +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-]" ) +} + +# 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]" ) +} + + |