diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2018-05-13 10:36:58 -0400 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-06-06 20:02:37 +0000 |
commit | 7c4736d27f4c5d7844a44addc0305e4354440074 (patch) | |
tree | 19aa2290f1f9b40c4ef543bda84285a96d9db45c /run_tests.py | |
parent | b38452636cc25ffd38d379645607f1563de59d80 (diff) | |
download | meson-7c4736d27f4c5d7844a44addc0305e4354440074.zip meson-7c4736d27f4c5d7844a44addc0305e4354440074.tar.gz meson-7c4736d27f4c5d7844a44addc0305e4354440074.tar.bz2 |
Convert args.projectoptions into a dict
This simplifies a lot of code, and centralize "key=value" parsing in a
single place.
Unknown command line options becomes an hard error instead of
merely printing warning message. It has been warning it would become an
hard error for a while now. This has exceptions though, any
unknown option starting with "<lang>_" or "b_" are ignored because they
depend on which languages gets added and which compiler gets selected.
Also any option for unknown subproject are ignored because they depend
on which subproject actually gets built.
Also write more command line parsing tests. "19 bad command line
options" is removed because bad cmd line option became hard error and
it's covered with new tests in "30 command line".
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py index 1fd72b2..d905e12 100755 --- a/run_tests.py +++ b/run_tests.py @@ -153,6 +153,7 @@ def get_fake_options(prefix): opts.cross_file = None opts.wrap_mode = None opts.prefix = prefix + opts.cmd_line_options = {} return opts def should_run_linux_cross_tests(): |