diff options
author | Jordan Bayles <jophba@chromium.org> | 2020-06-23 15:32:13 -0700 |
---|---|---|
committer | Jordan Bayles <jophba@chromium.org> | 2020-06-26 00:47:12 +0000 |
commit | f318b72e203526591ff7477eb180c9a34b1d8af0 (patch) | |
tree | afab2c6bafdee643fdfceb332c22aa7a3e758333 /BUILD.gn | |
parent | fdc66e03064d70f2c4a60dbd3fdd3925b21a43a1 (diff) | |
download | openscreen-f318b72e203526591ff7477eb180c9a34b1d8af0.tar.gz |
Move test_main for test binaries to executable()
This patch takes the test:test_main dependency and moves it from the
source_set to the executable, so that inside of Chrome, the tests can
depend on the base test launcher.
Bug: b/159746216
Change-Id: I8b2343e95152ed1005471c45f0dc5d77daa65c29
TBR=btolsch@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2261564
Reviewed-by: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -85,7 +85,6 @@ source_set("openscreen_unittests_all") { "osp:unittests", "osp/msgs:unittests", "platform:unittests", - "test:test_main", "third_party/abseil", "util:unittests", ] @@ -107,7 +106,10 @@ source_set("openscreen_unittests_all") { if (!build_with_chromium) { executable("openscreen_unittests") { testonly = true - deps = [ ":openscreen_unittests_all" ] + deps = [ + ":openscreen_unittests_all", + "test:test_main", + ] } } @@ -119,12 +121,14 @@ if (!build_with_chromium && is_posix) { "cast/standalone_receiver:e2e_tests", "cast/test:e2e_tests", "cast/test:make_crl_tests($host_toolchain)", - "test:test_main", ] } executable("e2e_tests") { testonly = true - deps = [ ":e2e_tests_all" ] + deps = [ + ":e2e_tests_all", + "test:test_main", + ] } } |