Add test for get_option(b_xxx) on reconfigure.

pull/2310/head
Hristo Venev 7 years ago
parent e1fc17ef2a
commit f2fc32069b
  1. 5
      run_unittests.py
  2. 1
      test cases/common/47 options/meson.build
  3. 5
      test cases/unit/13 reconfigure/meson.build

@ -1948,6 +1948,11 @@ endian = 'little'
crossfile.flush()
self.init(testdir, ['--cross-file='+crossfile.name])
def test_reconfigure(self):
testdir = os.path.join(self.unit_test_dir, '13 reconfigure')
self.init(testdir, ['-Db_lto=true'], default_args=False)
self.build('reconfigure')
class LinuxArmCrossCompileTests(BasePlatformTests):
'''

@ -12,6 +12,7 @@ if get_option('combo_opt') != 'combo'
error('Incorrect value to combo option.')
endif
# If the default changes, update test cases/unit/13 reconfigure
if get_option('b_lto') != false
error('Incorrect value in base option.')
endif

@ -0,0 +1,5 @@
project('reconfigure test', ['c'])
if get_option('b_lto') != true
error('b_lto not set')
endif
Loading…
Cancel
Save