kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/cxx/tools/fyi/testdata/BUILD (about) 1 load("@bazel_skylib//:bzl_library.bzl", "bzl_library") 2 load("//tools:build_rules/testing.bzl", "shell_tool_test") 3 load(":compile_commands.bzl", "compile_commands") 4 5 package( 6 default_visibility = ["//kythe:default_visibility"], 7 features = ["layering_check"], 8 ) 9 10 compile_commands( 11 name = "compile_commands", 12 filenames = [ 13 "nothing.cc", 14 "basic.cc", 15 "hopeless.cc", 16 ], 17 ) 18 19 shell_tool_test( 20 name = "nothing", 21 data = [ 22 "compile_commands.json.in", 23 "nothing.cc", 24 "nothing.cc.expected", 25 "nothing.cc.json", 26 "test_case.sh", 27 "//kythe/cxx/common/testdata:start_http_service", 28 ], 29 scriptfile = "nothing_test.sh", 30 tools = { 31 "FYI": "//kythe/cxx/tools/fyi", 32 "KYTHE_ENTRYSTREAM": "//kythe/go/platform/tools/entrystream", 33 "KYTHE_HTTP_SERVER": "//kythe/go/test/tools/http_server", 34 "KYTHE_WRITE_ENTRIES": "//kythe/go/storage/tools:write_entries", 35 "KYTHE_WRITE_TABLES": "//kythe/go/serving/tools:write_tables", 36 }, 37 ) 38 39 shell_tool_test( 40 name = "basic", 41 data = [ 42 "basic.cc", 43 "basic.cc.expected", 44 "basic.cc.json", 45 "basic.h", 46 "compile_commands.json.in", 47 "test_case.sh", 48 "//kythe/cxx/common/testdata:start_http_service", 49 ], 50 scriptfile = "basic_test.sh", 51 tools = { 52 "FYI": "//kythe/cxx/tools/fyi", 53 "KYTHE_ENTRYSTREAM": "//kythe/go/platform/tools/entrystream", 54 "KYTHE_HTTP_SERVER": "//kythe/go/test/tools/http_server", 55 "KYTHE_WRITE_ENTRIES": "//kythe/go/storage/tools:write_entries", 56 "KYTHE_WRITE_TABLES": "//kythe/go/serving/tools:write_tables", 57 }, 58 ) 59 60 shell_tool_test( 61 name = "hopeless", 62 size = "small", 63 data = [ 64 "compile_commands.json.in", 65 "hopeless.cc", 66 "hopeless.cc.json", 67 "test_case.sh", 68 "//kythe/cxx/common/testdata:start_http_service", 69 ], 70 scriptfile = "hopeless_test.sh", 71 tools = { 72 "FYI": "//kythe/cxx/tools/fyi", 73 "KYTHE_ENTRYSTREAM": "//kythe/go/platform/tools/entrystream", 74 "KYTHE_HTTP_SERVER": "//kythe/go/test/tools/http_server", 75 "KYTHE_WRITE_ENTRIES": "//kythe/go/storage/tools:write_entries", 76 "KYTHE_WRITE_TABLES": "//kythe/go/serving/tools:write_tables", 77 }, 78 ) 79 80 bzl_library( 81 name = "compile_commands_bzl", 82 srcs = ["compile_commands.bzl"], 83 )