group.add_argument('-A','--arch',metavar='arch',action='append',dest='archs',help=textwrap.dedent('''Specify the architecture(s) to test. This option can be specified more than once'''))
group.add_argument('-C','--compiler',metavar='compiler',dest='compilers',action='append',help=textwrap.dedent('''Specify the compiler(s) used to build the inferior executables. The compiler path can be an executable basename or a full path to a compiler executable. This option can be specified multiple times.'''))
ifsys.platform=='darwin':
group.add_argument('--apple-sdk',metavar='apple_sdk',dest='apple_sdk',help=textwrap.dedent('''Specify the name of the Apple SDK (macosx, macosx.internal, iphoneos, iphoneos.internal, or path to SDK) and use the appropriate tools from that SDK's toolchain.'''))
# FIXME? This won't work for different extra flags according to each arch.
group.add_argument('-E',metavar='extra-flags',help=textwrap.dedent('''Specify the extra flags to be passed to the toolchain when building the inferior programs to be debugged
suggestions:donotlumpthe"-A arch1 -A arch2"togethersuchthatthe-Eoptionappliestoonlyoneofthearchitectures'''))
group.add_argument('-f',metavar='filterspec',action='append',help='Specify a filter, which consists of the test class name, a dot, followed by the test method, to only admit such test into the test suite')# FIXME: Example?
X('-l',"Don't skip long running tests")
group.add_argument('-p',metavar='pattern',help='Specify a regexp filename pattern for inclusion in the test suite')
group.add_argument('-G','--category',metavar='category',action='append',dest='categoriesList',help=textwrap.dedent('''Specify categories of test cases of interest. Can be specified more than once.'''))
group.add_argument('--skip-category',metavar='category',action='append',dest='skipCategories',help=textwrap.dedent('''Specify categories of test cases to skip. Takes precedence over -G. Can be specified more than once.'''))
group.add_argument('--framework',metavar='framework-path',help='The path to LLDB.framework')
group.add_argument('--executable',metavar='executable-path',help='The path to the lldb executable')
group.add_argument('-s',metavar='name',help='Specify the name of the dir created to store the session files of tests with errored or failed status. If not specified, the test driver uses the timestamp as the session dir name')
group.add_argument('-y',type=int,metavar='count',help="Specify the iteration count used to collect our benchmarks. An example is the number of times to do 'thread step-over' to measure stepping speed.")
group.add_argument('-#',type=int,metavar='sharp',dest='sharp',help='Repeat the test suite for a specified number of times')
group.add_argument('--channel',metavar='channel',dest='channels',action='append',help=textwrap.dedent("Specify the log channels (and optional categories) e.g. 'lldb all' or 'gdb-remote packets' if no categories are specified, 'default' is used"))
group.add_argument('--log-success',dest='log_success',action='store_true',help="Leave logs/traces even for successful test runs (useful for creating reference log files during debugging.)")
group.add_argument('--platform-name',dest='lldb_platform_name',metavar='platform-name',help='The name of a remote platform to use')
group.add_argument('--platform-url',dest='lldb_platform_url',metavar='platform-url',help='A LLDB platform URL to use when connecting to a remote platform to run the test suite')
group.add_argument('--platform-working-dir',dest='lldb_platform_working_dir',metavar='platform-working-dir',help='The directory to use on the remote platform.')
X('-d','Suspend the process after launch to wait indefinitely for a debugger to attach')
X('-q',"Don't print extra output from this script.")
X('-t','Turn on tracing of lldb command and other detailed test executions')
group.add_argument('-u',dest='unset_env_varnames',metavar='variable',action='append',help='Specify an environment variable to unset before running the test cases. e.g., -u DYLD_INSERT_LIBRARIES -u MallocScribble')
group.add_argument('--env',dest='set_env_vars',metavar='variable',action='append',help='Specify an environment variable to set to the given value before running the test cases e.g.: --env CXXFLAGS=-O3 --env DYLD_INSERT_LIBRARIES')
X('-v','Do verbose mode of unittest framework (print out each test case invocation)')
group.add_argument('--enable-crash-dialog',dest='disable_crash_dialog',action='store_false',help='(Windows only) When LLDB crashes, display the Windows crash dialog.')
group.add_argument('args',metavar='test-dir',nargs='*',help='Specify a list of directory names to search for test modules named after Test*.py (test discovery). If empty, search from the current working directory instead.')