Name Description Size
common.py Wrapper around the ConfigureSandbox for testing purposes. Its arguments are the same as ConfigureSandbox, except for the additional `paths` argument, which is a dict where the keys are file paths and the values are either None or a function that will be called when the sandbox calls an implemented function from subprocess with the key as command. When the command is CONFIG_SHELL, the function for the path of the script that follows will be called. The API for those functions is: retcode, stdout, stderr = func(stdin, args) This class is only meant to implement the minimal things to make moz.configure testing possible. As such, it takes shortcuts. 10120
data
lint.py 1662
macos_fake_sdk
test_bootstrap.py 8651
test_checks_configure.py @checking('for a thing') def foo(value): return value 41875
test_compile_checks.py \ @depends(when=True) def extra_toolchain_flags(): return [] @depends(when=True) def linker_ldflags(): return [] target = depends(when=True)(lambda: True) @depends(when=True) def configure_cache(): class ConfigureCache(dict): pass cache_data = {} cache = ConfigureCache(cache_data) cache.version_checked_compilers = set() return cache include('%s/compilers-util.configure') @template def wrap_compiler(compiler): return compiler_class(compiler, False) @wrap_compiler @depends(when=True) def c_compiler(): return namespace( flags=[], type='gcc', compiler=os.path.abspath('/usr/bin/mockcc'), wrapper=[], language='C', ) @wrap_compiler @depends(when=True) def host_c_compiler(): return namespace( flags=[], type='gcc', compiler=os.path.abspath('/usr/bin/mockcc'), wrapper=[], language='C', ) @wrap_compiler @depends(when=True) def cxx_compiler(): return namespace( flags=[], type='gcc', compiler=os.path.abspath('/usr/bin/mockcc'), wrapper=[], language='C++', ) @wrap_compiler @depends(when=True) def host_cxx_compiler(): return namespace( flags=[], type='gcc', compiler=os.path.abspath('/usr/bin/mockcc'), wrapper=[], language='C++', ) 16459
test_configure.py 70442
test_lint.py option('--foo', help='foo') @depends('--foo') def foo(value): return value @depends('--help', foo) @imports('os') def bar(help, foo): return foo 16208
test_moz_configure.py 7143
test_options.py 38804
test_toolchain_configure.py 78478
test_toolchain_helpers.py \ #if __has_warning("-Wbar") WBAR #endif #if __has_warning("-Wc++98-foo") WFOO #endif #if !__has_warning("-Wc++98-foo") NO_WFOO #endif #if __has_attribute(bar) BAR #else NO_BAR #endif #if !__has_attribute(foo) NO_FOO #endif 14132
test_toolkit_moz_configure.py 10946
test_util.py 16579