Skip to content
Snippets Groups Projects
Commit 025eb173 authored by Sean Klein's avatar Sean Klein Committed by CQ bot account: commit-bot@chromium.org
Browse files

[test][zx] Relocate unit tests to exist alongside source

Change-Id: I8eb0d866deadd3f0ff0631f334b309fbe52e14dd
parent 43cd3a6e
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,14 @@ ...@@ -2,7 +2,14 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
test("libzx") { group("test") {
testonly = true
deps = [
":zx",
]
}
test("zx") {
sources = [ sources = [
"traits.cpp", "traits.cpp",
"zx-test.cpp", "zx-test.cpp",
......
...@@ -10,6 +10,12 @@ if (current_cpu != "") { ...@@ -10,6 +10,12 @@ if (current_cpu != "") {
group("utest") { group("utest") {
testonly = true testonly = true
# For unittests, the recommended naming scheme is:
# path/to/code/test
# or
# path/to/code:test
#
# Where "test" is a group containing all unittest labels.
deps = [ deps = [
":host", # TODO(mcgrathr): reach this differently? ":host", # TODO(mcgrathr): reach this differently?
"$zx/system/core/bootsvc:tests", "$zx/system/core/bootsvc:tests",
...@@ -78,7 +84,8 @@ if (current_cpu != "") { ...@@ -78,7 +84,8 @@ if (current_cpu != "") {
"$zx/system/ulib/tftp:tftp-test", "$zx/system/ulib/tftp:tftp-test",
"$zx/system/ulib/trace-reader:tests", "$zx/system/ulib/trace-reader:tests",
"$zx/system/ulib/trace-vthread:tests", "$zx/system/ulib/trace-vthread:tests",
"$zx/system/ulib/zbi-bootfs/test:test", "$zx/system/ulib/zbi-bootfs/test",
"$zx/system/ulib/zx/test",
"$zx/system/ulib/zxtest/test", "$zx/system/ulib/zxtest/test",
"abigen", "abigen",
"async-testutils", "async-testutils",
...@@ -140,7 +147,6 @@ if (current_cpu != "") { ...@@ -140,7 +147,6 @@ if (current_cpu != "") {
"kernel-unittests", "kernel-unittests",
"launchpad", "launchpad",
"libhwreg", "libhwreg",
"libzx",
"log", "log",
"logger", "logger",
"memfs", "memfs",
......
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