public class NativeClientBatteryTest extends Object
tests.list:
collections/collperf.xml numHosts=5
locks/locktest.xml
include $CTESTS/license/license.list
A .list file can live anywhere, for example, in the same directory as the tests it references.
Tests can be commented out using C or C++ style comments. Multiple tests can be listed on the same line as long as they are separated by whitespace. A test name can only contain whitespace if it is quoted.
A test can depend on any number of "system properties" used in the native client test test XML file via the ${} syntax. Properties are used to generate multiple XML test files based on a single input file. They are intended for use only when using regular parameters would be cumbersome, for example, when scaling the number of hosts used in a test.
Default values for system properties can optionally be specified in a .prop file by the same name and in the same directory as the test, whether that is relative to the current directory or to $CTESTS. Batterytest will seek the .prop file automatically. There is no need to indicate to batterytest whether such a file exists, and there is no way to force batterytest to look in another location for this file.
Values for properties can also be specified after the test name in the .list file. Any properties specified in the .list file will override those in the .prop file. A property value cannot contain whitespace. They can be given on the same line as the test or on subsequent lines. Each property must be separated from the next with whitespace.
Usage:
java -DCTESTS=<path_to_test_classes>
-DtestFileName=<batterytest_input_file>
[-DresultDir=<cwd_for_batterytest(default:$cwd)>]
[-DlogLevel=<batterytest_log_level(default:info)>]
batterytest.NativeClientBatteryTest
Example:
java -classpath $CTESTS
-DCTESTS=$CTESTS
-DtestFileName=$CTESTS/smoketest/smoketest.list
batterytest.NativeClientBatteryTest
A fully expanded list of tests with their configured properties is written
to "batterytest.bt". The list of tests to run, using parmetrized names,
is written to "batterytest.list". These files are overwritten every time
batterytest is invoked. Log messages are written to "batterytest.log".
The verbosity of this log is controlled via logLevel.
| Constructor and Description |
|---|
NativeClientBatteryTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static void |
runbattery(String[] args) |
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.