diff options
| author | Tobias Hunger <[email protected]> | 2019-02-13 10:42:56 +0100 |
|---|---|---|
| committer | Tobias Hunger <[email protected]> | 2019-02-27 16:03:20 +0000 |
| commit | c971d2d3593def66c5627f47c575c2ed7ce04fec (patch) | |
| tree | 74520e89e6f4620efa4b541b66a4eb9cf06a4ff5 /util/cmake/tests/test_parsing.py | |
| parent | 22dc78f41749d76df38ef1e17d6dc8c272d7cab0 (diff) | |
CMake: pro2cmake.py: Handle values with () in assignments
Change-Id: I0f59c7fa57cd6c64b151f439d4eea4ae56dca288
Reviewed-by: Albert Astals Cid <[email protected]>
Diffstat (limited to 'util/cmake/tests/test_parsing.py')
| -rwxr-xr-x | util/cmake/tests/test_parsing.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/cmake/tests/test_parsing.py b/util/cmake/tests/test_parsing.py index e4f9680f603..c238c80c084 100755 --- a/util/cmake/tests/test_parsing.py +++ b/util/cmake/tests/test_parsing.py @@ -254,3 +254,9 @@ def test_realworld_contains_scope(): result = parse_file(_tests_path + '/data/contains_scope.pro') assert len(result) == 2 + +def test_realworld_complex_assign(): + result = parse_file(_tests_path + '/data/complex_assign.pro') + assert len(result) == 1 + validate_op('qmake-clean.commands', '+=', '( cd qmake && $(MAKE) clean ":-(==)-:" \'(Foo)\' )'.split(), + result[0]) |
