OLD | NEW |
1 #!/usr/bin/python2.4 | 1 #!/usr/bin/python2.4 |
2 # | 2 # |
3 # Copyright 2008, Google Inc. | 3 # Copyright 2008, Google Inc. |
4 # All rights reserved. | 4 # All rights reserved. |
5 # | 5 # |
6 # Redistribution and use in source and binary forms, with or without | 6 # Redistribution and use in source and binary forms, with or without |
7 # modification, are permitted provided that the following conditions are | 7 # modification, are permitted provided that the following conditions are |
8 # met: | 8 # met: |
9 # | 9 # |
10 # * Redistributions of source code must retain the above copyright | 10 # * Redistributions of source code must retain the above copyright |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 print 'This script is supported only on Linux' | 375 print 'This script is supported only on Linux' |
376 os.exit(1) | 376 os.exit(1) |
377 | 377 |
378 # Command line parsing | 378 # Command line parsing |
379 parser = optparse.OptionParser() | 379 parser = optparse.OptionParser() |
380 parser.add_option('-p', | 380 parser.add_option('-p', |
381 '--platform', | 381 '--platform', |
382 dest='platform', | 382 dest='platform', |
383 default=None, | 383 default=None, |
384 help=('Platform that the locv file was generated on. Must' | 384 help=('Platform that the locv file was generated on. Must' |
385 'be one of {win32, linux2, macosx}')) | 385 'be one of {win32, linux2, linux3, macosx}')) |
386 parser.add_option('-s', | 386 parser.add_option('-s', |
387 '--source', | 387 '--source', |
388 dest='src_dir', | 388 dest='src_dir', |
389 default=None, | 389 default=None, |
390 help='Path to the source code and symbols') | 390 help='Path to the source code and symbols') |
391 parser.add_option('-d', | 391 parser.add_option('-d', |
392 '--dash_root', | 392 '--dash_root', |
393 dest='dash_root', | 393 dest='dash_root', |
394 default=None, | 394 default=None, |
395 help='Root directory for the dashboard') | 395 help='Root directory for the dashboard') |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 print 'Unsupported platform' | 429 print 'Unsupported platform' |
430 os.exit(1) | 430 os.exit(1) |
431 | 431 |
432 # Prep coverage results for dashboard and post new set. | 432 # Prep coverage results for dashboard and post new set. |
433 parsed_data = ParseCoverageDataForDashboard(options.lcov_path) | 433 parsed_data = ParseCoverageDataForDashboard(options.lcov_path) |
434 PostResultsToDashboard(options.lcov_path, parsed_data, options.post_url) | 434 PostResultsToDashboard(options.lcov_path, parsed_data, options.post_url) |
435 | 435 |
436 | 436 |
437 if __name__ == '__main__': | 437 if __name__ == '__main__': |
438 main() | 438 main() |
OLD | NEW |