public class PerfSorter extends Object
COMPARISON_KEY_PROP. Test directories with the same
comparison key are placed into a subdirectory named for the key. The
subdirectory is created in the sorter's working directory.
Keys are obtained by default from the test properties file in the test directory, but can be overridden via an input batterytest file. When a batterytest file is provided, only tests matching a batterytest entry are sorted. Non-matching batterytest entries and test directories are ignored. By providing different batterytest files with different key assignments, the same set of tests can be sorted in different ways.
Failed tests can be optionally omitted.
Logging by the comparison sorter itself is written to "perfsorter.log".
The verbosity of this log is controlled via the logLevel
system property (see LogWriter).
This tool is useful for sorting tests that have the same name but different values of configuration variables, and that need to be compared using VSD, into convenient subdirectories that makes it easy to bring up VSD on the set of comparable directories.
Usage:
java -DJTESTS=<path_to_test_classes>
[-DbatterytestFile=<batterytest_filename>]
[-DomitFailedTests=<whether_to_omit_failed_tests_from_sort(default:false)>]
[-DlogLevel=<perf_comparer_log_level(default:info)>]
perffmwk.PerfSorter
<list_of_test_directories>
Example:
java -classpath $JTESTS:$GEMFIRE/lib/gemfire.jar
-DJTESTS=$JTESTS
-DbatterytestFile=compareByVendor.bt
perffmwk.PerfSorter useCase17-*
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPARISON_KEY_PROP |
| Constructor and Description |
|---|
PerfSorter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static boolean |
sort(String[] args) |
public static final String COMPARISON_KEY_PROP
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.