blob: 5a2ca6ca797baf87653b42b3f476151a1536e14f [file] [log] [blame]
# Copyright 2019 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.
import("//build/test.gni")
test("josh_tests_bin") {
deps = [
"//sdk/testing/fidl:test",
"//src/developer/shell/josh/console:tests",
"//src/developer/shell/josh/lib:tests",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
# Extra stack needed to avoid crashes when calling QuickJS functions
# with asan enabled.
ldflags = [ "-Wl,-z,stack-size=0x200000" ]
# TODO(67365): Temporarily disable lsan for this target. Reenable once all leaks are fixed.
deps += [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
}
executable("bin") {
output_name = "josh"
sources = [ "main.cc" ]
deps = [
"//src/developer/shell/josh/console",
"//src/developer/shell/josh/lib",
]
deps += [ "//src/zircon/lib/zircon" ]
# Extra stack needed to avoid crashes when calling QuickJS functions
# with asan enabled.
ldflags = [ "-Wl,-z,stack-size=0x200000" ]
deps += [ "//sdk/lib/syslog/cpp" ]
}