Exemplo n.º 1
0
 def derive_core_agent_triple(self):
     return PlatformDetection.get_triple()
def test_libc_no_ldd(check_output):
    check_output.side_effect = OSError
    assert PlatformDetection.libc() == "gnu"
Exemplo n.º 3
0
 def derive_core_agent_full_name(self):
     return '{name}-{version}-{triple}'.format(
         name='scout_apm_core',
         version=self.config.value('core_agent_version'),
         triple=PlatformDetection.get_triple())
def test_libc(check_output, output, libc):
    check_output.return_value = output
    assert PlatformDetection.libc() == libc
def test_platform(platform_system, system, platform):
    platform_system.return_value = system
    assert PlatformDetection.platform() == platform
def test_arch(platform_machine, machine, arch):
    platform_machine.return_value = machine
    assert PlatformDetection.arch() == arch
def test_get_triple():
    assert isinstance(PlatformDetection.get_triple(), string_type)
Exemplo n.º 8
0
 def derive_core_agent_full_name(self):
     return "{name}-{version}-{triple}".format(
         name="scout_apm_core",
         version=self.config.value("core_agent_version"),
         triple=PlatformDetection.get_triple(),
     )