summaryrefslogtreecommitdiffstats
path: root/util/cmake/tests/test_parsing.py
diff options
context:
space:
mode:
authorTobias Hunger <[email protected]>2019-02-27 15:17:36 +0100
committerTobias Hunger <[email protected]>2019-02-28 08:08:17 +0000
commit33fe56c630d9e59b2a33e28db5e062323d577d34 (patch)
tree5291ee4655198b578b4bdce663ddd1b59d31018c /util/cmake/tests/test_parsing.py
parent754ba287999e0d1681f77d12f6d7c3ae0362745a (diff)
CMake: pro2cmake.py: Make \$\$QT_FOO work in assignments
This broke somewhere along the way. Add a test for this. Change-Id: I106ddff6eb86a51ef132285d1bc623f3b5cf71fb Reviewed-by: Alexandru Croitor <[email protected]>
Diffstat (limited to 'util/cmake/tests/test_parsing.py')
-rwxr-xr-xutil/cmake/tests/test_parsing.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/cmake/tests/test_parsing.py b/util/cmake/tests/test_parsing.py
index 1f50fc87ab3..dd4e5508f60 100755
--- a/util/cmake/tests/test_parsing.py
+++ b/util/cmake/tests/test_parsing.py
@@ -287,3 +287,10 @@ def test_realworld_sql():
assert len(result) == 2
validate_op('TEMPLATE', '=', ['subdirs'], result[0])
validate_op('SUBDIRS', '=', ['kernel'], result[1])
+
+
+def test_realworld_qtconfig():
+ result = parse_file(_tests_path + '/data/escaped_value.pro')
+ assert len(result) == 1
+ validate_op('MODULE_AUX_INCLUDES', '=', ['\\$\\$QT_MODULE_INCLUDE_BASE/QtANGLE'], result[0])
+