Ben Murdoch | 61f157c | 2016-09-16 13:49:30 +0100 | [diff] [blame] | 1 | # Copyright 2016 the V8 project 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 | import("../gni/isolate.gni") |
| 6 | |
| 7 | group("gn_all") { |
| 8 | testonly = true |
| 9 | |
| 10 | deps = [ |
| 11 | ":default_tests", |
| 12 | ] |
| 13 | |
| 14 | if (host_os != "mac" || !is_android) { |
| 15 | # These items don't compile for Android on Mac. |
| 16 | deps += [ |
| 17 | "cctest:cctest", |
| 18 | "cctest:generate-bytecode-expectations", |
| 19 | "unittests:unittests", |
| 20 | ] |
| 21 | } |
| 22 | |
| 23 | if (v8_test_isolation_mode != "noop") { |
| 24 | deps += [ |
| 25 | ":bot_default_run", |
| 26 | ":benchmarks_run", |
| 27 | ":default_run", |
| 28 | ":mozilla_run", |
| 29 | ":simdjs_run", |
| 30 | "test262:test262_run", |
| 31 | ] |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | ############################################################################### |
| 36 | # Test groups |
| 37 | # |
| 38 | |
| 39 | group("default_tests") { |
| 40 | testonly = true |
| 41 | |
| 42 | if (v8_test_isolation_mode != "noop") { |
| 43 | deps = [ |
| 44 | ":cctest_run", |
| 45 | ":fuzzer_run", |
| 46 | ":intl_run", |
| 47 | ":message_run", |
| 48 | ":mjsunit_run", |
| 49 | ":preparser_run", |
| 50 | ":unittests_run", |
| 51 | ] |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | v8_isolate_run("bot_default") { |
| 56 | deps = [ |
| 57 | ":default_tests", |
| 58 | ":webkit_run", |
| 59 | ] |
| 60 | |
| 61 | isolate = "bot_default.isolate" |
| 62 | } |
| 63 | |
| 64 | v8_isolate_run("default") { |
| 65 | deps = [ |
| 66 | ":default_tests", |
| 67 | ] |
| 68 | |
| 69 | isolate = "default.isolate" |
| 70 | } |
| 71 | |
| 72 | v8_isolate_run("ignition") { |
| 73 | deps = [ |
| 74 | ":cctest_run", |
| 75 | ":mjsunit_run", |
| 76 | ] |
| 77 | |
| 78 | isolate = "ignition.isolate" |
| 79 | } |
| 80 | |
| 81 | v8_isolate_run("optimize_for_size") { |
| 82 | deps = [ |
| 83 | ":cctest_run", |
| 84 | ":intl_run", |
| 85 | ":mjsunit_run", |
| 86 | ":webkit_run", |
| 87 | ] |
| 88 | |
| 89 | isolate = "optimize_for_size.isolate" |
| 90 | } |
| 91 | |
| 92 | v8_isolate_run("perf") { |
| 93 | deps = [ |
| 94 | ":cctest_exe_run", |
| 95 | "..:d8_run", |
| 96 | ] |
| 97 | |
| 98 | isolate = "perf.isolate" |
| 99 | } |
| 100 | |
| 101 | ############################################################################### |
| 102 | # Subtests |
| 103 | # |
| 104 | |
| 105 | v8_isolate_run("benchmarks") { |
| 106 | deps = [ |
| 107 | "..:d8_run", |
| 108 | ] |
| 109 | |
| 110 | isolate = "benchmarks/benchmarks.isolate" |
| 111 | } |
| 112 | |
| 113 | v8_isolate_run("cctest") { |
| 114 | deps = [ |
| 115 | ":cctest_exe_run", |
| 116 | ] |
| 117 | |
| 118 | isolate = "cctest/cctest.isolate" |
| 119 | } |
| 120 | |
| 121 | v8_isolate_run("cctest_exe") { |
| 122 | deps = [ |
| 123 | "cctest:cctest", |
| 124 | ] |
| 125 | |
| 126 | isolate = "cctest/cctest_exe.isolate" |
| 127 | } |
| 128 | |
| 129 | v8_isolate_run("fuzzer") { |
| 130 | deps = [ |
| 131 | "..:v8_simple_json_fuzzer", |
| 132 | "..:v8_simple_parser_fuzzer", |
| 133 | "..:v8_simple_regexp_fuzzer", |
| 134 | "..:v8_simple_wasm_fuzzer", |
| 135 | "..:v8_simple_wasm_asmjs_fuzzer", |
| 136 | ] |
| 137 | |
| 138 | isolate = "fuzzer/fuzzer.isolate" |
| 139 | } |
| 140 | |
| 141 | v8_isolate_run("intl") { |
| 142 | deps = [ |
| 143 | "..:d8_run", |
| 144 | ] |
| 145 | |
| 146 | isolate = "intl/intl.isolate" |
| 147 | } |
| 148 | |
| 149 | v8_isolate_run("message") { |
| 150 | deps = [ |
| 151 | "..:d8_run", |
| 152 | ] |
| 153 | |
| 154 | isolate = "message/message.isolate" |
| 155 | } |
| 156 | |
| 157 | v8_isolate_run("mjsunit") { |
| 158 | deps = [ |
| 159 | "..:d8_run", |
| 160 | ] |
| 161 | |
| 162 | isolate = "mjsunit/mjsunit.isolate" |
| 163 | } |
| 164 | |
| 165 | v8_isolate_run("mozilla") { |
| 166 | deps = [ |
| 167 | "..:d8_run", |
| 168 | ] |
| 169 | |
| 170 | isolate = "mozilla/mozilla.isolate" |
| 171 | } |
| 172 | |
| 173 | v8_isolate_run("preparser") { |
| 174 | deps = [ |
| 175 | "..:d8_run", |
| 176 | ] |
| 177 | |
| 178 | isolate = "preparser/preparser.isolate" |
| 179 | } |
| 180 | |
| 181 | v8_isolate_run("simdjs") { |
| 182 | deps = [ |
| 183 | "..:d8_run", |
| 184 | ] |
| 185 | |
| 186 | isolate = "simdjs/simdjs.isolate" |
| 187 | } |
| 188 | |
| 189 | v8_isolate_run("unittests") { |
| 190 | deps = [ |
| 191 | "unittests:unittests", |
| 192 | ] |
| 193 | |
| 194 | isolate = "unittests/unittests.isolate" |
| 195 | } |
| 196 | |
| 197 | v8_isolate_run("webkit") { |
| 198 | deps = [ |
| 199 | "..:d8_run", |
| 200 | ] |
| 201 | |
| 202 | isolate = "webkit/webkit.isolate" |
| 203 | } |