diff options
author | Ben Wagner <benjaminwagner@google.com> | 2018-06-28 17:43:08 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-29 13:25:17 +0000 |
commit | a5e703043ff034afea41ea24e9d8f978f05ba678 (patch) | |
tree | b32e2fe6c9a23832790d991d670de955199bc866 /infra/bots/recipes | |
parent | 55a7d22beb635ac960b16858b0ffe67424402950 (diff) |
Add OpenCL test job that runs hello-opencl.
Add NEO driver to opencl_linux asset.
Bug: skia:8081
Change-Id: Ic36c670f3cabd73119845e94fcb2f54525e83443
Reviewed-on: https://skia-review.googlesource.com/138264
Commit-Queue: Mike Klein <mtklein@google.com>
Auto-Submit: Ben Wagner <benjaminwagner@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'infra/bots/recipes')
-rw-r--r-- | infra/bots/recipes/compute_test.expected/Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-OpenCL.json | 59 | ||||
-rw-r--r-- | infra/bots/recipes/compute_test.py | 34 |
2 files changed, 93 insertions, 0 deletions
diff --git a/infra/bots/recipes/compute_test.expected/Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-OpenCL.json b/infra/bots/recipes/compute_test.expected/Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-OpenCL.json new file mode 100644 index 0000000000..33a0fddce3 --- /dev/null +++ b/infra/bots/recipes/compute_test.expected/Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-OpenCL.json @@ -0,0 +1,59 @@ +[ + { + "cmd": [ + "python", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "ensure-directory", + "--mode", + "0777", + "[START_DIR]/tmp/OpenCL/vendors" + ], + "env": { + "CHROME_HEADLESS": "1", + "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" + }, + "infra_step": true, + "name": "mkdirs OpenCL/vendors" + }, + { + "cmd": [ + "python", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "copy", + "[START_DIR]/opencl_intel_neo_linux/libigdrcl.so\n", + "[START_DIR]/tmp/OpenCL/vendors/neo.icd" + ], + "env": { + "CHROME_HEADLESS": "1", + "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" + }, + "infra_step": true, + "name": "write NEO OpenCL ICD" + }, + { + "cmd": [ + "catchsegv", + "[START_DIR]/build/hello-opencl" + ], + "env": { + "CHROME_HEADLESS": "1", + "LD_LIBRARY_PATH": "[START_DIR]/linux_vulkan_intel_driver_debug:[START_DIR]/opencl_ocl_icd_linux:[START_DIR]/opencl_intel_neo_linux", + "LIBGL_DRIVERS_PATH": "[START_DIR]/linux_vulkan_intel_driver_debug", + "OPENCL_VENDOR_PATH": "[START_DIR]/tmp/OpenCL/vendors", + "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", + "VK_ICD_FILENAMES": "[START_DIR]/linux_vulkan_intel_driver_debug/intel_icd.x86_64.json" + }, + "name": "hello-opencl" + }, + { + "name": "$result", + "recipe_result": null, + "status_code": 0 + } +]
\ No newline at end of file diff --git a/infra/bots/recipes/compute_test.py b/infra/bots/recipes/compute_test.py new file mode 100644 index 0000000000..cbe1fd277a --- /dev/null +++ b/infra/bots/recipes/compute_test.py @@ -0,0 +1,34 @@ +# Copyright 2018 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Recipe for Skia Swarming compute testing. + +DEPS = [ + 'flavor', + 'recipe_engine/file', + 'recipe_engine/path', + 'recipe_engine/properties', + 'run', + 'vars', +] + +def RunSteps(api): + api.vars.setup() + api.flavor.setup() + + api.run(api.flavor.step, 'hello-opencl', cmd=['hello-opencl']) + + api.run.check_failure() + +def GenTests(api): + builder = ('Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All' + '-OpenCL') + yield ( + api.test(builder) + + api.properties(buildername=builder, + buildbucket_build_id='123454321', + revision='abc123', + path_config='kitchen', + swarm_out_dir='[SWARM_OUT_DIR]') + ) |