diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-01-01 00:11:17 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-01-01 00:11:17 +0000 |
commit | f2bee5e8763778f0f261e1e07ab657c828821c2e (patch) | |
tree | 212cadd6127a8c10030f716145e5163dbdb62666 /tests/cdash/cfg_msvc.py | |
parent | beea36bf708bd92dfd5275dfe5eb53cff19c14b6 (diff) |
Added Symbian test configurator
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2405 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/cdash/cfg_msvc.py')
-rw-r--r-- | tests/cdash/cfg_msvc.py | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/tests/cdash/cfg_msvc.py b/tests/cdash/cfg_msvc.py index dcebbd07..af0b6ecb 100644 --- a/tests/cdash/cfg_msvc.py +++ b/tests/cdash/cfg_msvc.py @@ -23,25 +23,35 @@ import sys # Each configurator must export this function def create_builder(args): - # (optional) args format: - # [cfg_site] [--vs-config VSCFG] - # - # cfg_site: site configuration module. If not specified, "cfg_site" - # is implied - # VSCFG: Visual Studio build configuration to build. Sample values: - # "Debug|Win32", "Release|Win32". If not specified then - # "Release|Win32" is assumed + usage = """\ +Usage: + main.py cfg_msvc [-h|--help] [-t|--target TARGET] [cfg_site] + +Arguments: + cfg_site: site configuration module. If not specified, "cfg_site" + is implied + -t,--target TARGET: Visual Studio build configuration to build. Default is + "Release|Win32". Sample values: "Debug|Win32" + -h, --help Show this help screen + +""" cfg_site = "cfg_site" - vs_cfg = "Release|Win32" + target = "Release|Win32" in_option = "" for arg in args: - if in_option=="--vs-config": - vs_cfg = arg + if in_option=="-t": + target = arg in_option = "" - elif arg=="--vs-config": - in_option = arg + elif arg=="--target" or arg=="-t": + in_option = "-t" + elif arg=="-h" or arg=="--help": + print usage + sys.exit(0) + elif arg[0]=="-": + print usage + sys.exit(1) else: cfg_site = arg @@ -58,7 +68,7 @@ def create_builder(args): builders = [ builder.MSVCTestBuilder(test_cfg, - vs_config=vs_cfg, + target=target, build_config_name="default", config_site="#define PJ_TODO(x)\n", exclude=cfg_site.EXCLUDE, |