aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-09-14 10:07:15 -0700
committerXavier Claessens <xclaesse@gmail.com>2020-10-05 08:59:45 -0400
commit4b1c1d83c88853a6be99b53e4d27c414b7b36137 (patch)
tree019ab6975511f521db01a6046aa091fae5596eca /run_unittests.py
parent30a102d9a3d4594bb757b28e5b6796e327393eef (diff)
downloadmeson-4b1c1d83c88853a6be99b53e4d27c414b7b36137.zip
meson-4b1c1d83c88853a6be99b53e4d27c414b7b36137.tar.gz
meson-4b1c1d83c88853a6be99b53e4d27c414b7b36137.tar.bz2
machinefiles: Allow keys to be stored case insensitive
This is required to make the various keys in the [user options] section work the same as they do in the meson_options.txt file, where we don't have any rules about case sensitivity. There is some risk here. Someone may be relying on this lower by default behavior, and this could break their machine files. Fixes #7731
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 3275a10..1fd436d 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -8179,7 +8179,9 @@ class NativeFileTests(BasePlatformTests):
testcase = os.path.join(self.common_test_dir, '43 options')
for opt, value in [('testoption', 'some other val'), ('other_one', True),
('combo_opt', 'one'), ('array_opt', ['two']),
- ('integer_opt', 0)]:
+ ('integer_opt', 0),
+ ('CaseSenSiTivE', 'SOME other Value'),
+ ('CASESENSITIVE', 'some other Value')]:
config = self.helper_create_native_file({'project options': {opt: value}})
with self.assertRaises(subprocess.CalledProcessError) as cm:
self.init(testcase, extra_args=['--native-file', config])