summaryrefslogtreecommitdiffstats
path: root/util/cmake/tests/test_parsing.py
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-02-27 13:58:00 +0100
committerTobias Hunger <tobias.hunger@qt.io>2019-02-28 08:08:08 +0000
commit754ba287999e0d1681f77d12f6d7c3ae0362745a (patch)
treec8d834725da22f4165ec96bacf1495a46aa53612 /util/cmake/tests/test_parsing.py
parent8512f5179d2674dd9c0b89eeebbf2c6d32e3e4b4 (diff)
CMake: pro2cmake.py: Fix parsing of Line continuation before end of file
... and add a test case for this. Change-Id: If20d737b54ecb3f9e128e59070b238c840acad6c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake/tests/test_parsing.py')
-rwxr-xr-xutil/cmake/tests/test_parsing.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/cmake/tests/test_parsing.py b/util/cmake/tests/test_parsing.py
index d0a9960dc7f..1f50fc87ab3 100755
--- a/util/cmake/tests/test_parsing.py
+++ b/util/cmake/tests/test_parsing.py
@@ -281,3 +281,9 @@ def test_realworld_complex_condition():
assert len(else_branch) == 0
+
+def test_realworld_sql():
+ result = parse_file(_tests_path + '/data/sql.pro')
+ assert len(result) == 2
+ validate_op('TEMPLATE', '=', ['subdirs'], result[0])
+ validate_op('SUBDIRS', '=', ['kernel'], result[1])