|
|
|
@ -56,8 +56,8 @@ from mesonbuild.ast import AstInterpreter |
|
|
|
|
from mesonbuild.mesonlib import ( |
|
|
|
|
BuildDirLock, LibType, MachineChoice, PerMachine, Version, is_windows, |
|
|
|
|
is_osx, is_cygwin, is_dragonflybsd, is_openbsd, is_haiku, is_sunos, |
|
|
|
|
windows_proof_rmtree, python_command, version_compare, split_args, |
|
|
|
|
quote_arg, relpath, is_linux, git |
|
|
|
|
windows_proof_rmtree, windows_proof_rm, python_command, |
|
|
|
|
version_compare, split_args, quote_arg, relpath, is_linux, git |
|
|
|
|
) |
|
|
|
|
from mesonbuild.environment import detect_ninja |
|
|
|
|
from mesonbuild.mesonlib import MesonException, EnvironmentException, OptionKey |
|
|
|
@ -5805,12 +5805,16 @@ class FailureTests(BasePlatformTests): |
|
|
|
|
contain required keys. |
|
|
|
|
''' |
|
|
|
|
tdir = os.path.join(self.unit_test_dir, '20 subproj dep variables') |
|
|
|
|
stray_file = os.path.join(tdir, 'subprojects/subsubproject.wrap') |
|
|
|
|
if os.path.exists(stray_file): |
|
|
|
|
windows_proof_rm(stray_file) |
|
|
|
|
out = self.init(tdir, inprocess=True) |
|
|
|
|
self.assertRegex(out, r"Neither a subproject directory nor a .*nosubproj.wrap.* file was found") |
|
|
|
|
self.assertRegex(out, r'Function does not take positional arguments.') |
|
|
|
|
self.assertRegex(out, r'Dependency .*somenotfounddep.* from subproject .*subprojects/somesubproj.* found: .*NO.*') |
|
|
|
|
self.assertRegex(out, r'Dependency .*zlibproxy.* from subproject .*subprojects.*somesubproj.* found: .*YES.*') |
|
|
|
|
self.assertRegex(out, r'Missing key .*source_filename.* in subsubproject.wrap') |
|
|
|
|
windows_proof_rm(stray_file) |
|
|
|
|
|
|
|
|
|
def test_exception_exit_status(self): |
|
|
|
|
''' |
|
|
|
|