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

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

Change-Id: I141bb03798bf20a1308dc0d9fe708d498ea8e7c0
parent 2dda5494
No related branches found
No related tags found
No related merge requests found
......@@ -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 = [
":crypto",
]
}
test("crypto") {
sources = [
"aead.cpp",
......
......@@ -65,6 +65,7 @@ if (current_cpu != "") {
"$zx/system/ulib/blobfs/test",
"$zx/system/ulib/bootfs:bootfs-test",
"$zx/system/ulib/c:tests",
"$zx/system/ulib/crypto/test",
"$zx/system/ulib/cobalt-client/test",
"$zx/system/ulib/ddk:ddk-unittest",
"$zx/system/ulib/digest/test",
......@@ -102,7 +103,6 @@ if (current_cpu != "") {
"compiler",
"core",
"cprng",
"crypto",
"ctor",
"debugger",
"devfs",
......
......@@ -10,9 +10,9 @@ test("zxcrypt") {
"zxcrypt.cpp",
]
# This code does #include "crypto/foo.h" to reuse headers from
# $zx/system/utest/crypto.
include_dirs = [ "$zx/system/utest" ]
# This code does #include "crypto/test/foo.h" to reuse headers from
# $zx/system/ulib/crypto/test.
include_dirs = [ "$zx/system/ulib" ]
deps = [
"$zx/system/fidl/fuchsia-device:c",
......
......@@ -24,7 +24,7 @@
#include <zircon/types.h>
#include <zxcrypt/fdio-volume.h>
#include "crypto/utils.h"
#include "crypto/test/utils.h"
#define DEFINE_EACH_DEVICE(Test) \
bool Test##Raw(Volume::Version version) { return Test(version, false /* not FVM */); } \
......
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