Home | History | Annotate | Download | only in vogar
      1 /*
      2  * Copyright (C) 2010 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package vogar;
     18 
     19 /**
     20  * TestProperties is a common class of constants shared between the
     21  * Vogar on the host and TestRunner classes potentially running
     22  * on other devices.
     23  */
     24 final public class TestProperties {
     25 
     26     /**
     27      * The name of the test properties file within the {@code .jar} file.
     28      */
     29     public static final String FILE = "test.properties";
     30 
     31     /**
     32      * Name of the property giving the class name or package name of the test to be performed.
     33      */
     34     public static final String TEST_CLASS_OR_PACKAGE = "testClassOrPackage";
     35 
     36     /**
     37      * Name of the property giving the test's name, such as {@code
     38      * java.math.BigDecimal.PowTests}.
     39      */
     40     public static final String QUALIFIED_NAME = "qualifiedName";
     41 
     42     /**
     43      * Port to accept monitor connections on.
     44      */
     45     public static final String MONITOR_PORT = "monitorPort";
     46 
     47     /**
     48      * Integer timeout in seconds
     49      */
     50     public static final String TIMEOUT = "timeout";
     51 
     52     /**
     53      * Profile enabled?
     54      */
     55     public static final String PROFILE = "profile";
     56 
     57     /**
     58      * Profile frame depth
     59      */
     60     public static final String PROFILE_DEPTH = "profileDepth";
     61 
     62     /**
     63      * Profile interval in milliseconds
     64      */
     65     public static final String PROFILE_INTERVAL = "profileInterval";
     66 
     67     /**
     68      * Profile output file
     69      */
     70     public static final String PROFILE_FILE = "profileFile";
     71 
     72     /**
     73      * Profile thread group instead of just single thread (where supported)
     74      */
     75     public static final String PROFILE_THREAD_GROUP = "profileThreadGroup";
     76 
     77     /**
     78      * Only run JUnit tests?
     79      */
     80     public static final String TEST_ONLY = "testOnly";
     81 
     82     private TestProperties() {}
     83 }
     84