2018-01-22 00:58:32 +08:00
|
|
|
load("//tools:no_undefined.bzl", "cc_library")
|
|
|
|
|
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-21 05:26:32 +08:00
|
|
|
) for src in glob(["*_test.c*"])]
|