parser.add_argument("build_path",nargs="*",default=["."],help="Path to build directory (should contain CMakeCache.txt, default is current) or to directory with tests (all platform checks will be disabled in this case)")
parser.add_argument("-t","--tests",metavar="MODULES",default="",help="Comma-separated list of modules to test (example: -t core,imgproc,java)")
parser.add_argument("-b","--blacklist",metavar="MODULES",default="",help="Comma-separated list of modules to exclude from test (example: -b java)")
parser.add_argument("-a","--accuracy",action="store_true",default=False,help="Look for accuracy tests instead of performance tests")
parser.add_argument("--check",action="store_true",default=False,help="Shortcut for '--perf_min_samples=1 --perf_force_samples=1'")
parser.add_argument("-w","--cwd",metavar="PATH",default=".",help="Working directory for tests (default is current)")
parser.add_argument("-l","--longname",action="store_true",default=False,help="Generate log files with long names")
parser.add_argument("--list",action="store_true",default=False,help="List available tests (executables)")
parser.add_argument("--list_short",action="store_true",default=False,help="List available tests (aliases)")
parser.add_argument("--list_short_main",action="store_true",default=False,help="List available tests (main repository, aliases)")
parser.add_argument("--configuration",metavar="CFG",default="",help="Visual Studio: force Debug or Release configuration")
parser.add_argument("-n","--dry_run",action="store_true",help="Do not run the tests")
parser.add_argument("-v","--verbose",action="store_true",default=False,help="Print more debug information")
# Valgrind
parser.add_argument("--valgrind",action="store_true",default=False,help="Run C++ tests in valgrind")
parser.add_argument("--valgrind_supp",metavar="FILE",help="Path to valgrind suppression file (example: --valgrind_supp opencv/platforms/scripts/valgrind.supp)")
parser.add_argument("--valgrind_opt",metavar="OPT",action="append",default=[],help="Add command line option to valgrind (example: --valgrind_opt=--leak-check=full)")
# Android
parser.add_argument("--android",action="store_true",default=False,help="Android: force all tests to run on device")
parser.add_argument("--android_sdk",metavar="PATH",help="Android: path to SDK to use adb and aapt tools")
parser.add_argument("--android_test_data_path",metavar="PATH",default="/sdcard/opencv_testdata/",help="Android: path to testdata on device")
parser.add_argument("--serial",metavar="serial number",default="",help="Android: directs command to the USB device or emulator with the given serial number")
parser.add_argument("--package",metavar="package",default="",help="Android: run jUnit tests for specified package")