com.oracle.java.testlibrary.cli.predicate.NotPredicate Java Examples

The following examples show how to use com.oracle.java.testlibrary.cli.predicate.NotPredicate. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU(
        String optionName) {
    // execute test case on SPARC CPU that support any sha* instructions,
    // but does not support sha* instruction required by the tested option.
    super(optionName, new AndPredicate(Platform::isSparc,
            new AndPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE,
                    new NotPredicate(SHAOptionsBase.getPredicateForOption(
                            optionName)))));
}
 
Example #2
Source File: TestRTMTotalCountIncrRateOptionOnUnsupportedConfig.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private TestRTMTotalCountIncrRateOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "RTMTotalCountIncrRate", false, true,
            TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
                    .DEFAULT_VALUE,
            "-1", "0", "42", "128");
}
 
Example #3
Source File: TestRTMAbortRatioOptionOnUnsupportedConfig.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private TestRTMAbortRatioOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedVM(),
                    new SupportedCPU())),
            "RTMAbortRatio", false, true,
            TestRTMAbortRatioOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "0", "10", "100", "200");
}
 
Example #4
Source File: TestUseRTMForStackLocksOptionOnUnsupportedConfig.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private TestUseRTMForStackLocksOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "UseRTMForStackLocks", true, true,
            TestUseRTMForStackLocksOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "true");
}
 
Example #5
Source File: UseSHASpecificTestCaseForUnsupportedSparcCPU.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public UseSHASpecificTestCaseForUnsupportedSparcCPU(String optionName) {
    super(SHAOptionsBase.USE_SHA_OPTION, new AndPredicate(Platform::isSparc,
            new NotPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE)));

    Asserts.assertEQ(optionName, SHAOptionsBase.USE_SHA_OPTION,
            "Test case should be used for " + SHAOptionsBase.USE_SHA_OPTION
                    + " option only.");
}
 
Example #6
Source File: UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU(
        String optionName) {
    // execute test case on SPARC CPU that support any sha* instructions,
    // but does not support sha* instruction required by the tested option.
    super(optionName, new AndPredicate(Platform::isSparc,
            new AndPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE,
                    new NotPredicate(SHAOptionsBase.getPredicateForOption(
                            optionName)))));
}
 
Example #7
Source File: UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU(
        String optionName) {
    // execute test case on SPARC CPU that support any sha* instructions,
    // but does not support sha* instruction required by the tested option.
    super(optionName, new AndPredicate(Platform::isSparc,
            new AndPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE,
                    new NotPredicate(SHAOptionsBase.getPredicateForOption(
                            optionName)))));
}
 
Example #8
Source File: TestUseRTMForStackLocksOptionOnUnsupportedConfig.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private TestUseRTMForStackLocksOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "UseRTMForStackLocks", true, true,
            TestUseRTMForStackLocksOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "true");
}
 
Example #9
Source File: TestRTMAbortRatioOptionOnUnsupportedConfig.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private TestRTMAbortRatioOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedVM(),
                    new SupportedCPU())),
            "RTMAbortRatio", false, true,
            TestRTMAbortRatioOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "0", "10", "100", "200");
}
 
Example #10
Source File: TestRTMTotalCountIncrRateOptionOnUnsupportedConfig.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private TestRTMTotalCountIncrRateOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "RTMTotalCountIncrRate", false, true,
            TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
                    .DEFAULT_VALUE,
            "-1", "0", "42", "128");
}
 
Example #11
Source File: TestUseRTMForStackLocksOptionOnUnsupportedConfig.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private TestUseRTMForStackLocksOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "UseRTMForStackLocks", true, true,
            TestUseRTMForStackLocksOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "true");
}
 
Example #12
Source File: UseSHASpecificTestCaseForUnsupportedSparcCPU.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public UseSHASpecificTestCaseForUnsupportedSparcCPU(String optionName) {
    super(SHAOptionsBase.USE_SHA_OPTION, new AndPredicate(Platform::isSparc,
            new NotPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE)));

    Asserts.assertEQ(optionName, SHAOptionsBase.USE_SHA_OPTION,
            "Test case should be used for " + SHAOptionsBase.USE_SHA_OPTION
                    + " option only.");
}
 
Example #13
Source File: UseSHASpecificTestCaseForUnsupportedSparcCPU.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public UseSHASpecificTestCaseForUnsupportedSparcCPU(String optionName) {
    super(SHAOptionsBase.USE_SHA_OPTION, new AndPredicate(Platform::isSparc,
            new NotPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE)));

    Asserts.assertEQ(optionName, SHAOptionsBase.USE_SHA_OPTION,
            "Test case should be used for " + SHAOptionsBase.USE_SHA_OPTION
                    + " option only.");
}
 
Example #14
Source File: TestUseRTMForStackLocksOptionOnUnsupportedConfig.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private TestUseRTMForStackLocksOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "UseRTMForStackLocks", true, true,
            TestUseRTMForStackLocksOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "true");
}
 
