OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 source_set("test_support") { | 7 source_set("test_support") { |
8 testonly = true | 8 testonly = true |
9 sources = [ | 9 sources = [ |
10 "mojo_test_base.cc", | 10 "mojo_test_base.cc", |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 deps = [ | 36 deps = [ |
37 ":test_support", | 37 ":test_support", |
38 ":test_support_impl", | 38 ":test_support_impl", |
39 "//base", | 39 "//base", |
40 "//base/test:test_support", | 40 "//base/test:test_support", |
41 "//mojo/edk/system", | 41 "//mojo/edk/system", |
42 "//mojo/public/c/test_support", | 42 "//mojo/public/c/test_support", |
43 "//testing/gtest", | 43 "//testing/gtest", |
44 ] | 44 ] |
| 45 |
| 46 if (is_linux && !is_component_build) { |
| 47 public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 48 } |
45 } | 49 } |
46 | 50 |
47 source_set("run_all_perftests") { | 51 source_set("run_all_perftests") { |
48 testonly = true | 52 testonly = true |
49 deps = [ | 53 deps = [ |
50 ":test_support_impl", | 54 ":test_support_impl", |
51 "//base", | 55 "//base", |
52 "//base/test:test_support", | 56 "//base/test:test_support", |
53 "//mojo/edk/system", | 57 "//mojo/edk/system", |
54 "//mojo/edk/test:test_support", | 58 "//mojo/edk/test:test_support", |
55 "//mojo/public/c/test_support", | 59 "//mojo/public/c/test_support", |
56 ] | 60 ] |
57 | 61 |
58 sources = [ | 62 sources = [ |
59 "run_all_perftests.cc", | 63 "run_all_perftests.cc", |
60 ] | 64 ] |
| 65 |
| 66 if (is_linux && !is_component_build) { |
| 67 public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 68 } |
61 } | 69 } |
62 | 70 |
63 source_set("test_support_impl") { | 71 source_set("test_support_impl") { |
64 testonly = true | 72 testonly = true |
65 deps = [ | 73 deps = [ |
66 "//base", | 74 "//base", |
67 "//base/test:test_support", | 75 "//base/test:test_support", |
68 "//mojo/public/c/test_support", | 76 "//mojo/public/c/test_support", |
69 "//mojo/public/cpp/system", | 77 "//mojo/public/cpp/system", |
70 ] | 78 ] |
(...skipping 19 matching lines...) Expand all Loading... |
90 ":mojo_public_utility_unittests", | 98 ":mojo_public_utility_unittests", |
91 ] | 99 ] |
92 } | 100 } |
93 | 101 |
94 test("mojo_public_bindings_unittests") { | 102 test("mojo_public_bindings_unittests") { |
95 deps = [ | 103 deps = [ |
96 ":run_all_unittests", | 104 ":run_all_unittests", |
97 "//mojo/edk/test:test_support", | 105 "//mojo/edk/test:test_support", |
98 "//mojo/public/cpp/bindings/tests", | 106 "//mojo/public/cpp/bindings/tests", |
99 ] | 107 ] |
100 | |
101 if (is_linux && !is_component_build) { | |
102 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | |
103 } | |
104 } | 108 } |
105 | 109 |
106 test("mojo_public_environment_unittests") { | 110 test("mojo_public_environment_unittests") { |
107 deps = [ | 111 deps = [ |
108 ":run_all_unittests", | 112 ":run_all_unittests", |
109 "//mojo/public/cpp/environment/tests", | 113 "//mojo/public/cpp/environment/tests", |
110 ] | 114 ] |
111 | |
112 if (is_linux && !is_component_build) { | |
113 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | |
114 } | |
115 } | 115 } |
116 | 116 |
117 test("mojo_public_system_perftests") { | 117 test("mojo_public_system_perftests") { |
118 deps = [ | 118 deps = [ |
119 ":run_all_perftests", | 119 ":run_all_perftests", |
120 "//mojo/public/c/system/tests:perftests", | 120 "//mojo/public/c/system/tests:perftests", |
121 ] | 121 ] |
122 | |
123 if (is_linux && !is_component_build) { | |
124 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | |
125 } | |
126 } | 122 } |
127 | 123 |
128 test("mojo_public_system_unittests") { | 124 test("mojo_public_system_unittests") { |
129 deps = [ | 125 deps = [ |
130 ":run_all_unittests", | 126 ":run_all_unittests", |
131 "//mojo/public/cpp/system/tests", | 127 "//mojo/public/cpp/system/tests", |
132 ] | 128 ] |
133 | |
134 if (is_linux && !is_component_build) { | |
135 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | |
136 } | |
137 } | 129 } |
138 | 130 |
139 test("mojo_public_utility_unittests") { | 131 test("mojo_public_utility_unittests") { |
140 deps = [ | 132 deps = [ |
141 ":run_all_unittests", | 133 ":run_all_unittests", |
142 "//mojo/public/cpp/utility/tests", | 134 "//mojo/public/cpp/utility/tests", |
143 ] | 135 ] |
144 | |
145 if (is_linux && !is_component_build) { | |
146 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | |
147 } | |
148 } | 136 } |
OLD | NEW |