From 7caf4f7f7e119a5d2f4f98e0e11f949e2186ccb4 Mon Sep 17 00:00:00 2001
From: Sean Klein <smklein@google.com>
Date: Thu, 9 May 2019 11:36:39 -0700
Subject: [PATCH] [test][elf-search] Relocate unit tests to exist alongside
 source

Change-Id: I3c15087e0535df819ce1d281766dd58f11cdd69a
---
 .../{utest/elf-search => ulib/elf-search/test}/BUILD.gn    | 7 +++++++
 .../elf-search/test}/elf-search-test.cpp                   | 0
 zircon/system/utest/BUILD.gn                               | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)
 rename zircon/system/{utest/elf-search => ulib/elf-search/test}/BUILD.gn (86%)
 rename zircon/system/{utest/elf-search => ulib/elf-search/test}/elf-search-test.cpp (100%)

diff --git a/zircon/system/utest/elf-search/BUILD.gn b/zircon/system/ulib/elf-search/test/BUILD.gn
similarity index 86%
rename from zircon/system/utest/elf-search/BUILD.gn
rename to zircon/system/ulib/elf-search/test/BUILD.gn
index f737a738854..629705530f6 100644
--- a/zircon/system/utest/elf-search/BUILD.gn
+++ b/zircon/system/ulib/elf-search/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 = [
+    ":elf-search",
+  ]
+}
+
 test("elf-search") {
   sources = [
     "elf-search-test.cpp",
diff --git a/zircon/system/utest/elf-search/elf-search-test.cpp b/zircon/system/ulib/elf-search/test/elf-search-test.cpp
similarity index 100%
rename from zircon/system/utest/elf-search/elf-search-test.cpp
rename to zircon/system/ulib/elf-search/test/elf-search-test.cpp
diff --git a/zircon/system/utest/BUILD.gn b/zircon/system/utest/BUILD.gn
index 2e730bfbc8b..a8fc5cd52bf 100644
--- a/zircon/system/utest/BUILD.gn
+++ b/zircon/system/utest/BUILD.gn
@@ -71,6 +71,7 @@ if (current_cpu != "") {
       "$zx/system/ulib/digest/test",
       "$zx/system/ulib/disk-inspector/test",
       "$zx/system/ulib/driver-integration-test/test",
+      "$zx/system/ulib/elf-search/test",
       "$zx/system/ulib/fbl/test",
       "$zx/system/ulib/fs/test",
       "$zx/system/ulib/fvm/test",
@@ -115,7 +116,6 @@ if (current_cpu != "") {
       "dlopen-indirect-deps",
       "driver-test",
       "dump1",
-      "elf-search",
       "entropy",
       "errno",
       "ethernet",
-- 
GitLab