diff options
author | bevc@chromium.org <bevc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-24 21:05:10 +0000 |
---|---|---|
committer | bevc@chromium.org <bevc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-24 21:05:10 +0000 |
commit | a0402e0acafa4d4e64fc7897b455f7698ad1a6d0 (patch) | |
tree | 589cdfa406ae714e0434990ed371a69ed2278650 /tools/coverity | |
parent | c242e46421bb2c71aaa39ac687279a204f5d7d3b (diff) | |
download | chromium_src-a0402e0acafa4d4e64fc7897b455f7698ad1a6d0.zip chromium_src-a0402e0acafa4d4e64fc7897b455f7698ad1a6d0.tar.gz chromium_src-a0402e0acafa4d4e64fc7897b455f7698ad1a6d0.tar.bz2 |
Updated script for the new Windows machine and changed commit
defects from local directory to remote machine.
Review URL: http://codereview.chromium.org/2124019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48081 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/coverity')
-rw-r--r-- | tools/coverity/coverity.py | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/tools/coverity/coverity.py b/tools/coverity/coverity.py index cefc82c..1fcacf8 100644 --- a/tools/coverity/coverity.py +++ b/tools/coverity/coverity.py @@ -33,7 +33,7 @@ import time # TODO(wtc): Change these constants to command-line flags, particularly the # ones that are paths. Set default values for the flags. -CHROMIUM_SOURCE_DIR = 'E:\\chromium.latest' +CHROMIUM_SOURCE_DIR = 'C:\\chromium.latest' # Relative to CHROMIUM_SOURCE_DIR. CHROMIUM_SOLUTION_FILE = 'src\\chrome\\chrome.sln' @@ -41,12 +41,10 @@ CHROMIUM_SOLUTION_FILE = 'src\\chrome\\chrome.sln' # Relative to CHROMIUM_SOURCE_DIR. CHROMIUM_SOLUTION_DIR = 'src\\chrome' -COVERITY_BIN_DIR = 'C:\\coverity\\prevent-mingw-4.4.0\\bin' +COVERITY_BIN_DIR = 'C:\\coverity\\prevent-win32-4.5.1\\bin' COVERITY_INTERMEDIATE_DIR = 'C:\\coverity\\cvbuild\\cr_int' -COVERITY_DATABASE_DIR = 'C:\\coverity\\cvbuild\\db' - COVERITY_ANALYZE_OPTIONS = ('--cxx --security --concurrency ' '--enable ATOMICITY ' '--enable MISSING_LOCK ' @@ -57,10 +55,19 @@ COVERITY_ANALYZE_OPTIONS = ('--cxx --security --concurrency ' '--enable-constraint-fpp ' '--enable-callgraph-metrics') +# Might need to be changed to FQDN +COVERITY_REMOTE = 'chromecoverity-linux1' + +COVERITY_PORT = '5467' + COVERITY_PRODUCT = 'Chromium' +COVERITY_TARGET = 'Windows' + COVERITY_USER = 'admin' +CHROMIUM_PASSWORD = 'xxxxxxxx' + # Relative to CHROMIUM_SOURCE_DIR. Contains the pid of this script. LOCK_FILE = 'coverity.lock' @@ -119,10 +126,16 @@ def main(options, args): _RunCommand(cmd, options.dry_run) print 'Elapsed time: %ds' % (time.time() - start_time) - cmd = ('%s\\cov-commit-defects.exe --dir %s --datadir %s --product %s ' - '--user %s') % (COVERITY_BIN_DIR, COVERITY_INTERMEDIATE_DIR, - COVERITY_DATABASE_DIR, COVERITY_PRODUCT, - COVERITY_USER) + cmd = ('%s\\cov-commit-defects.exe --dir %s --remote %s --port %s' + '--product %s ' + '--target %s ' + '--user %s ' + '--password %s') % (COVERITY_BIN_DIR, + COVERITY_INTERMEDIATE_DIR, + COVERITY_REMOTE, COVERITY_PORT, + COVERITY_PRODUCT, + COVERITY_TARGET, COVERITY_USER, + CHROMIUM_PASSWORD) _RunCommand(cmd, options.dry_run) print 'Total time: %ds' % (time.time() - start_time) |