From 939035e29b2a3055437c2f5340e9ad192717c77b Mon Sep 17 00:00:00 2001 From: Sean Klein <smklein@google.com> Date: Thu, 9 May 2019 09:37:53 -0700 Subject: [PATCH] [test][bitmap] Relocate unit tests to exist alongside source Change-Id: I4d26f0c5253cd7b7b52b46358936d9a37b9a0031 --- zircon/system/{utest/bitmap => ulib/bitmap/test}/BUILD.gn | 7 +++++++ .../bitmap => ulib/bitmap/test}/raw-bitmap-tests.cpp | 0 .../bitmap => ulib/bitmap/test}/rle-bitmap-tests.cpp | 0 zircon/system/utest/BUILD.gn | 2 +- 4 files changed, 8 insertions(+), 1 deletion(-) rename zircon/system/{utest/bitmap => ulib/bitmap/test}/BUILD.gn (86%) rename zircon/system/{utest/bitmap => ulib/bitmap/test}/raw-bitmap-tests.cpp (100%) rename zircon/system/{utest/bitmap => ulib/bitmap/test}/rle-bitmap-tests.cpp (100%) diff --git a/zircon/system/utest/bitmap/BUILD.gn b/zircon/system/ulib/bitmap/test/BUILD.gn similarity index 86% rename from zircon/system/utest/bitmap/BUILD.gn rename to zircon/system/ulib/bitmap/test/BUILD.gn index 2df2dc7dff6..7e70eac495a 100644 --- a/zircon/system/utest/bitmap/BUILD.gn +++ b/zircon/system/ulib/bitmap/test/BUILD.gn @@ -2,6 +2,13 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +group("test") { + testonly = true + deps = [ + ":bitmap", + ] +} + test("bitmap") { sources = [ "raw-bitmap-tests.cpp", diff --git a/zircon/system/utest/bitmap/raw-bitmap-tests.cpp b/zircon/system/ulib/bitmap/test/raw-bitmap-tests.cpp similarity index 100% rename from zircon/system/utest/bitmap/raw-bitmap-tests.cpp rename to zircon/system/ulib/bitmap/test/raw-bitmap-tests.cpp diff --git a/zircon/system/utest/bitmap/rle-bitmap-tests.cpp b/zircon/system/ulib/bitmap/test/rle-bitmap-tests.cpp similarity index 100% rename from zircon/system/utest/bitmap/rle-bitmap-tests.cpp rename to zircon/system/ulib/bitmap/test/rle-bitmap-tests.cpp diff --git a/zircon/system/utest/BUILD.gn b/zircon/system/utest/BUILD.gn index d3c8bac469f..bad8c778799 100644 --- a/zircon/system/utest/BUILD.gn +++ b/zircon/system/utest/BUILD.gn @@ -60,6 +60,7 @@ if (current_cpu != "") { "$zx/system/uapp/nand-util:nand-util-test", "$zx/system/ulib/async/test", "$zx/system/ulib/async-loop/test", + "$zx/system/ulib/bitmap/test", "$zx/system/ulib/blobfs/test", "$zx/system/ulib/bootfs:bootfs-test", "$zx/system/ulib/c:tests", @@ -92,7 +93,6 @@ if (current_cpu != "") { "async-testutils", "backtrace-request", "biotime", - "bitmap", "blobfs", "blobfs-bench", "channel-fatal", -- GitLab