501a32937f Merge branch 'toxav_deadline' of github.com:Green-Sky/c-toxcore into tomato_testing_in_prod 0b49ba2d94 Merge branch 'toxav_video_bitrate' of github.com:Green-Sky/c-toxcore into tomato_testing_in_prod 9c0977d7c6 Merge branch 'toxav_remove_img_copy_encode' of github.com:Green-Sky/c-toxcore into tomato_testing_in_prod 4071d74cc9 fix(ngc): dont double every message, if we are not directly connected but we and the other peer would support direct. 1d4cc783b1 fix(bazel): one more fuzz target that needs netprof 066aafbfcd fix(bazel): make net_prof visible to its consumers fa015c7e2e fix(toxav): remove extra copy of video frame on encode Tested and works, but there might be alignment issues and other stuff. d34f7d1f5c fix(toxav): handle vpx_image_alloc failure 865261a67a chore(toxav): use realtime deadline for vp8 encoder Technically all this does is choose a quality based on frame duration, which we always set to 1, and as such is always realtime. (In same timebase as pts, which we use as a frame counter...) dd12b9889a chore(toxav): tighten the video bitrate to the same as the vp8 encoder internally checks. 9dcc2f530d fix(bazel): missing dep for auto_tests 741ac5f5e6 fix(bazel): missing dep for fuzz target git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: 501a32937f4550d4340406a6a73da548849a53af
89 lines
2.3 KiB
Python
89 lines
2.3 KiB
Python
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
|
|
|
cc_library(
|
|
name = "check_compat",
|
|
testonly = True,
|
|
hdrs = ["check_compat.h"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "auto_test_support",
|
|
testonly = True,
|
|
srcs = ["auto_test_support.c"],
|
|
hdrs = ["auto_test_support.h"],
|
|
deps = [
|
|
":check_compat",
|
|
"//c-toxcore/testing:misc_tools",
|
|
"//c-toxcore/toxcore:Messenger",
|
|
"//c-toxcore/toxcore:mono_time",
|
|
"//c-toxcore/toxcore:tox",
|
|
"//c-toxcore/toxcore:tox_dispatch",
|
|
"//c-toxcore/toxcore:tox_events",
|
|
],
|
|
)
|
|
|
|
flaky_tests = {
|
|
"crypto_core_test": True,
|
|
"lan_discovery_test": True,
|
|
"save_load_test": True,
|
|
"tox_many_tcp_test": True,
|
|
}
|
|
|
|
extra_args = {
|
|
"proxy_test": ["$(location //c-toxcore/other/proxy)"],
|
|
}
|
|
|
|
extra_data = {
|
|
"proxy_test": ["//c-toxcore/other/proxy"],
|
|
}
|
|
|
|
[cc_test(
|
|
name = src[:-2],
|
|
size = "small",
|
|
srcs = [src],
|
|
args = ["$(location %s)" % src] + extra_args.get(
|
|
src[:-2],
|
|
[],
|
|
),
|
|
data = glob(["data/*"]) + extra_data.get(
|
|
src[:-2],
|
|
[],
|
|
),
|
|
flaky = flaky_tests.get(
|
|
src[:-2],
|
|
False,
|
|
),
|
|
deps = [
|
|
":auto_test_support",
|
|
":check_compat",
|
|
"//c-toxcore/testing:misc_tools",
|
|
"//c-toxcore/toxav",
|
|
"//c-toxcore/toxcore:Messenger",
|
|
"//c-toxcore/toxcore:TCP_client",
|
|
"//c-toxcore/toxcore:TCP_common",
|
|
"//c-toxcore/toxcore:TCP_connection",
|
|
"//c-toxcore/toxcore:TCP_server",
|
|
"//c-toxcore/toxcore:announce",
|
|
"//c-toxcore/toxcore:ccompat",
|
|
"//c-toxcore/toxcore:crypto_core",
|
|
"//c-toxcore/toxcore:forwarding",
|
|
"//c-toxcore/toxcore:friend_connection",
|
|
"//c-toxcore/toxcore:logger",
|
|
"//c-toxcore/toxcore:mono_time",
|
|
"//c-toxcore/toxcore:net_crypto",
|
|
"//c-toxcore/toxcore:net_profile",
|
|
"//c-toxcore/toxcore:network",
|
|
"//c-toxcore/toxcore:onion",
|
|
"//c-toxcore/toxcore:onion_announce",
|
|
"//c-toxcore/toxcore:onion_client",
|
|
"//c-toxcore/toxcore:tox",
|
|
"//c-toxcore/toxcore:tox_dispatch",
|
|
"//c-toxcore/toxcore:tox_events",
|
|
"//c-toxcore/toxcore:tox_unpack",
|
|
"//c-toxcore/toxcore:util",
|
|
"//c-toxcore/toxencryptsave",
|
|
"@libsodium",
|
|
"@libvpx",
|
|
],
|
|
) for src in glob(["*_test.c"])]
|