BUILD 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. # Copyright (c) 2009-2021, Google LLC
  2. # All rights reserved.
  3. #
  4. # Redistribution and use in source and binary forms, with or without
  5. # modification, are permitted provided that the following conditions are met:
  6. # * Redistributions of source code must retain the above copyright
  7. # notice, this list of conditions and the following disclaimer.
  8. # * Redistributions in binary form must reproduce the above copyright
  9. # notice, this list of conditions and the following disclaimer in the
  10. # documentation and/or other materials provided with the distribution.
  11. # * Neither the name of Google LLC nor the
  12. # names of its contributors may be used to endorse or promote products
  13. # derived from this software without specific prior written permission.
  14. #
  15. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  16. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  17. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. # DISCLAIMED. IN NO EVENT SHALL Google LLC BE LIABLE FOR ANY
  19. # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  20. # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  21. # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  22. # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  23. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  24. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. py_test(
  26. name = "descriptor_database_test",
  27. main = "descriptor_database_test_wrapper.py",
  28. srcs = ["descriptor_database_test_wrapper.py"],
  29. deps = [
  30. "//python:message_ext",
  31. "@com_google_protobuf//:python_srcs",
  32. "@com_google_protobuf//:python_common_test_protos",
  33. "@com_google_protobuf//:python_specific_test_protos",
  34. ],
  35. legacy_create_init = False,
  36. )
  37. py_test(
  38. name = "descriptor_pool_test",
  39. main = "descriptor_pool_test_wrapper.py",
  40. srcs = ["descriptor_pool_test_wrapper.py"],
  41. deps = [
  42. "//python:message_ext",
  43. "@com_google_protobuf//:python_srcs",
  44. "@com_google_protobuf//:python_common_test_protos",
  45. "@com_google_protobuf//:python_specific_test_protos",
  46. ],
  47. legacy_create_init = False,
  48. )
  49. py_test(
  50. name = "descriptor_test",
  51. main = "descriptor_test_wrapper.py",
  52. srcs = ["descriptor_test_wrapper.py"],
  53. deps = [
  54. "//python:message_ext",
  55. "@com_google_protobuf//:python_srcs",
  56. "@com_google_protobuf//:python_common_test_protos",
  57. "@com_google_protobuf//:python_specific_test_protos",
  58. ],
  59. legacy_create_init = False,
  60. )
  61. py_test(
  62. name = "generator_test",
  63. main = "generator_test_wrapper.py",
  64. srcs = ["generator_test_wrapper.py"],
  65. deps = [
  66. "//python:message_ext",
  67. "@com_google_protobuf//:python_srcs",
  68. "@com_google_protobuf//:python_common_test_protos",
  69. "@com_google_protobuf//:python_specific_test_protos",
  70. ],
  71. legacy_create_init = False,
  72. )
  73. py_test(
  74. name = "json_format_test",
  75. main = "json_format_test_wrapper.py",
  76. srcs = ["json_format_test_wrapper.py"],
  77. deps = [
  78. "//python:message_ext",
  79. "@com_google_protobuf//:python_srcs",
  80. "@com_google_protobuf//:python_common_test_protos",
  81. "@com_google_protobuf//:python_specific_test_protos",
  82. ],
  83. legacy_create_init = False,
  84. )
  85. py_test(
  86. name = "keywords_test",
  87. main = "keywords_test_wrapper.py",
  88. srcs = ["keywords_test_wrapper.py"],
  89. deps = [
  90. "//python:message_ext",
  91. "@com_google_protobuf//:python_srcs",
  92. "@com_google_protobuf//:python_common_test_protos",
  93. "@com_google_protobuf//:python_specific_test_protos",
  94. ],
  95. legacy_create_init = False,
  96. )
  97. py_test(
  98. name = "message_factory_test",
  99. main = "message_factory_test_wrapper.py",
  100. srcs = ["message_factory_test_wrapper.py"],
  101. deps = [
  102. "//python:message_ext",
  103. "@com_google_protobuf//:python_srcs",
  104. "@com_google_protobuf//:python_common_test_protos",
  105. "@com_google_protobuf//:python_specific_test_protos",
  106. ],
  107. legacy_create_init = False,
  108. )
  109. py_test(
  110. name = "message_test",
  111. main = "message_test_wrapper.py",
  112. srcs = ["message_test_wrapper.py"],
  113. deps = [
  114. "//python:message_ext",
  115. "@com_google_protobuf//:python_srcs",
  116. "@com_google_protobuf//:python_common_test_protos",
  117. "@com_google_protobuf//:python_specific_test_protos",
  118. ],
  119. data = [
  120. "@com_google_protobuf//:testdata",
  121. ],
  122. legacy_create_init = False,
  123. )
  124. py_test(
  125. name = "proto_builder_test",
  126. main = "proto_builder_test_wrapper.py",
  127. srcs = ["proto_builder_test_wrapper.py"],
  128. deps = [
  129. "//python:message_ext",
  130. "@com_google_protobuf//:python_srcs",
  131. "@com_google_protobuf//:python_common_test_protos",
  132. "@com_google_protobuf//:python_specific_test_protos",
  133. ],
  134. legacy_create_init = False,
  135. )
  136. py_test(
  137. name = "reflection_test",
  138. main = "reflection_test_wrapper.py",
  139. srcs = ["reflection_test_wrapper.py"],
  140. deps = [
  141. "//python:message_ext",
  142. "@com_google_protobuf//:python_srcs",
  143. "@com_google_protobuf//:python_common_test_protos",
  144. "@com_google_protobuf//:python_specific_test_protos",
  145. ],
  146. legacy_create_init = False,
  147. )
  148. py_test(
  149. name = "service_reflection_test",
  150. main = "service_reflection_test_wrapper.py",
  151. srcs = ["service_reflection_test_wrapper.py"],
  152. deps = [
  153. "//python:message_ext",
  154. "@com_google_protobuf//:python_srcs",
  155. "@com_google_protobuf//:python_common_test_protos",
  156. "@com_google_protobuf//:python_specific_test_protos",
  157. ],
  158. legacy_create_init = False,
  159. )
  160. py_test(
  161. name = "symbol_database_test",
  162. main = "symbol_database_test_wrapper.py",
  163. srcs = ["symbol_database_test_wrapper.py"],
  164. deps = [
  165. "//python:message_ext",
  166. "@com_google_protobuf//:python_srcs",
  167. "@com_google_protobuf//:python_common_test_protos",
  168. "@com_google_protobuf//:python_specific_test_protos",
  169. ],
  170. legacy_create_init = False,
  171. )
  172. py_test(
  173. name = "text_encoding_test",
  174. main = "text_encoding_test_wrapper.py",
  175. srcs = ["text_encoding_test_wrapper.py"],
  176. deps = [
  177. "//python:message_ext",
  178. "@com_google_protobuf//:python_srcs",
  179. "@com_google_protobuf//:python_common_test_protos",
  180. "@com_google_protobuf//:python_specific_test_protos",
  181. ],
  182. legacy_create_init = False,
  183. )
  184. py_test(
  185. name = "text_format_test",
  186. main = "text_format_test_wrapper.py",
  187. srcs = ["text_format_test_wrapper.py"],
  188. deps = [
  189. "//python:message_ext",
  190. "@com_google_protobuf//:python_srcs",
  191. "@com_google_protobuf//:python_common_test_protos",
  192. "@com_google_protobuf//:python_specific_test_protos",
  193. ],
  194. data = [
  195. "@com_google_protobuf//:testdata",
  196. ],
  197. legacy_create_init = False,
  198. )
  199. py_test(
  200. name = "unknown_fields_test",
  201. main = "unknown_fields_test_wrapper.py",
  202. srcs = ["unknown_fields_test_wrapper.py"],
  203. deps = [
  204. "//python:message_ext",
  205. "@com_google_protobuf//:python_srcs",
  206. "@com_google_protobuf//:python_common_test_protos",
  207. "@com_google_protobuf//:python_specific_test_protos",
  208. ],
  209. legacy_create_init = False,
  210. )
  211. py_test(
  212. name = "well_known_types_test",
  213. main = "well_known_types_test_wrapper.py",
  214. srcs = ["well_known_types_test_wrapper.py"],
  215. deps = [
  216. "//python:message_ext",
  217. "@com_google_protobuf//:python_srcs",
  218. "@com_google_protobuf//:python_common_test_protos",
  219. "@com_google_protobuf//:python_specific_test_protos",
  220. ],
  221. legacy_create_init = False,
  222. )
  223. py_test(
  224. name = "wire_format_test",
  225. main = "wire_format_test_wrapper.py",
  226. srcs = ["wire_format_test_wrapper.py"],
  227. deps = [
  228. "//python:message_ext",
  229. "@com_google_protobuf//:python_srcs",
  230. "@com_google_protobuf//:python_common_test_protos",
  231. "@com_google_protobuf//:python_specific_test_protos",
  232. ],
  233. legacy_create_init = False,
  234. )