def b2_test(self):
    settings = Settings.loads(get_default_settings_yml())
    settings.os = 'Linux'
    settings.compiler = 'gcc'
    settings.compiler.version = '6.3'
    settings.arch = 'x86'
    settings.build_type = 'Release'
    settings.cppstd = 'gnu17'
    conanfile = ConanFile(TestBufferConanOutput(), None)
    conanfile.initialize(Settings({}), EnvValues())
    conanfile.settings = settings
    ref = ConanFileReference.loads('MyPkg/0.1@lasote/stables')
    cpp_info = CppInfo('dummy_root_folder1')
    cpp_info.defines = ['MYDEFINE1']
    cpp_info.cflags.append('-Flag1=23')
    cpp_info.version = '1.3'
    cpp_info.description = 'My cool description'
    cpp_info.libs = ['MyLib1']
    conanfile.deps_cpp_info.update(cpp_info, ref.name)
    ref = ConanFileReference.loads('MyPkg2/0.1@lasote/stables')
    cpp_info = CppInfo('dummy_root_folder2')
    cpp_info.libs = ['MyLib2']
    cpp_info.defines = ['MYDEFINE2']
    cpp_info.version = '2.3'
    cpp_info.exelinkflags = ['-exelinkflag']
    cpp_info.sharedlinkflags = ['-sharedlinkflag']
    cpp_info.cxxflags = ['-cxxflag']
    cpp_info.public_deps = ['MyPkg']
    cpp_info.lib_paths.extend(['Path\\with\\slashes', 'regular/path/to/dir'])
    cpp_info.include_paths.extend(['other\\Path\\with\\slashes', 'other/regular/path/to/dir'])
    conanfile.deps_cpp_info.update(cpp_info, ref.name)
    generator = B2Generator(conanfile)
    content = {'conanbuildinfo.jam': _main_buildinfo_full, 'conanbuildinfo-316f2f0b155dc874a672d40d98d93f95.jam': _variation_full}
    for (ck, cv) in generator.content.items():
        self.assertEqual(cv, content[ck])
def b2_test(self):
    settings = Settings.loads(get_default_settings_yml())
    settings.os = 'Linux'
    settings.compiler = 'gcc'
    settings.compiler.version = '6.3'
    settings.arch = 'x86'
    settings.build_type = 'Release'
    settings.cppstd = 'gnu17'
    conanfile = ConanFile(TestBufferConanOutput(), None)
    conanfile.initialize(Settings({}), EnvValues())
    conanfile.settings = settings
    ref = ConanFileReference.loads('MyPkg/0.1@lasote/stables')
    cpp_info = CppInfo('dummy_root_folder1')
    cpp_info.defines = ['MYDEFINE1']
    cpp_info.cflags.append('-Flag1=23')
    cpp_info.version = '1.3'
    cpp_info.description = 'My cool description'
    cpp_info.libs = ['MyLib1']
    conanfile.deps_cpp_info.update(cpp_info, ref.name)
    ref = ConanFileReference.loads('MyPkg2/0.1@lasote/stables')
    cpp_info = CppInfo('dummy_root_folder2')
    cpp_info.libs = ['MyLib2']
    cpp_info.defines = ['MYDEFINE2']
    cpp_info.version = '2.3'
    cpp_info.exelinkflags = ['-exelinkflag']
    cpp_info.sharedlinkflags = ['-sharedlinkflag']
    cpp_info.cxxflags = ['-cxxflag']
    cpp_info.public_deps = ['MyPkg']
    cpp_info.lib_paths.extend(['Path\\with\\slashes', 'regular/path/to/dir'])
    cpp_info.include_paths.extend(['other\\Path\\with\\slashes', 'other/regular/path/to/dir'])
    conanfile.deps_cpp_info.update(cpp_info, ref.name)
    generator = B2Generator(conanfile)
    content = {'conanbuildinfo.jam': _main_buildinfo_full, 'conanbuildinfo-316f2f0b155dc874a672d40d98d93f95.jam': _variation_full}
    for (ck, cv) in generator.content.items():
        self.assertEqual(cv, content[ck])