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

Side by Side Diff: chrome/js_unittest_rules.gypi

Issue 8599010: Setup JS unittests for Chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move run_all_unittests.cc into chrome/test Created 9 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
OLDNEW
(Empty)
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # This file defines rules that allow you to include JavaScript tests in
6 # your unittests target.
7
8 # To add JS unittests to an existing unittest target, first include
9 # 'js_unittest_vars.gypi' at the top of your GYP file to define the required
10 # variables:
11 #
12 # 'includes': [
13 # '<(DEPTH)/chrome/js_unittest_vars.gypi',
14 # ],
15 #
16 # Then include this rule file in each of your unittest targets:
17 #
18 # {
19 # 'target_name': 'my_unittests',
20 # ...
21 # 'includes': [
22 # '<(DEPTH)/chrome/js_unittest_rules.gypi',
23 # ],
24 # }
25 #
26 # Note that when you run your TestSuite, you'll need to call
27 # chrome::RegisterPathProvider(). These path providers are required by
28 # src/chrome/test/base/v8_unit_test.cc to setup and run the tests.
29 # See src/chrome/test/run_all_unittests.cc for an example.
30
31 {
32 'rules': [
33 {
34 'rule_name': 'copyjs',
35 'extension': 'js',
36 'msvs_external_rule': 1,
37 'inputs': [
38 '<(DEPTH)/build/cp.py',
39 ],
40 'outputs': [
41 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT ).<(_extension)',
42 ],
43 'action': [
44 'python',
45 '<@(_inputs)',
46 '<(RULE_INPUT_PATH)',
47 '<@(_outputs)',
48 ],
49 },
50 {
51 'rule_name': 'js2unit',
52 'extension': 'gtestjs',
53 'msvs_external_rule': 1,
54 'inputs': [
55 '<(gypv8sh)',
56 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)',
57 '<(mock_js)',
58 '<(test_api_js)',
59 '<(js2gtest)',
60 ],
61 'outputs': [
62 '<(INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-gen .cc',
63 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT ).<(_extension)',
64 ],
65 'process_outputs_as_sources': 1,
66 'action': [
67 'python',
68 '<@(_inputs)',
69 'unit',
70 '<(RULE_INPUT_PATH)',
71 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).<(_extension)',
72 '<@(_outputs)',
73 ],
74 },
75 ],
76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698