diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-11 05:06:51 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-11 05:06:51 +0000 |
commit | 33b570cc5948968a78c0b661cb5d839f9e3f9d52 (patch) | |
tree | 71392ad24b88a25b5456ca62599eab11fac11a0a | |
parent | 94f0195d61f3043a45a87c6e13b59f6da029df23 (diff) | |
parent | 6dea06094f0afa4f69e20f55160bae1496c04ac8 (diff) | |
download | OpenCL-CTS-android13-mainline-scheduling-release.tar.gz |
Snap for 8570526 from 6dea06094f0afa4f69e20f55160bae1496c04ac8 to mainline-scheduling-releaseaml_sch_331113000aml_sch_331111000android13-mainline-scheduling-release
Change-Id: Ib41afa88dbe67dd9e183e8e5b22a761731fb6f53
-rw-r--r-- | Android.bp | 27 | ||||
-rw-r--r-- | METADATA | 4 | ||||
-rw-r--r-- | scripts/android_bp_tail | 16 | ||||
-rw-r--r-- | scripts/generate_test_files.py | 4 | ||||
-rw-r--r-- | scripts/tests.json | 2 |
5 files changed, 48 insertions, 5 deletions
@@ -374,6 +374,17 @@ cc_test { cc_test { + name: "ocl-test-spir", + srcs: [ "test_conformance/spir/*.cpp", "test_conformance/math_brute_force/function_list.cpp", "test_common/miniz/miniz.c" ], + data: [ "test_conformance/spir/*.zip" ], + cflags: [ "-DFUNCTION_LIST_ULPS_ONLY", "-Wno-unused-private-field" ], + defaults: [ "ocl-test-defaults" ], + rtti: true, + gtest: false +} + + +cc_test { name: "ocl-test-spirv-new", srcs: [ "test_conformance/spirv_new/*.cpp", "test_conformance/math_brute_force/reference_math.cpp", "test_conformance/math_brute_force/utility.cpp" ], data: [ "test_conformance/spirv_new/spirv_asm/*", "test_conformance/spirv_new/spirv_bin/*" ], @@ -499,3 +510,19 @@ python_test_host { unit_test: false, }, } + +python_test { + name: "run_conformance", + main: "test_conformance/run_conformance.py", + srcs: [ "test_conformance/run_conformance.py" ], + version: { + py2: { + enabled: true, + embedded_launcher: true, + }, + py3: { + enabled: false, + } + }, +} + @@ -1,3 +1,7 @@ +# *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE +# CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE +# DEPENDING ON IT IN YOUR PROJECT. *** third_party { + license_note: "Khronos proprietary" license_type: BY_EXCEPTION_ONLY } diff --git a/scripts/android_bp_tail b/scripts/android_bp_tail index c295fc18..a073f337 100644 --- a/scripts/android_bp_tail +++ b/scripts/android_bp_tail @@ -16,3 +16,19 @@ python_test_host { unit_test: false, }, } + +python_test { + name: "run_conformance", + main: "test_conformance/run_conformance.py", + srcs: [ "test_conformance/run_conformance.py" ], + version: { + py2: { + enabled: true, + embedded_launcher: true, + }, + py3: { + enabled: false, + } + }, +} + diff --git a/scripts/generate_test_files.py b/scripts/generate_test_files.py index 3d916f6a..cdb10dbf 100644 --- a/scripts/generate_test_files.py +++ b/scripts/generate_test_files.py @@ -11,10 +11,6 @@ TEST_JSON_PATH = os.path.join(SCRIPT_DIR, TEST_JSON) def write_one_cc_test(test_details, f): - # TODO(b/161524664): Remove this exception for spir - if test_details['test_name'] == 'spir': - return - stringified_sources = map(lambda s: f'"{s}"', test_details['srcs']) stringified_data = map(lambda s: f'"{s}"', test_details.get('data', [])) stringified_cflags = map(lambda s: f'"{s}"', test_details.get('cflags', [])) diff --git a/scripts/tests.json b/scripts/tests.json index 769c1d78..59a24de2 100644 --- a/scripts/tests.json +++ b/scripts/tests.json @@ -212,7 +212,7 @@ "binary_name": "ocl-test-spir", "srcs": [ "test_conformance/spir/*.cpp", - "test_conformance/math_brute_force/FunctionList.cpp", + "test_conformance/math_brute_force/function_list.cpp", "test_common/miniz/miniz.c" ], "data": [ "test_conformance/spir/*.zip" ], |