|
|
@ -2026,6 +2026,7 @@ recommended as it can lead to undefined behaviour on some platforms''') |
|
|
|
# Verify default values when passing no args |
|
|
|
# Verify default values when passing no args |
|
|
|
self.init(testdir) |
|
|
|
self.init(testdir) |
|
|
|
obj = mesonbuild.coredata.load(self.builddir) |
|
|
|
obj = mesonbuild.coredata.load(self.builddir) |
|
|
|
|
|
|
|
self.assertEqual(obj.builtins['default_library'].value, 'static') |
|
|
|
self.assertEqual(obj.builtins['warning_level'].value, '1') |
|
|
|
self.assertEqual(obj.builtins['warning_level'].value, '1') |
|
|
|
self.wipe() |
|
|
|
self.wipe() |
|
|
|
|
|
|
|
|
|
|
@ -2059,6 +2060,15 @@ recommended as it can lead to undefined behaviour on some platforms''') |
|
|
|
self.assertIn('passed as both', e.stderr) |
|
|
|
self.assertIn('passed as both', e.stderr) |
|
|
|
self.wipe() |
|
|
|
self.wipe() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# --default-library should override default value from project() |
|
|
|
|
|
|
|
self.init(testdir, extra_args=['--default-library=both']) |
|
|
|
|
|
|
|
obj = mesonbuild.coredata.load(self.builddir) |
|
|
|
|
|
|
|
self.assertEqual(obj.builtins['default_library'].value, 'both') |
|
|
|
|
|
|
|
self.setconf('--default-library=shared') |
|
|
|
|
|
|
|
obj = mesonbuild.coredata.load(self.builddir) |
|
|
|
|
|
|
|
self.assertEqual(obj.builtins['default_library'].value, 'shared') |
|
|
|
|
|
|
|
self.wipe() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FailureTests(BasePlatformTests): |
|
|
|
class FailureTests(BasePlatformTests): |
|
|
|
''' |
|
|
|
''' |
|
|
|