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. 9576
data 9
fake_macos_sdk 1
lint.py 1749
test_checks_configure.py @checking('for a thing') def foo(value): return value 41965
test_compile_checks.py \ @depends(when=True) def extra_toolchain_flags(): return [] @depends(when=True) def stlport_cppflags(): return [] @depends(when=True) def linker_ldflags(): return [] target = depends(when=True)(lambda: True) 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++', ) 16273
test_configure.py 63243
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 14966
test_moz_configure.py 6381
test_options.py 38289
test_toolchain_configure.py 70215
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 14178
test_toolkit_moz_configure.py 3966
test_util.py 16690