Skip to content
Snippets Groups Projects
Commit 2dda5494 authored by Sean Klein's avatar Sean Klein
Browse files

[test][cobalt-client] Relocate unit tests to exist alongside source

Change-Id: I0f9b5d25d3ac30cdf9ea980dfa73b7dbac2bef03
parent 3c9b8626
No related branches found
No related tags found
No related merge requests found
Showing
with 39 additions and 35 deletions
...@@ -11,11 +11,31 @@ group("test") { ...@@ -11,11 +11,31 @@ group("test") {
test("cobalt-client-unit") { test("cobalt-client-unit") {
sources = [ sources = [
"cobalt_logger_test.cpp",
"collector_test.cpp",
"counter_test.cpp",
"histogram_test.cpp",
"in-memory-logger-test.cpp", "in-memory-logger-test.cpp",
"main.cpp",
"metric_options_test.cpp",
"timer_test.cpp",
"types_internal_test.cpp",
] ]
deps = [ deps = [
"$zx/system/fidl/fuchsia-cobalt:c",
"$zx/system/fidl/fuchsia-io:c",
"$zx/system/fidl/fuchsia-mem:c",
"$zx/system/ulib/async",
"$zx/system/ulib/async:async-cpp",
"$zx/system/ulib/async:async-default",
"$zx/system/ulib/async-loop",
"$zx/system/ulib/async-loop:async-loop-cpp",
"$zx/system/ulib/cobalt-client", "$zx/system/ulib/cobalt-client",
"$zx/system/ulib/cobalt-client:in-memory-logger", "$zx/system/ulib/cobalt-client:in-memory-logger",
"$zx/system/ulib/fidl",
"$zx/system/ulib/fidl-utils",
"$zx/system/ulib/sync",
"$zx/system/ulib/unittest",
"$zx/system/ulib/zxtest", "$zx/system/ulib/zxtest",
] ]
} }
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <unittest/unittest.h>
#include <zxtest/c/zxtest.h>
int main(int argc, char** argv) {
const bool success = unittest_run_all_tests(argc, argv);
if (!success) {
return EXIT_FAILURE;
}
const bool zxtest_success = RUN_ALL_TESTS(argc, argv) == 0;
if (!zxtest_success) {
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
...@@ -99,7 +99,6 @@ if (current_cpu != "") { ...@@ -99,7 +99,6 @@ if (current_cpu != "") {
"channel-fatal", "channel-fatal",
"chromeos-disk-setup", "chromeos-disk-setup",
"cleanup", "cleanup",
"cobalt-client",
"compiler", "compiler",
"core", "core",
"cprng", "cprng",
......
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
test("cobalt-client") {
sources = [
"cobalt_logger_test.cpp",
"collector_test.cpp",
"counter_test.cpp",
"histogram_test.cpp",
"metric_options_test.cpp",
"timer_test.cpp",
"types_internal_test.cpp",
]
deps = [
"$zx/system/fidl/fuchsia-cobalt:c",
"$zx/system/fidl/fuchsia-io:c",
"$zx/system/fidl/fuchsia-mem:c",
"$zx/system/ulib/async",
"$zx/system/ulib/async:async-cpp",
"$zx/system/ulib/async:async-default",
"$zx/system/ulib/async-loop",
"$zx/system/ulib/async-loop:async-loop-cpp",
"$zx/system/ulib/cobalt-client",
"$zx/system/ulib/fbl",
"$zx/system/ulib/fdio",
"$zx/system/ulib/fidl",
"$zx/system/ulib/fidl-utils",
"$zx/system/ulib/sync",
"$zx/system/ulib/unittest",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment