예제 #1
0
 def test_apple_sdk_name_custom_settings(self):
     self.assertEqual(
         tools.apple_sdk_name(FakeSettings('Macos', 'ios_fat')), 'macosx')
     self.assertEqual(tools.apple_sdk_name(FakeSettings('iOS', 'ios_fat')),
                      'iphoneos')
     self.assertEqual(
         tools.apple_sdk_name(FakeSettings('watchOS', 'ios_fat')),
         'watchos')
     self.assertEqual(tools.apple_sdk_name(FakeSettings('tvOS', 'ios_fat')),
                      'appletvos')
     self.assertIsNone(
         tools.apple_sdk_name(FakeSettings('ConanOS', 'ios_fat')))
예제 #2
0
    def test_apple_sdk_name(self):

        self.assertEqual(tools.apple_sdk_name(FakeSettings('Macos', 'x86')), 'macosx')
        self.assertEqual(tools.apple_sdk_name(FakeSettings('Macos', 'x86_64')), 'macosx')
        self.assertEqual(tools.apple_sdk_name(FakeSettings('iOS', 'x86_64')), 'iphonesimulator')
        self.assertEqual(tools.apple_sdk_name(FakeSettings('iOS', 'armv7')), 'iphoneos')
        self.assertEqual(tools.apple_sdk_name(FakeSettings('watchOS', 'x86_64')), 'watchsimulator')
        self.assertEqual(tools.apple_sdk_name(FakeSettings('watchOS', 'armv7k')), 'watchos')
        self.assertEqual(tools.apple_sdk_name(FakeSettings('tvOS', 'x86')), 'appletvsimulator')
        self.assertEqual(tools.apple_sdk_name(FakeSettings('tvOS', 'armv8')), 'appletvos')
        self.assertIsNone(tools.apple_sdk_name(FakeSettings('Windows', 'x86')))