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
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
[cc_test(
|
|
|
|
name = src[:-2],
|
|
|
|
size = "small",
|
|
|
|
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",
|
|
|
|
],
|
|
|
|
)
|