Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: chrome/chrome_tests.gypi

Issue 68193002: Remove linux coverage scripts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_exe.gypi ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 { 4 {
5 'variables' : { 5 'variables' : {
6 'chromedriver_unittest_sources': [ 6 'chromedriver_unittest_sources': [
7 'test/chromedriver/capabilities_unittest.cc', 7 'test/chromedriver/capabilities_unittest.cc',
8 'test/chromedriver/chrome/chrome_finder_unittest.cc', 8 'test/chromedriver/chrome/chrome_finder_unittest.cc',
9 'test/chromedriver/chrome/console_logger_unittest.cc', 9 'test/chromedriver/chrome/console_logger_unittest.cc',
10 'test/chromedriver/chrome/device_manager_unittest.cc', 10 'test/chromedriver/chrome/device_manager_unittest.cc',
(...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after
2883 'sources': [ 2883 'sources': [
2884 'test/security_tests/ipc_security_tests.cc', 2884 'test/security_tests/ipc_security_tests.cc',
2885 'test/security_tests/ipc_security_tests.h', 2885 'test/security_tests/ipc_security_tests.h',
2886 'test/security_tests/security_tests.cc', 2886 'test/security_tests/security_tests.cc',
2887 '../sandbox/win/tests/validation_tests/commands.cc', 2887 '../sandbox/win/tests/validation_tests/commands.cc',
2888 '../sandbox/win/tests/validation_tests/commands.h', 2888 '../sandbox/win/tests/validation_tests/commands.h',
2889 ], 2889 ],
2890 }, 2890 },
2891 ]}, # 'targets' 2891 ]}, # 'targets'
2892 ], # OS=="win" 2892 ], # OS=="win"
2893 # If you change this condition, make sure you also change it in all.gyp
2894 # for the chromium_builder_qa target.
2895 # To enable the coverage targets, do
2896 # GYP_DEFINES='coverage=1' gclient sync
2897 # To match the coverage buildbot more closely, do this:
2898 # GYP_DEFINES='coverage=1 enable_svg=0 fastbuild=1' gclient sync
2899 # (and, on MacOS, be sure to switch your SDK from "Base SDK" to "Mac OS X
2900 # 10.6")
2901 # (but on Windows, don't set the fastbuild=1 because it removes the PDB
2902 # generation which is necessary for code coverage.)
2903 ['coverage!=0',
2904 { 'targets': [
2905 {
2906 ### Coverage BUILD AND RUN.
2907 ### Not named coverage_build_and_run for historical reasons.
2908 'target_name': 'coverage',
2909 'dependencies': [ 'coverage_build', 'coverage_run' ],
2910 # do NOT place this in the 'all' list; most won't want it.
2911 # In gyp, booleans are 0/1 not True/False.
2912 'suppress_wildcard': 1,
2913 'type': 'none',
2914 'actions': [
2915 {
2916 'message': 'Coverage is now complete',
2917 # MSVS must have an input file and an output file.
2918 'inputs': [ '<(PRODUCT_DIR)/coverage.info' ],
2919 'outputs': [ '<(PRODUCT_DIR)/coverage-build-and-run.stamp' ],
2920 'action_name': 'coverage',
2921 # Wish gyp had some basic builtin commands (e.g. 'touch').
2922 'action': [ 'python', '-c',
2923 'import os; ' \
2924 'open(' \
2925 '\'<(PRODUCT_DIR)\' + os.path.sep + ' \
2926 '\'coverage-build-and-run.stamp\'' \
2927 ', \'w\').close()' ],
2928 # Use outputs of this action as inputs for the main target build.
2929 # Seems as a misnomer but makes this happy on Linux (scons).
2930 'process_outputs_as_sources': 1,
2931 },
2932 ], # 'actions'
2933 },
2934 ### Coverage BUILD. Compile only; does not run the bundles.
2935 ### Intended as the build phase for our coverage bots.
2936 ###
2937 ### Builds unit test bundles needed for coverage.
2938 ### Outputs this list of bundles into coverage_bundles.py.
2939 ###
2940 ### If you want to both build and run coverage from your IDE,
2941 ### use the 'coverage' target.
2942 {
2943 'target_name': 'coverage_build',
2944 # do NOT place this in the 'all' list; most won't want it.
2945 # In gyp, booleans are 0/1 not True/False.
2946 'suppress_wildcard': 1,
2947 'type': 'none',
2948 'dependencies': [
2949 '../base/base.gyp:base_unittests',
2950 # browser_tests's use of subprocesses chokes gcov on 10.6?
2951 # Disabling for now (enabled on linux/windows below).
2952 # 'browser_tests',
2953 '../ipc/ipc.gyp:ipc_tests',
2954 '../net/net.gyp:net_unittests',
2955 '../remoting/remoting.gyp:remoting_unittests',
2956 '../sql/sql.gyp:sql_unittests',
2957 '../content/content_shell_and_tests.gyp:content_unittests',
2958 'unit_tests',
2959 '../sync/sync.gyp:sync_unit_tests',
2960 ], # 'dependencies'
2961 'conditions': [
2962 ['OS!="ios"', {
2963 'dependencies': [
2964 '../media/media.gyp:media_unittests',
2965 ]}],
2966 ['OS=="win"', {
2967 'dependencies': [
2968 # Courgette has not been ported from Windows.
2969 # Note build/win/chrome_win.croc uniquely has the
2970 # courgette source directory in an include path.
2971 '../courgette/courgette.gyp:courgette_unittests',
2972 'browser_tests',
2973 ]}],
2974 ['OS=="linux"', {
2975 'dependencies': [
2976 # Win bot needs to be turned into an interactive bot.
2977 'interactive_ui_tests',
2978 # Disabled from running in coverage_posix.py.
2979 # We need to build this during compile step, so enabling here.
2980 '../content/content_shell_and_tests.gyp:content_browsertests',
2981 '../courgette/courgette.gyp:courgette_unittests',
2982 '../crypto/crypto.gyp:crypto_unittests',
2983 '../jingle/jingle.gyp:jingle_unittests',
2984 '../net/net.gyp:net_perftests',
2985 '../third_party/WebKit/public/all.gyp:all_blink',
2986 '../url/url.gyp:url_unittests',
2987 'browser_tests',
2988 'chromedriver_unittests',
2989 'performance_ui_tests',
2990 'pyautolib',
2991 'sync_integration_tests',
2992 ],
2993 }],
2994 ['OS=="mac"', {
2995 'dependencies': [
2996 # Placeholder; empty for now.
2997 ]}],
2998 ['enable_printing!=0', {
2999 'dependencies': [
3000 '../printing/printing.gyp:printing_unittests',
3001 ],
3002 }],
3003 ], # 'conditions'
3004 'actions': [
3005 {
3006 # 'message' for Linux/scons in particular. Scons
3007 # requires the 'coverage' target be run from within
3008 # src/chrome.
3009 'message': 'Compiling coverage bundles',
3010 # MSVS must have an input file and an output file.
3011 #
3012 # TODO(jrg):
3013 # Technically I want inputs to be the list of
3014 # executables created in <@(_dependencies) but use of
3015 # that variable lists the dep by dep name, not their
3016 # output executable name.
3017 # Is there a better way to force this action to run, always?
3018 #
3019 # If a test bundle is added to this coverage_build target it
3020 # necessarily means this file (chrome_tests.gypi) is changed,
3021 # so the action is run (coverage_bundles.py is generated).
3022 # Exceptions to that rule are theoretically possible
3023 # (e.g. re-gyp with a GYP_DEFINES set).
3024 # Else it's the same list of bundles as last time. They are
3025 # built (since on the deps list) but the action may not run.
3026 # For now, things work, but it's less than ideal.
3027 'inputs': [ 'chrome_tests.gypi' ],
3028 'outputs': [ '<(PRODUCT_DIR)/coverage_bundles.py' ],
3029 'action_name': 'coverage_build',
3030 'action': [ 'python', '-c',
3031 'import os; '
3032 'f = open(' \
3033 '\'<(PRODUCT_DIR)\' + os.path.sep + ' \
3034 '\'coverage_bundles.py\'' \
3035 ', \'w\'); ' \
3036 'deplist = \'' \
3037 '<@(_dependencies)' \
3038 '\'.split(\' \'); ' \
3039 'f.write(str(deplist)); ' \
3040 'f.close()'],
3041 # Use outputs of this action as inputs for the main target build.
3042 # Seems as a misnomer but makes this happy on Linux (scons).
3043 'process_outputs_as_sources': 1,
3044 },
3045 ], # 'actions'
3046 },
3047 ### Coverage RUN. Does not compile the bundles. Mirrors the
3048 ### run_coverage_bundles buildbot phase. If you update this
3049 ### command update the mirror in
3050 ### $BUILDBOT/scripts/master/factory/chromium_commands.py.
3051 ### If you want both build and run, use the 'coverage' target.
3052 {
3053 'target_name': 'coverage_run',
3054 # do NOT place this in the 'all' list; most won't want it.
3055 # In gyp, booleans are 0/1 not True/False.
3056 'suppress_wildcard': 1,
3057 'type': 'none',
3058 'actions': [
3059 {
3060 # 'message' for Linux/scons in particular. Scons
3061 # requires the 'coverage' target be run from within
3062 # src/chrome.
3063 'message': 'Running the coverage script, NOT building anything',
3064 # MSVS must have an input file and an output file.
3065 'inputs': [ '<(PRODUCT_DIR)/coverage_bundles.py' ],
3066 'outputs': [ '<(PRODUCT_DIR)/coverage.info' ],
3067 'action_name': 'coverage_run',
3068 'action': [ 'python',
3069 '../tools/code_coverage/coverage_posix.py',
3070 '--directory',
3071 '<(PRODUCT_DIR)',
3072 '--src_root',
3073 '..',
3074 '--bundles',
3075 '<(PRODUCT_DIR)/coverage_bundles.py'],
3076 # Use outputs of this action as inputs for the main target build.
3077 # Seems as a misnomer but makes this happy on Linux (scons).
3078 'process_outputs_as_sources': 1,
3079 },
3080 ], # 'actions'
3081 },
3082 ]
3083 }], # 'coverage!=0'
3084 ['OS == "android"', { 2893 ['OS == "android"', {
3085 'targets': [ 2894 'targets': [
3086 { 2895 {
3087 'target_name': 'chromium_testshell_test_apk', 2896 'target_name': 'chromium_testshell_test_apk',
3088 'type': 'none', 2897 'type': 'none',
3089 'dependencies': [ 2898 'dependencies': [
3090 'chrome_java', 2899 'chrome_java',
3091 'chromium_testshell_java', 2900 'chromium_testshell_java',
3092 'chrome_java_test_support', 2901 'chrome_java_test_support',
3093 '../base/base.gyp:base', 2902 '../base/base.gyp:base',
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
3243 'utility', 3052 'utility',
3244 ], 3053 ],
3245 'sources': [ 3054 'sources': [
3246 'tools/service_discovery_sniffer/service_discovery_sniffer.h', 3055 'tools/service_discovery_sniffer/service_discovery_sniffer.h',
3247 'tools/service_discovery_sniffer/service_discovery_sniffer.cc', 3056 'tools/service_discovery_sniffer/service_discovery_sniffer.cc',
3248 ], 3057 ],
3249 }] 3058 }]
3250 }], 3059 }],
3251 ], # 'conditions' 3060 ], # 'conditions'
3252 } 3061 }
OLDNEW
« no previous file with comments | « chrome/chrome_exe.gypi ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698