Skip to content

Commit

Permalink
Add test for target triple
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignition committed Jun 3, 2019
1 parent df1f387 commit c9ebf89
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -51,6 +51,13 @@ def _set_deps_info(self, conanfile):
conanfile.deps_cpp_info.exelinkflags.append("exe_link_flag")
conanfile.deps_cpp_info.sysroot = "/path/to/folder"

def target_triple_test(self):
settings = MockSettings({"os_target":"Linux", "arch_target":"x86_64"})
conan_file = ConanFileMock(settings)
be = AutoToolsBuildEnvironment(conan_file)
expected = "x86_64-linux-gnu"
self.assertEqual(be.target, expected)

def partial_build_test(self):
conan_file = ConanFileMock()
deps_cpp_info = namedtuple("Deps", "libs, include_paths, lib_paths, defines, cflags, "
Expand Down

0 comments on commit c9ebf89

Please sign in to comment.