blob: a3413584b2ffb301e8b9c0e5233819798eb63961 [file] [log] [blame]
Austin Schuhf9724442018-10-28 20:30:21 -07001load("//tools/build_rules:ruby.bzl", "ruby_binary")
2load("//aos/build:queues.bzl", "queue_library")
3load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library")
Brian Silvermanb67da232015-09-12 23:50:30 -04004
Brian Silvermanfbe79b82015-09-12 15:10:54 -04005cc_test(
Austin Schuhf9724442018-10-28 20:30:21 -07006 name = "gflags_build_test",
7 size = "small",
8 srcs = [
9 "gflags.cc",
10 ],
11 deps = [
Brian Silverman16a923c2018-10-31 19:40:51 -070012 "@com_github_gflags_gflags//:gflags",
Austin Schuhf9724442018-10-28 20:30:21 -070013 ],
Brian Silvermanfbe79b82015-09-12 15:10:54 -040014)
Brian Silvermanb67da232015-09-12 23:50:30 -040015
16ruby_binary(
Austin Schuhf9724442018-10-28 20:30:21 -070017 name = "ruby_binary",
18 srcs = [
19 "ruby.rb",
20 "ruby_to_require.rb",
21 ],
22 data = [
23 "ruby_to_require.rb",
24 ],
Brian Silvermanb67da232015-09-12 23:50:30 -040025)
26
27sh_test(
Austin Schuhf9724442018-10-28 20:30:21 -070028 name = "ruby_build_test",
29 size = "small",
30 srcs = [
31 "ruby_check.sh",
32 ],
33 data = [
34 ":ruby_binary",
35 ],
Brian Silvermanb67da232015-09-12 23:50:30 -040036)
Brian Silverman38658b02015-09-13 02:25:50 -040037
38queue_library(
Austin Schuhf9724442018-10-28 20:30:21 -070039 name = "queue_library",
40 srcs = [
41 "queue.q",
42 ],
Brian Silverman38658b02015-09-13 02:25:50 -040043)
44
45cc_test(
Austin Schuhf9724442018-10-28 20:30:21 -070046 name = "queue_build_test",
47 size = "small",
48 srcs = [
49 "queue.cc",
50 ],
51 deps = [
52 ":queue_library",
53 ],
Brian Silverman38658b02015-09-13 02:25:50 -040054)
Brian Silverman516ceb22015-11-27 01:29:05 -050055
56cc_binary(
Austin Schuhf9724442018-10-28 20:30:21 -070057 name = "tcmalloc_build_test_binary",
58 srcs = [
59 "tcmalloc.cc",
60 ],
Brian Silverman516ceb22015-11-27 01:29:05 -050061)
62
63sh_test(
Austin Schuhf9724442018-10-28 20:30:21 -070064 name = "tcmalloc_build_test",
65 size = "small",
66 srcs = [
67 "tcmalloc_test.sh",
68 ],
69 data = [
70 ":tcmalloc_build_test_binary",
71 ],
Brian Silverman516ceb22015-11-27 01:29:05 -050072)
Brian Silvermaneb16fa42016-02-20 15:29:56 -050073
Austin Schuhf9724442018-10-28 20:30:21 -070074cc_proto_library(
75 name = "proto_build_test_library",
76 srcs = ["proto.proto"],
77 deps = [
78 ":proto_build_test_library_base",
79 "@com_google_protobuf//:cc_wkt_protos",
80 ],
Parker Schuh971588a2017-03-01 22:15:04 -080081)
82
Austin Schuhf9724442018-10-28 20:30:21 -070083cc_proto_library(
84 name = "proto_build_test_library_base",
85 srcs = ["proto_base.proto"],
Brian Silvermaneb16fa42016-02-20 15:29:56 -050086)
87
88cc_test(
Austin Schuhf9724442018-10-28 20:30:21 -070089 name = "proto_build_test",
90 size = "small",
91 srcs = [
92 "proto.cc",
93 ],
94 deps = [
95 ":proto_build_test_library",
96 "//aos/testing:googletest",
97 ],
Brian Silvermaneb16fa42016-02-20 15:29:56 -050098)