# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain fbcode-only targets.

load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load(":targets.bzl", "define_common_targets")

oncall("executorch")

define_common_targets()

runtime.cxx_test(
    name = "test_io_manager",
    srcs = [
        "test_io_manager.cpp",
    ],
    deps = [
        "//executorch/extension/llm/runner/io_manager:io_manager",
        "//executorch/kernels/portable:generated_lib",
    ],
    env = {
        "KVCACHE_CACHE_POS": "$(location fbcode//executorch/test/models:exported_programs[ModuleKVCacheCachePos.pte])",
    }
)
