• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2#
3# Copyright 2021 The ANGLE Project Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6""" Merges dEQP sharded test results in the ANGLE testing infrastucture."""
7
8import os
9import sys
10
11d = os.path.dirname
12THIS_DIR = d(os.path.abspath(__file__))
13ANGLE_SRC_DIR = d(THIS_DIR)
14sys.path.insert(0, os.path.join(ANGLE_SRC_DIR, 'testing', 'merge_scripts'))
15CHROMIUM_SRC_DIR = d(d(ANGLE_SRC_DIR))
16sys.path.insert(0, os.path.join(CHROMIUM_SRC_DIR, 'testing', 'merge_scripts'))
17
18import merge_api
19import standard_isolated_script_merge
20
21
22def main(raw_args):
23
24    parser = merge_api.ArgumentParser()
25    args = parser.parse_args(raw_args)
26
27    # TODO(jmadill): Merge QPA files into one. http://anglebug.com/5236
28
29    return standard_isolated_script_merge.StandardIsolatedScriptMerge(
30        args.output_json, args.summary_json, args.jsons_to_merge)
31
32
33if __name__ == '__main__':
34    sys.exit(main(sys.argv[1:]))
35