58 DigestOptionsBase.getWarningForUnsupportedCPU(optionName)
59 }, null, shouldPassMessage, shouldPassMessage, ExitCode.OK,
60 CommandLineOptionTest.prepareBooleanFlag(optionName, true));
61 }
62
63 @Override
64 protected void verifyOptionValues() throws Throwable {
65 // Verify that UseSHA option remains disabled even if all
66 // UseSHA*Intrinsics were enabled.
67 CommandLineOptionTest.verifyOptionValueForSameVM(
68 DigestOptionsBase.USE_SHA_OPTION, "false", String.format(
69 "%s option should be disabled on unsupported CPU"
70 + " even if all UseSHA*Intrinsics options were enabled.",
71 DigestOptionsBase.USE_SHA_OPTION),
72 DigestOptionsBase.UNLOCK_DIAGNOSTIC_VM_OPTIONS,
73 CommandLineOptionTest.prepareBooleanFlag(
74 DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, true),
75 CommandLineOptionTest.prepareBooleanFlag(
76 DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, true),
77 CommandLineOptionTest.prepareBooleanFlag(
78 DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, true));
79
80 // Verify that UseSHA option remains disabled even if all
81 // UseSHA*Intrinsics options were enabled and UseSHA was enabled as well.
82 CommandLineOptionTest.verifyOptionValueForSameVM(
83 DigestOptionsBase.USE_SHA_OPTION, "false", String.format(
84 "%s option should be disabled on unsupported CPU"
85 + " even if all UseSHA*Intrinsics options were enabled"
86 + " and %s was enabled as well",
87 DigestOptionsBase.USE_SHA_OPTION,
88 DigestOptionsBase.USE_SHA_OPTION),
89 DigestOptionsBase.UNLOCK_DIAGNOSTIC_VM_OPTIONS,
90 CommandLineOptionTest.prepareBooleanFlag(
91 DigestOptionsBase.USE_SHA_OPTION, true),
92 CommandLineOptionTest.prepareBooleanFlag(
93 DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, true),
94 CommandLineOptionTest.prepareBooleanFlag(
95 DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, true),
96 CommandLineOptionTest.prepareBooleanFlag(
97 DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, true));
98 }
99 }
|
58 DigestOptionsBase.getWarningForUnsupportedCPU(optionName)
59 }, null, shouldPassMessage, shouldPassMessage, ExitCode.OK,
60 CommandLineOptionTest.prepareBooleanFlag(optionName, true));
61 }
62
63 @Override
64 protected void verifyOptionValues() throws Throwable {
65 // Verify that UseSHA option remains disabled even if all
66 // UseSHA*Intrinsics were enabled.
67 CommandLineOptionTest.verifyOptionValueForSameVM(
68 DigestOptionsBase.USE_SHA_OPTION, "false", String.format(
69 "%s option should be disabled on unsupported CPU"
70 + " even if all UseSHA*Intrinsics options were enabled.",
71 DigestOptionsBase.USE_SHA_OPTION),
72 DigestOptionsBase.UNLOCK_DIAGNOSTIC_VM_OPTIONS,
73 CommandLineOptionTest.prepareBooleanFlag(
74 DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, true),
75 CommandLineOptionTest.prepareBooleanFlag(
76 DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, true),
77 CommandLineOptionTest.prepareBooleanFlag(
78 DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, true),
79 CommandLineOptionTest.prepareBooleanFlag(
80 DigestOptionsBase.USE_SHA3_INTRINSICS_OPTION, true));
81
82 // Verify that UseSHA option remains disabled even if all
83 // UseSHA*Intrinsics options were enabled and UseSHA was enabled as well.
84 CommandLineOptionTest.verifyOptionValueForSameVM(
85 DigestOptionsBase.USE_SHA_OPTION, "false", String.format(
86 "%s option should be disabled on unsupported CPU"
87 + " even if all UseSHA*Intrinsics options were enabled"
88 + " and %s was enabled as well",
89 DigestOptionsBase.USE_SHA_OPTION,
90 DigestOptionsBase.USE_SHA_OPTION),
91 DigestOptionsBase.UNLOCK_DIAGNOSTIC_VM_OPTIONS,
92 CommandLineOptionTest.prepareBooleanFlag(
93 DigestOptionsBase.USE_SHA_OPTION, true),
94 CommandLineOptionTest.prepareBooleanFlag(
95 DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, true),
96 CommandLineOptionTest.prepareBooleanFlag(
97 DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, true),
98 CommandLineOptionTest.prepareBooleanFlag(
99 DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, true),
100 CommandLineOptionTest.prepareBooleanFlag(
101 DigestOptionsBase.USE_SHA3_INTRINSICS_OPTION, true));
102 }
103 }
|