aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryTest.java b/src/test/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryTest.java
index 19e2013ede..6d8a4125ab 100644
--- a/src/test/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryTest.java
+++ b/src/test/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryTest.java
@@ -56,6 +56,26 @@ public class AppleStaticLibraryTest extends ObjcRuleTestCase {
}
};
+ @Test
+ public void testMandatoryMinimumOsVersionUnset() throws Exception {
+ RULE_TYPE.scratchTarget(scratch,
+ "srcs", "['a.m']",
+ "platform_type", "'watchos'");
+ useConfiguration("--experimental_apple_mandatory_minimum_version");
+ reporter.removeHandler(failFastHandler);
+ getConfiguredTarget("//x:x");
+ assertContainsEvent("must be explicitly specified");
+ }
+
+ @Test
+ public void testMandatoryMinimumOsVersionSet() throws Exception {
+ RULE_TYPE.scratchTarget(scratch,
+ "minimum_os_version", "'8.0'",
+ "srcs", "['a.m']",
+ "platform_type", "'watchos'");
+ useConfiguration("--experimental_apple_mandatory_minimum_version");
+ getConfiguredTarget("//x:x");
+ }
@Test
public void testUnknownPlatformType() throws Exception {