blob: b26d5d1203f07ec77a0d329e5b61ba55e85304c2 [file] [log] [blame]
package(default_visibility = ["//visibility:public"])
cc_test(
name = "stmgr_unittest",
args = ["$(location //heron/config/src/yaml:test-config-internals-yaml)"],
srcs = [
"dummy_instance.cpp",
"dummy_metricsmgr.cpp",
"dummy_stmgr.cpp",
"stmgr_unittest.cpp",
"dummy_instance.h",
"dummy_metricsmgr.h",
"dummy_stmgr.h",
],
deps = [
"//heron/stmgr/src/cpp:manager-cxx",
"//heron/stmgr/src/cpp:grouping-cxx",
"//heron/stmgr/src/cpp:util-cxx",
# TODO: Stmgr unit tests should not depend on tmaster
"//heron/tmaster/src/cpp:tmaster-cxx",
"@com_google_googletest//:gtest",
],
data = [
"//heron/config/src/yaml:test-config-internals-yaml",
"//heron/config/src/yaml:test-config-metrics-sinks-yaml",
],
copts = [
"-Iheron",
"-Iheron/common/src/cpp",
"-Iheron/statemgrs/src/cpp",
"-Iheron/stmgr/src/cpp",
"-Iheron/stmgr/tests/cpp",
"-Iheron/tmaster/src/cpp",
"-I$(GENDIR)/heron",
"-I$(GENDIR)/heron/common/src/cpp",
],
linkstatic = 1,
flaky = 1,
)
cc_test(
name = "checkpoint-gateway_unittest",
srcs = [
"checkpoint-gateway_unittest.cpp",
],
deps = [
"//heron/stmgr/src/cpp:manager-cxx",
"//heron/stmgr/src/cpp:grouping-cxx",
"//heron/stmgr/src/cpp:util-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
"-Iheron/common/src/cpp",
"-Iheron/statemgrs/src/cpp",
"-Iheron/stmgr/src/cpp",
"-Iheron/stmgr/tests/cpp",
"-I$(GENDIR)/heron",
"-I$(GENDIR)/heron/common/src/cpp",
],
linkstatic = 1,
)
cc_test(
name = "stateful-restorer_unittest",
args = ["$(location //heron/config/src/yaml:test-config-internals-yaml)"],
srcs = [
"stateful-restorer_unittest.cpp",
"dummy_ckptmgr_client.cpp",
"dummy_tuple_cache.h",
"dummy_ckptmgr_client.h",
"dummy_stmgr_clientmgr.h",
"dummy_instance_server.h",
],
deps = [
"//heron/stmgr/src/cpp:manager-cxx",
"//heron/stmgr/src/cpp:grouping-cxx",
"//heron/stmgr/src/cpp:util-cxx",
"@com_google_googletest//:gtest",
],
data = ["//heron/config/src/yaml:test-config-internals-yaml"],
copts = [
"-Iheron",
"-Iheron/common/src/cpp",
"-Iheron/statemgrs/src/cpp",
"-Iheron/stmgr/src/cpp",
"-Iheron/stmgr/tests/cpp",
"-I$(GENDIR)/heron",
"-I$(GENDIR)/heron/common/src/cpp",
],
linkstatic = 1,
)