github.phpd.cn/thought-machine/please@v12.2.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 visibility = ['//test/misc_rules:all'], # Used by another test over here too. 13 ) 14 15 python_test( 16 name = 'specific_out_test', 17 srcs = ['specific_out_test.py'], 18 deps = [ 19 ':test_proto', 20 ], 21 ) 22 23 proto_library( 24 name = 'js_test_proto', 25 srcs = ['js_test.proto'], 26 languages = [ 27 'js', 28 ], 29 ) 30 31 filegroup( 32 name = 'js_test_proto_filegroup', 33 srcs = [':js_test_proto'], 34 requires = ['js'], 35 ) 36 37 python_test( 38 name = 'js_out_test', 39 srcs = ['js_out_test.py'], 40 data = [ 41 ':js_test_proto_filegroup', 42 ], 43 )