def test_generates_one_actool_cmd_with_root_output_when_split_bundles_is_false(self):
     catalogs = ["/A.xcassets", "/B.xcassets"]
     self.assertOneActoolCommandWithRootOutput(actool_cmds("10.9", "macosx", ["mac"], "/output", catalogs, False))
     self.assertOneActoolCommandWithRootOutput(actool_cmds("10.8", "macosx", ["mac"], "/output", catalogs, False))
     self.assertOneActoolCommandWithRootOutput(
         actool_cmds("6.0", "iphoneos", ["iphone"], "/output", catalogs, False)
     )
     self.assertOneActoolCommandWithRootOutput(
         actool_cmds("7.0", "iphoneos", ["iphone"], "/output", catalogs, False)
     )
 def test_generates_one_actool_cmd_with_root_output_when_split_bundles_is_false(self):
     catalogs = ['/A.xcassets', '/B.xcassets']
     self.assertOneActoolCommandWithRootOutput(actool_cmds(
         '10.9', 'macosx', ['mac'], '/output', catalogs, False))
     self.assertOneActoolCommandWithRootOutput(actool_cmds(
         '10.8', 'macosx', ['mac'], '/output', catalogs, False))
     self.assertOneActoolCommandWithRootOutput(actool_cmds(
         '6.0', 'iphoneos', ['iphone'], '/output', catalogs, False))
     self.assertOneActoolCommandWithRootOutput(actool_cmds(
         '7.0', 'iphoneos', ['iphone'], '/output', catalogs, False))
Beispiel #3
0
 def test_generates_one_actool_cmd_with_root_output_when_split_bundles_is_false(
         self):
     catalogs = ['/A.xcassets', '/B.xcassets']
     self.assertOneActoolCommandWithRootOutput(
         actool_cmds('10.9', 'macosx', ['mac'], '/output', catalogs, False))
     self.assertOneActoolCommandWithRootOutput(
         actool_cmds('10.8', 'macosx', ['mac'], '/output', catalogs, False))
     self.assertOneActoolCommandWithRootOutput(
         actool_cmds('6.0', 'iphoneos', ['iphone'], '/output', catalogs,
                     False))
     self.assertOneActoolCommandWithRootOutput(
         actool_cmds('7.0', 'iphoneos', ['iphone'], '/output', catalogs,
                     False))
 def test_specifies_forced_minimum_deployment_target_in_actool_cmd_when_split_bundles_is_specified(
         self):
     pairs = actool_cmds('7.0', 'iphoneos', ['iphone'], '/output',
                         ['/A.xcassets'], True)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     self.assertTrue('--minimum-deployment-target 6.0' in ' '.join(c))
 def test_specifies_devices_in_actool_cmd(self):
     pairs = actool_cmds("7.0", "iphoneos", ["iphone", "ipad"], "/output", ["/A.xcassets"], False)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     s = " ".join(c)
     self.assertTrue("--target-device iphone" in s)
     self.assertTrue("--target-device ipad" in s)
Beispiel #6
0
 def test_specifies_devices_in_actool_cmd(self):
     pairs = actool_cmds('7.0', 'iphoneos', ['iphone', 'ipad'], '/output',
                         ['/A.xcassets'], False)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     s = ' '.join(c)
     self.assertTrue('--target-device iphone' in s)
     self.assertTrue('--target-device ipad' in s)
 def test_splits_into_bundles_when_told_prior_to_osx10_9(self):
     catalogs = ["/A.xcassets", "/B.xcassets"]
     pairs = actool_cmds("10.8", "macosx", ["mac"], "/output", catalogs, True)
     self.assertTrue(len(pairs) == 2)
     (c, d) = pairs[0]
     s = " ".join(c)
     self.assertTrue("--compile /output/A.bundle /A.xcassets" in s)
     (c, d) = pairs[1]
     s = " ".join(c)
     self.assertTrue("--compile /output/B.bundle /B.xcassets" in s)
 def test_splits_into_bundles_when_told_post_ios7(self):
     catalogs = ["/A.xcassets", "/B.xcassets"]
     pairs = actool_cmds("7.0", "iphoneos", ["iphone"], "/output", catalogs, True)
     self.assertTrue(len(pairs) == 2)
     (c, d) = pairs[0]
     s = " ".join(c)
     self.assertTrue("--compile /output/A.bundle /A.xcassets" in s)
     (c, d) = pairs[1]
     s = " ".join(c)
     self.assertTrue("--compile /output/B.bundle /B.xcassets" in s)
