/** * @license * Copyright 2013 Google Inc. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.security.wycheproof; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.util.Arrays; import org.junit.runner.Description; import org.junit.runner.manipulation.Filter; import org.junit.runner.manipulation.NoTestsRemainException; import org.junit.runners.Suite; import org.junit.runners.model.InitializationError; import org.junit.runners.model.RunnerBuilder; /** *

A custom JUnit4 runner that, with annotations, allows choosing tests to run on a specific * provider. To use it, annotate a runner class with {@code RunWith(WycheproofRunner.class)}, and * {@code SuiteClasses({AesGcmTest.class, ...})}. When you run this class, it will run all the tests * in all the suite classes. * *

To exclude certain tests, a runner class should be annotated with {@code @Provider} which * indicates the target provider. Test exclusion is defined as follows: *