2018-01-18 23:14:50 +08:00
|
|
|
cc_library(
|
|
|
|
name = "helpers",
|
|
|
|
testonly = True,
|
|
|
|
hdrs = [
|
|
|
|
"check_compat.h",
|
|
|
|
"helpers.h",
|
2018-06-25 20:37:46 +08:00
|
|
|
"run_auto_test.h",
|
2018-01-18 23:14:50 +08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-07-06 18:39:57 +08:00
|
|
|
test_sizes = {
|
|
|
|
"conference_peer_nick_test": "medium",
|
|
|
|
}
|
|
|
|
|
2018-01-18 23:14:50 +08:00
|
|
|
[cc_test(
|
|
|
|
name = src[:-2],
|
2018-07-06 18:39:57 +08:00
|
|
|
size = test_sizes.get(src[:-2], "small"),
|
2018-01-18 23:14:50 +08:00
|
|
|
srcs = [src],
|
2018-02-23 10:22:38 +08:00
|
|
|
copts = ["-Wno-sign-compare"],
|
2018-01-18 23:14:50 +08:00
|
|
|
deps = [
|
|
|
|
":helpers",
|
|
|
|
"//c-toxcore/other:monolith",
|
|
|
|
"//c-toxcore/testing:misc_tools",
|
|
|
|
"//c-toxcore/toxav",
|
|
|
|
"//c-toxcore/toxcore",
|
2018-01-22 00:58:32 +08:00
|
|
|
"//c-toxcore/toxencryptsave",
|
2018-01-18 23:14:50 +08:00
|
|
|
],
|
2018-01-29 05:30:39 +08:00
|
|
|
) for src in glob(["*_test.c"])]
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "monolith",
|
|
|
|
hdrs = glob([
|
|
|
|
"*.c",
|
|
|
|
"*.h",
|
|
|
|
]),
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "monolith_test",
|
|
|
|
size = "small",
|
2018-06-28 22:15:44 +08:00
|
|
|
srcs = ["monolith_test.cc"],
|
2018-02-23 10:22:38 +08:00
|
|
|
copts = ["-Wno-sign-compare"],
|
2018-01-29 05:30:39 +08:00
|
|
|
deps = [
|
|
|
|
":helpers",
|
|
|
|
":monolith",
|
|
|
|
"//c-toxcore/other:monolith",
|
|
|
|
"//c-toxcore/testing:misc_tools",
|
|
|
|
],
|
|
|
|
)
|