Commit 29e9035d by Shao Committed by Commit Bot

Add Linux and MacOS support to perf_test_runner.py

This patch enables perf_test_runner.py to run on Linux and MacOS. BUG=angleproject:2029 Change-Id: Ia7176a3f5fed0245ab72d5def1199623c4fb4fe2 Reviewed-on: https://chromium-review.googlesource.com/497648Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 8ceaedf8
......@@ -28,8 +28,9 @@ perftests_paths = [
]
metric = 'score'
# TODO(jmadill): Linux binaries
binary_name = 'angle_perftests.exe'
binary_name = 'angle_perftests'
if sys.platform == 'win32':
binary_name += '.exe'
scores = []
......@@ -83,10 +84,13 @@ for path in perftests_paths:
perftests_path = newest_binary
if perftests_path == None or not os.path.exists(perftests_path):
print("Cannot find Release angle_perftests.exe!")
print('Cannot find Release %s!' % binary_name)
sys.exit(1)
test_name = "DrawCallPerfBenchmark.Run/d3d11_null"
if sys.platform == 'win32':
test_name = 'DrawCallPerfBenchmark.Run/d3d11_null'
else:
test_name = 'DrawCallPerfBenchmark.Run/gl'
if len(sys.argv) >= 2:
test_name = sys.argv[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment