-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBUILD.bazel
More file actions
53 lines (49 loc) · 976 Bytes
/
BUILD.bazel
File metadata and controls
53 lines (49 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("@rules_fuzzing//fuzzing:cc_defs.bzl", "cc_fuzz_test")
cc_library(
name = "test_base",
linkopts = ["-lm"],
deps = [
"@com_google_gtest//:gtest_main",
],
)
cc_test(
name = "pixelmatch_tests",
srcs = [
"pixelmatch_tests.cc",
],
data = glob([
"testdata/*.png",
]),
deps = [
":test_base",
"//:image_utils",
"//:pixelmatch-cpp17",
],
)
cc_test(
name = "image_utils_tests",
srcs = [
"image_utils_tests.cc",
],
data = glob([
"testdata/*.png",
]),
deps = [
":test_base",
"//:image_utils",
],
)
cc_fuzz_test(
name = "pixelmatch_fuzzer",
srcs = ["pixelmatch_fuzzer.cc"],
linkopts = ["-lm"],
tags = [
"manual",
"nocoverage",
],
deps = [
"//:pixelmatch-cpp17",
"//third_party/fuzzer:fuzzed_data_provider",
],
)