Beispiel #9
0
 def test_splits_into_bundles_when_told_post_ios7(self):
     catalogs = ['/A.xcassets', '/B.xcassets']
     pairs = actool_cmds('7.0', 'iphoneos', ['iphone'], '/output', catalogs,
                         True)
     self.assertTrue(len(pairs) == 2)
     (c, d) = pairs[0]
     s = ' '.join(c)
     self.assertTrue('--compile /output/A.bundle /A.xcassets' in s)
     (c, d) = pairs[1]
     s = ' '.join(c)
     self.assertTrue('--compile /output/B.bundle /B.xcassets' in s)
Beispiel #10
0
 def test_splits_into_bundles_when_told_prior_to_osx10_9(self):
     catalogs = ['/A.xcassets', '/B.xcassets']
     pairs = actool_cmds('10.8', 'macosx', ['mac'], '/output', catalogs,
                         True)
     self.assertTrue(len(pairs) == 2)
     (c, d) = pairs[0]
     s = ' '.join(c)
     self.assertTrue('--compile /output/A.bundle /A.xcassets' in s)
     (c, d) = pairs[1]
     s = ' '.join(c)
     self.assertTrue('--compile /output/B.bundle /B.xcassets' in s)
 def test_specifies_minimum_deployment_target_in_actool_cmd(self):
     pairs = actool_cmds(
         '6.0.1',
         'iphoneos',
         ['iphone'],
         '/output',
         ['/A.xcassets'],
         False)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     self.assertTrue('--minimum-deployment-target 6.0.1' in ' '.join(c))
 def test_specifies_forced_minimum_deployment_target_in_actool_cmd_when_split_bundles_is_specified(self):
     pairs = actool_cmds(
         '7.0',
         'iphoneos',
         ['iphone'],
         '/output',
         ['/A.xcassets'],
         True)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     self.assertTrue('--minimum-deployment-target 6.0' in ' '.join(c))
 def test_specifies_platform_in_actool_cmd(self):
     pairs = actool_cmds(
         '7.0',
         'iphoneos',
         ['iphone'],
         '/output',
         ['/A.xcassets'],
         False)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     self.assertTrue('--platform iphoneos' in ' '.join(c))
 def test_splits_into_bundles_when_told_prior_to_ios7(self):
     catalogs = ['A.xcassets', 'B.xcassets']
     pairs = actool_cmds('6.0', 'iphoneos', ['iphone'], 'output', catalogs,
                         True)
     self.assertTrue(len(pairs) == 2)
     (c, d) = pairs[0]
     s = ' '.join(c)
     self.assertTrue('--compile {0} {1}'.format(
         os.path.join('output', 'A.bundle'), 'A.xcassets') in s)
     (c, d) = pairs[1]
     s = ' '.join(c)
     self.assertTrue('--compile {0} {1}'.format(
         os.path.join('output', 'B.bundle'), 'B.xcassets') in s)
 def test_splits_into_bundles_when_told_post_osx10_9(self):
     catalogs = ['A.xcassets', 'B.xcassets']
     pairs = actool_cmds('10.9', 'macosx', ['mac'], 'output', catalogs,
                         True)
     self.assertTrue(len(pairs) == 2)
     (c, d) = pairs[0]
     s = ' '.join(c)
     self.assertTrue('--compile {0} {1}'.format(
         os.path.join('output', 'A.bundle'), 'A.xcassets') in s)
     (c, d) = pairs[1]
     s = ' '.join(c)
     self.assertTrue('--compile {0} {1}'.format(
         os.path.join('output', 'B.bundle'), 'B.xcassets') in s)
 def test_specifies_devices_in_actool_cmd(self):
     pairs = actool_cmds(
         '7.0',
         'iphoneos',
         ['iphone', 'ipad'],
         '/output',
         ['/A.xcassets'],
         False)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     s = ' '.join(c)
     self.assertTrue('--target-device iphone' in s)
     self.assertTrue('--target-device ipad' in s)
 def test_splits_into_bundles_when_told_prior_to_ios7(self):
     catalogs = ['/A.xcassets', '/B.xcassets']
     pairs = actool_cmds(
         '6.0',
         'iphoneos',
         ['iphone'],
         '/output',
         catalogs,
         True)
     self.assertTrue(len(pairs) == 2)
     (c, d) = pairs[0]
     s = ' '.join(c)
     self.assertTrue('--compile /output/A.bundle /A.xcassets' in s)
     (c, d) = pairs[1]
     s = ' '.join(c)
     self.assertTrue('--compile /output/B.bundle /B.xcassets' in s)
 def test_splits_into_bundles_when_told_post_osx10_9(self):
     catalogs = ['/A.xcassets', '/B.xcassets']
     pairs = actool_cmds(
         '10.9',
         'macosx',
         ['mac'],
         '/output',
         catalogs,
         True)
     self.assertTrue(len(pairs) == 2)
     (c, d) = pairs[0]
     s = ' '.join(c)
     self.assertTrue('--compile /output/A.bundle /A.xcassets' in s)
     (c, d) = pairs[1]
     s = ' '.join(c)
     self.assertTrue('--compile /output/B.bundle /B.xcassets' in s)
 def test_splits_into_bundles_when_told_post_osx10_9(self):
     catalogs = ['A.xcassets', 'B.xcassets']
     pairs = actool_cmds(
         '10.9',
         'macosx',
         ['mac'],
         'output',
         catalogs,
         True)
     self.assertTrue(len(pairs) == 2)
     (c, d) = pairs[0]
     s = ' '.join(c)
     self.assertTrue('--compile {0} {1}'.format(
         os.path.join('output', 'A.bundle'),
         'A.xcassets') in s)
     (c, d) = pairs[1]
     s = ' '.join(c)
     self.assertTrue('--compile {0} {1}'.format(
         os.path.join('output', 'B.bundle'),
         'B.xcassets') in s)
 def test_splits_into_bundles_when_told_prior_to_ios7(self):
     catalogs = ['A.xcassets', 'B.xcassets']
     pairs = actool_cmds(
         '6.0',
         'iphoneos',
         ['iphone'],
         'output',
         catalogs,
         True)
     self.assertTrue(len(pairs) == 2)
     (c, d) = pairs[0]
     s = ' '.join(c)
     self.assertTrue('--compile {0} {1}'.format(
         os.path.join('output', 'A.bundle'),
         'A.xcassets') in s)
     (c, d) = pairs[1]
     s = ' '.join(c)
     self.assertTrue('--compile {0} {1}'.format(
         os.path.join('output', 'B.bundle'),
         'B.xcassets') in s)
 def test_specifies_minimum_deployment_target_in_actool_cmd(self):
     pairs = actool_cmds("6.0.1", "iphoneos", ["iphone"], "/output", ["/A.xcassets"], False)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     self.assertTrue("--minimum-deployment-target 6.0.1" in " ".join(c))
 def test_specifies_forced_minimum_deployment_target_in_actool_cmd_when_split_bundles_is_specified(self):
     pairs = actool_cmds("7.0", "iphoneos", ["iphone"], "/output", ["/A.xcassets"], True)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     self.assertTrue("--minimum-deployment-target 6.0" in " ".join(c))
     pass
 def test_specifies_platform_in_actool_cmd(self):
     pairs = actool_cmds("7.0", "iphoneos", ["iphone"], "/output", ["/A.xcassets"], False)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     self.assertTrue("--platform iphoneos" in " ".join(c))
Beispiel #24
0
 def test_specifies_minimum_deployment_target_in_actool_cmd(self):
     pairs = actool_cmds('6.0.1', 'iphoneos', ['iphone'], '/output',
                         ['/A.xcassets'], False)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     self.assertTrue('--minimum-deployment-target 6.0.1' in ' '.join(c))
Beispiel #25
0
 def test_specifies_platform_in_actool_cmd(self):
     pairs = actool_cmds('7.0', 'iphoneos', ['iphone'], '/output',
                         ['/A.xcassets'], False)
     self.assertTrue(len(pairs) == 1)
     (c, d) = pairs[0]
     self.assertTrue('--platform iphoneos' in ' '.join(c))