github.com/sercand/please@v13.4.0+incompatible/test/proto_rules/BUILD (about) 1 # Tests on the proto rules. 2 3 # Test that we can use a 'generated' source as well as a real one. 4 filegroup( 5 name = "gen_proto", 6 srcs = ["test.proto"], 7 ) 8 9 proto_library( 10 name = "test_proto", 11 srcs = [":gen_proto"], 12 languages = [ 13 "cc", 14 "py", 15 ], 16 visibility = ["//test/misc_rules:all"], # Used by another test over here too. 17 ) 18 19 python_test( 20 name = "specific_out_test", 21 srcs = ["specific_out_test.py"], 22 deps = [ 23 ":test_proto", 24 ], 25 ) 26 27 proto_library( 28 name = "js_test_proto", 29 srcs = ["js_test.proto"], 30 languages = [ 31 "js", 32 ], 33 ) 34 35 filegroup( 36 name = "js_test_proto_filegroup", 37 srcs = [":js_test_proto"], 38 requires = ["js"], 39 ) 40 41 python_test( 42 name = "js_out_test", 43 srcs = ["js_out_test.py"], 44 data = [ 45 ":js_test_proto_filegroup", 46 ], 47 )