blob: 121c5cdef5c8cdd4f95645466ed691877adbfe46 [file] [log] [blame]
# Copyright 2020 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.
##########################################
# Though under //zircon, this build file #
# is meant to be used in the Fuchsia GN #
# build. #
# See fxbug.dev/36139. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
import("//build/test.gni")
import("//src/sys/build/fuchsia_unittest_package.gni")
group("test") {
testonly = true
deps = [ ":ram-crashlog" ]
}
test("ram-crashlog") {
output_name = "ram-crashlog-test"
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
sources = [ "ram-crashlog-tests.cc" ]
deps = [
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/ram-crashlog",
"//zircon/third_party/ulib/cksum",
]
}
fuchsia_unittest_package("ram-crashlog-test-pkg") {
package_name = "ram-crashlog-test"
executable_path = "test/ram-crashlog-test"
deps = [ ":ram-crashlog" ]
}
group("tests") {
testonly = true
deps = [ ":ram-crashlog-test-pkg" ]
}