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

Side by Side Diff: base/base_unittests.isolate

Issue 908313004: Use Xvfb in isolated testing only if use_x11 is set (reland) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 'conditions': [ 5 'conditions': [
6 ['OS=="android" or OS=="linux" or OS=="mac" or OS=="win"', { 6 ['OS=="android" or OS=="linux" or OS=="mac" or OS=="win"', {
7 'variables': { 7 'variables': {
8 'files': [ 8 'files': [
9 'test/data/', 9 'test/data/',
10 ], 10 ],
11 }, 11 },
12 }], 12 }],
13 ['OS=="linux"', { 13 ['use_x11==0', {
14 'variables': { 14 'variables': {
15 'command': [ 15 'command': [
16 '../testing/xvfb.py', 16 '../testing/test_env.py',
17 '<(PRODUCT_DIR)',
18 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)', 17 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)',
19 '--brave-new-test-launcher', 18 '--brave-new-test-launcher',
20 '--test-launcher-bot-mode', 19 '--test-launcher-bot-mode',
21 '--asan=<(asan)', 20 '--asan=<(asan)',
22 '--lsan=<(lsan)', 21 '--lsan=<(lsan)',
23 '--msan=<(msan)', 22 '--msan=<(msan)',
24 '--tsan=<(tsan)', 23 '--tsan=<(tsan)',
25 ], 24 ],
25 },
26 }],
27 ['use_x11==1', {
28 'variables': {
29 'command': [
30 '../testing/xvfb.py',
31 '<(PRODUCT_DIR)',
32 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)',
33 '--brave-new-test-launcher',
34 '--test-launcher-bot-mode',
35 '--asan=<(asan)',
36 '--lsan=<(lsan)',
37 ],
26 'files': [ 38 'files': [
27 '../testing/xvfb.py', 39 '../testing/xvfb.py',
28 ],
29 },
30 }],
31 ['OS=="linux" and use_ozone==0', {
32 'variables': {
33 'files': [
34 '<(PRODUCT_DIR)/xdisplaycheck<(EXECUTABLE_SUFFIX)', 40 '<(PRODUCT_DIR)/xdisplaycheck<(EXECUTABLE_SUFFIX)',
35 ], 41 ],
36 }, 42 },
37 }], 43 }],
38 ['OS=="linux" or OS=="mac" or OS=="win"', { 44 ['OS=="linux" or OS=="mac" or OS=="win"', {
39 'variables': { 45 'variables': {
40 'files': [ 46 'files': [
41 '../testing/test_env.py', 47 '../testing/test_env.py',
42 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)', 48 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)',
43 ], 49 ],
44 'read_only': 1, 50 'read_only': 1,
45 }, 51 },
46 }], 52 }],
47 ['OS=="mac" or OS=="win"', {
48 'variables': {
49 'command': [
50 '../testing/test_env.py',
51 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)',
52 '--brave-new-test-launcher',
53 '--test-launcher-bot-mode',
54 '--asan=<(asan)',
55 '--lsan=<(lsan)',
56 '--msan=<(msan)',
57 '--tsan=<(tsan)',
58 ],
59 },
60 }],
61 ['OS=="mac" and asan==1 and fastbuild==0', { 53 ['OS=="mac" and asan==1 and fastbuild==0', {
62 'variables': { 54 'variables': {
63 'files': [ 55 'files': [
64 '<(PRODUCT_DIR)/base_unittests.dSYM/', 56 '<(PRODUCT_DIR)/base_unittests.dSYM/',
65 ], 57 ],
66 }, 58 },
67 }], 59 }],
68 ['OS=="win" and (fastbuild==0 or fastbuild==1)', { 60 ['OS=="win" and (fastbuild==0 or fastbuild==1)', {
69 'variables': { 61 'variables': {
70 'files': [ 62 'files': [
71 '<(PRODUCT_DIR)/base_unittests.exe.pdb', 63 '<(PRODUCT_DIR)/base_unittests.exe.pdb',
72 ], 64 ],
73 }, 65 },
74 }], 66 }],
75 ], 67 ],
76 'includes': [ 68 'includes': [
77 'base.isolate', 69 'base.isolate',
78 ], 70 ],
79 } 71 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698