Example #15
Source File: TestRTMAbortRatioOptionOnUnsupportedConfig.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private TestRTMAbortRatioOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedVM(),
                    new SupportedCPU())),
            "RTMAbortRatio", false, true,
            TestRTMAbortRatioOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "0", "10", "100", "200");
}
 
Example #16
Source File: UseSHASpecificTestCaseForUnsupportedSparcCPU.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public UseSHASpecificTestCaseForUnsupportedSparcCPU(String optionName) {
    super(SHAOptionsBase.USE_SHA_OPTION, new AndPredicate(Platform::isSparc,
            new NotPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE)));

    Asserts.assertEQ(optionName, SHAOptionsBase.USE_SHA_OPTION,
            "Test case should be used for " + SHAOptionsBase.USE_SHA_OPTION
                    + " option only.");
}
 
Example #17
Source File: TestRTMTotalCountIncrRateOptionOnUnsupportedConfig.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private TestRTMTotalCountIncrRateOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "RTMTotalCountIncrRate", false, true,
            TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
                    .DEFAULT_VALUE,
            "-1", "0", "42", "128");
}
 
Example #18
Source File: TestRTMTotalCountIncrRateOptionOnUnsupportedConfig.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private TestRTMTotalCountIncrRateOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "RTMTotalCountIncrRate", false, true,
            TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
                    .DEFAULT_VALUE,
            "-1", "0", "42", "128");
}
 
Example #19
Source File: TestRTMAbortRatioOptionOnUnsupportedConfig.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private TestRTMAbortRatioOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedVM(),
                    new SupportedCPU())),
            "RTMAbortRatio", false, true,
            TestRTMAbortRatioOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "0", "10", "100", "200");
}
 
Example #20
Source File: TestUseRTMForStackLocksOptionOnUnsupportedConfig.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private TestUseRTMForStackLocksOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "UseRTMForStackLocks", true, true,
            TestUseRTMForStackLocksOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "true");
}
 
Example #21
Source File: UseSHASpecificTestCaseForUnsupportedSparcCPU.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public UseSHASpecificTestCaseForUnsupportedSparcCPU(String optionName) {
    super(SHAOptionsBase.USE_SHA_OPTION, new AndPredicate(Platform::isSparc,
            new NotPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE)));

    Asserts.assertEQ(optionName, SHAOptionsBase.USE_SHA_OPTION,
            "Test case should be used for " + SHAOptionsBase.USE_SHA_OPTION
                    + " option only.");
}
 
Example #22
Source File: TestRTMAbortRatioOptionOnUnsupportedConfig.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private TestRTMAbortRatioOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedVM(),
                    new SupportedCPU())),
            "RTMAbortRatio", false, true,
            TestRTMAbortRatioOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "0", "10", "100", "200");
}
 
Example #23
Source File: TestRTMTotalCountIncrRateOptionOnUnsupportedConfig.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private TestRTMTotalCountIncrRateOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "RTMTotalCountIncrRate", false, true,
            TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
                    .DEFAULT_VALUE,
            "-1", "0", "42", "128");
}
 
Example #24
Source File: UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU(
        String optionName) {
    // execute test case on SPARC CPU that support any sha* instructions,
    // but does not support sha* instruction required by the tested option.
    super(optionName, new AndPredicate(Platform::isSparc,
            new AndPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE,
                    new NotPredicate(SHAOptionsBase.getPredicateForOption(
                            optionName)))));
}
 
Example #25
Source File: UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU(
        String optionName) {
    // execute test case on SPARC CPU that support any sha* instructions,
    // but does not support sha* instruction required by the tested option.
    super(optionName, new AndPredicate(Platform::isSparc,
            new AndPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE,
                    new NotPredicate(SHAOptionsBase.getPredicateForOption(
                            optionName)))));
}
 
Example #26
Source File: TestUseRTMDeoptOptionOnUnsupportedConfig.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private TestUseRTMDeoptOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "UseRTMDeopt", true, false,
            TestUseRTMDeoptOptionOnUnsupportedConfig.DEFAULT_VALUE, "true");
}
 
Example #27
Source File: GenericTestCaseForUnsupportedSparcCPU.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public GenericTestCaseForUnsupportedSparcCPU(String optionName) {
    super(optionName, new AndPredicate(Platform::isSparc,
            new NotPredicate(SHAOptionsBase.getPredicateForOption(
                    optionName))));
}
 
Example #28
Source File: TestUseRTMDeoptOptionOnUnsupportedConfig.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private TestUseRTMDeoptOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "UseRTMDeopt", true, false,
            TestUseRTMDeoptOptionOnUnsupportedConfig.DEFAULT_VALUE, "true");
}
 
Example #29
Source File: TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
            new SupportedVM())));
}
 
Example #30
Source File: GenericTestCaseForOtherCPU.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public GenericTestCaseForOtherCPU(String optionName) {
    // Execute the test case on any CPU except SPARC and X86
    super(optionName, new NotPredicate(new OrPredicate(Platform::isSparc,
            new OrPredicate(Platform::isX64, Platform::isX86))));
}