qps_json_driver_scenario_gen.py 920 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python3
  2. # Copyright 2018 gRPC authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. import os
  16. import sys
  17. script_dir = os.path.dirname(os.path.abspath(__file__))
  18. sys.path.append(script_dir)
  19. import scenario_generator_helper as gen
  20. gen.generate_scenarios_bzl(
  21. gen.generate_qps_json_driver_scenarios(),
  22. os.path.join(script_dir, 'qps_json_driver_scenarios.bzl'),
  23. 'QPS_JSON_DRIVER_SCENARIOS')