Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 1 | load("//tools/build_rules:ruby.bzl", "ruby_binary") |
| 2 | load("//aos/build:queues.bzl", "queue_library") |
| 3 | load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library") |
Brian Silverman | b67da23 | 2015-09-12 23:50:30 -0400 | [diff] [blame] | 4 | |
Brian Silverman | fbe79b8 | 2015-09-12 15:10:54 -0400 | [diff] [blame] | 5 | cc_test( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 6 | name = "gflags_build_test", |
| 7 | size = "small", |
| 8 | srcs = [ |
| 9 | "gflags.cc", |
| 10 | ], |
| 11 | deps = [ |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 12 | "@com_github_gflags_gflags//:gflags", |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 13 | ], |
Brian Silverman | fbe79b8 | 2015-09-12 15:10:54 -0400 | [diff] [blame] | 14 | ) |
Brian Silverman | b67da23 | 2015-09-12 23:50:30 -0400 | [diff] [blame] | 15 | |
| 16 | ruby_binary( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 17 | name = "ruby_binary", |
| 18 | srcs = [ |
| 19 | "ruby.rb", |
| 20 | "ruby_to_require.rb", |
| 21 | ], |
| 22 | data = [ |
| 23 | "ruby_to_require.rb", |
| 24 | ], |
Brian Silverman | b67da23 | 2015-09-12 23:50:30 -0400 | [diff] [blame] | 25 | ) |
| 26 | |
| 27 | sh_test( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 28 | name = "ruby_build_test", |
| 29 | size = "small", |
| 30 | srcs = [ |
| 31 | "ruby_check.sh", |
| 32 | ], |
| 33 | data = [ |
| 34 | ":ruby_binary", |
| 35 | ], |
Brian Silverman | b67da23 | 2015-09-12 23:50:30 -0400 | [diff] [blame] | 36 | ) |
Brian Silverman | 38658b0 | 2015-09-13 02:25:50 -0400 | [diff] [blame] | 37 | |
| 38 | queue_library( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 39 | name = "queue_library", |
| 40 | srcs = [ |
| 41 | "queue.q", |
| 42 | ], |
Brian Silverman | 38658b0 | 2015-09-13 02:25:50 -0400 | [diff] [blame] | 43 | ) |
| 44 | |
| 45 | cc_test( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 46 | name = "queue_build_test", |
| 47 | size = "small", |
| 48 | srcs = [ |
| 49 | "queue.cc", |
| 50 | ], |
| 51 | deps = [ |
| 52 | ":queue_library", |
| 53 | ], |
Brian Silverman | 38658b0 | 2015-09-13 02:25:50 -0400 | [diff] [blame] | 54 | ) |
Brian Silverman | 516ceb2 | 2015-11-27 01:29:05 -0500 | [diff] [blame] | 55 | |
| 56 | cc_binary( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 57 | name = "tcmalloc_build_test_binary", |
| 58 | srcs = [ |
| 59 | "tcmalloc.cc", |
| 60 | ], |
Brian Silverman | 516ceb2 | 2015-11-27 01:29:05 -0500 | [diff] [blame] | 61 | ) |
| 62 | |
| 63 | sh_test( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 64 | name = "tcmalloc_build_test", |
| 65 | size = "small", |
| 66 | srcs = [ |
| 67 | "tcmalloc_test.sh", |
| 68 | ], |
| 69 | data = [ |
| 70 | ":tcmalloc_build_test_binary", |
| 71 | ], |
Brian Silverman | 516ceb2 | 2015-11-27 01:29:05 -0500 | [diff] [blame] | 72 | ) |
Brian Silverman | eb16fa4 | 2016-02-20 15:29:56 -0500 | [diff] [blame] | 73 | |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 74 | cc_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 Schuh | 971588a | 2017-03-01 22:15:04 -0800 | [diff] [blame] | 81 | ) |
| 82 | |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 83 | cc_proto_library( |
| 84 | name = "proto_build_test_library_base", |
| 85 | srcs = ["proto_base.proto"], |
Brian Silverman | eb16fa4 | 2016-02-20 15:29:56 -0500 | [diff] [blame] | 86 | ) |
| 87 | |
| 88 | cc_test( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 89 | 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 Silverman | eb16fa4 | 2016-02-20 15:29:56 -0500 | [diff] [blame] | 98 | ) |