2018-01-18 23:14:50 +08:00
|
|
|
cc_library(
|
|
|
|
name = "helpers",
|
|
|
|
testonly = True,
|
|
|
|
hdrs = [
|
|
|
|
"check_compat.h",
|
|
|
|
"helpers.h",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
[cc_test(
|
|
|
|
name = src[:-2],
|
|
|
|
size = "small",
|
|
|
|
srcs = [src],
|
|
|
|
copts = [
|
|
|
|
"-Wno-parentheses",
|
2018-01-21 05:26:32 +08:00
|
|
|
"-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
|
|
|
"@check",
|
|
|
|
],
|
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",
|
|
|
|
srcs = ["monolith_test.cpp"],
|
|
|
|
copts = [
|
|
|
|
"-Wno-parentheses",
|
|
|
|
"-Wno-sign-compare",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":helpers",
|
|
|
|
":monolith",
|
|
|
|
"//c-toxcore/other:monolith",
|
|
|
|
"//c-toxcore/testing:misc_tools",
|
|
|
|
"@check",
|
|
|
|
],
|
|
|
|
)
|