Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
Ingemar Ådahl 7c5f98e246 Set Python shebang in build to /usr/bin/env python
A common solution for developers using Linux distributions were
/usr/bin/python is linked to /usr/bin/python3 is to put a python ->
python2 symlink earlier in the PATH when working with python2-only
projects. This doesn't work when shebangs bypasses any environment
configuration.

The change was generated by executing:
  sed -i 's|#!/usr/bin/python|#!/usr/bin/env python|' \
    $(grep -rl '#!/usr/bin/python' build)

Change-Id: I2de77532fd31a0348ec58f4d9af4b7172dc1b9ed
Reviewed-on: https://chromium-review.googlesource.com/559347
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ingemar Ådahl <ingemara@opera.com>
Cr-Original-Commit-Position: refs/heads/master@{#484266}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 504c076b196be39b9083a6cab1c9dee11a66b33e
2017-07-05 14:42:43 +00:00
jbudorick 6422efa36b [Android] Prepare build/android/ for catapult+devil.
BUG=476719

Review URL: https://codereview.chromium.org/1571803002

Cr-Original-Commit-Position: refs/heads/master@{#368599}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d28554a567ddb871196a9268c1d76d8a0061370b
2016-01-11 16:23:48 +00:00
jbudorick 649b540d43 [Android] Add a custom pylintrc for build/android/.
The default depot_tools pylintrc disables some checks that we can
reasonably enable in build/android/. This CL does so.

BUG=

Review URL: https://codereview.chromium.org/1315743004

Cr-Original-Commit-Position: refs/heads/master@{#347720}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 58b4d3677418a2360c23e118199f5cf8992d4178
2015-09-08 16:45:52 +00:00
estevenson 9c46b5a2b4 Add fractional line coverage + logging change.
Added fractional line coverage to line by line coverage information so that the fractional line coverage will be available in generated JSON files.

Changed logging level of skipped files.

BUG=

Review URL: https://codereview.chromium.org/1284083004

Cr-Original-Commit-Position: refs/heads/master@{#343944}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 39bc8c2a5c6a7b9b4f97d2b29359e151b9ccf402
2015-08-18 17:01:03 +00:00
estevenson 703cebc118 Handle missing EMMA files.
When EMMA files are missing (i.e. the emma_filter didn't cover the java
source file that was changed) the script should still run properly.
Handled missing EMMA files by skipping them and only running coverage
stats on source files that have corresponding EMMA files.

Also updated tests.

BUG=

Review URL: https://codereview.chromium.org/1299693003

Cr-Original-Commit-Position: refs/heads/master@{#343917}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7d5973f6998a87987c474585fe1ac3179a39480b
2015-08-18 14:50:36 +00:00
estevenson e866860f65 Added coverage stats and report generation.
Sample Usage:
  build/android/coverage.py -v --out <output file path> --emma-dir <EMMA file directory> --lines-for-coverage-file <path to file containing lines for coverage>

This CL adds the ability to generate code coverage reports for Java code. To use this script, a JSON file should exist that maps file paths to lists of integers, representing the lines that have changed for each file (i.e. incremental changes).

The generated report contains overall coverage, coverage for the lines specified in the input file, and line by line coverage for each file included in the input file.

BUG=501536

Review URL: https://codereview.chromium.org/1216033009

Cr-Original-Commit-Position: refs/heads/master@{#341437}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 67aa871b52c94f30b52ef19fa71388a54fc3410f
2015-07-31 23:38:34 +00:00
estevenson 293b55887f Added coverage script for Java code.
This CL contains the first part of a script that will be used to
generate code coverage stats for Java code. The coverage tool used,
EMMA, only provides line by line coverage information in the form of
HTML reports, so this CL handles parsing these files.

BUG=501536

Review URL: https://codereview.chromium.org/1211243016

Cr-Original-Commit-Position: refs/heads/master@{#340833}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cf902beeaf9f13167abe9d5631ae1d3be9303d92
2015-07-29 01:36:14 +00:00