def get_gnu_triplet_on_windows_without_compiler_test(self): with self.assertRaises(ConanException): tools.get_gnu_triplet("Windows", "x86")
def get_gnu_triplet_test(self, os, arch, compiler, expected_triplet): triplet = tools.get_gnu_triplet(os, arch, compiler) self.assertEqual(triplet, expected_triplet, "triplet did not match for ('%s', '%s', '%s')" % (os, arch, compiler))