diff options
author | 2017-12-21 14:05:42 -0800 | |
---|---|---|
committer | 2017-12-21 14:07:52 -0800 | |
commit | c1f55e7d4cc31bd1dee5ba586f852353dfd04aa1 (patch) | |
tree | 22e5c6597adc04482a4ce40937b06ac151572b83 /src/test/java | |
parent | fd3bbf58e90dc4cc35b3254737ba3709901c5248 (diff) |
Deprecate "xctest" attribute from ios_test. This removes any functionality related to using xctest = 0, but keeps the attribute to not break the users who have xctest = 1.
PiperOrigin-RevId: 179855856
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/rules/objc/IosTestTest.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/objc/IosTestTest.java b/src/test/java/com/google/devtools/build/lib/rules/objc/IosTestTest.java index a0927fad67..b79613b77b 100644 --- a/src/test/java/com/google/devtools/build/lib/rules/objc/IosTestTest.java +++ b/src/test/java/com/google/devtools/build/lib/rules/objc/IosTestTest.java @@ -593,7 +593,6 @@ public class IosTestTest extends ObjcRuleTestCase { "ios_test(", " name = 'some_test',", " srcs = ['SomeTest.m'],", - " xctest = 0,", " target_device = ':test_device',", ")"); @@ -623,7 +622,6 @@ public class IosTestTest extends ObjcRuleTestCase { "ios_test(", " name = 'some_test',", " srcs = ['SomeTest.m'],", - " xctest = 0,", " target_device = ':test_device',", ")"); @@ -671,48 +669,6 @@ public class IosTestTest extends ObjcRuleTestCase { } @Test - public void testNonXcTestSubstitution() throws Exception { - scratch.file("test/BUILD", - "ios_test(", - " name = 'some_test',", - " srcs = ['SomeTest.m'],", - " xctest = 0,", - ")"); - - scratch.file("test/SomeTest.m"); - - ConfiguredTarget target = getConfiguredTarget("//test:some_test"); - - TemplateExpansionAction action = - getTestScriptGenerationAction(target); - assertThat(action.getSubstitutions()).containsExactly( - Substitution.of("%(memleaks)s", "false"), - - Substitution.of("%(test_app_ipa)s", "test/some_test.ipa"), - Substitution.of("%(test_bundle_path)s", "test/some_test.ipa"), - Substitution.of("%(test_app_name)s", "some_test"), - - Substitution.of("%(xctest_app_ipa)s", ""), - Substitution.of("%(xctest_app_name)s", ""), - Substitution.of("%(test_host_path)s", ""), - - Substitution.of("%(plugin_jars)s", ""), - Substitution.of("%(device_type)s", "iChimpanzee"), - Substitution.of("%(locale)s", "en"), - Substitution.of("%(simulator_sdk)s", "9.8"), - Substitution.of("%(testrunner_binary)s", "tools/objc/testrunner"), - Substitution.of("%(std_redirect_dylib_path)s", "tools/objc/StdRedirect.dylib"), - Substitution.of("%(test_env)s", ""), - Substitution.of("%(test_type)s", "KIF") - ); - - assertRunfilesContainsRootRelativePaths(target, - "test/some_test.ipa", - "test/some_test_test_script", - "tools/objc/testrunner"); - } - - @Test public void testRunnerWithDevice() throws Exception { scratch.file("test/BUILD", "ios_test(", |