load("test_defs.bzl", "cuttlefish_gfxstream_cts_test", "cuttlefish_gfxstream_deqp_test", "cuttlefish_gfxstream_vts_test") package( default_applicable_licenses = ["//:gfxstream_license"], default_visibility = ["//:gfxstream"], ) # NOTE_FOR_ANDROID16_RELEASE: # # Ideally, the below tests would use: # # cuttlefish_fetch_args = [ # "--default_build=aosp-android-latest-release/aosp_cf_x86_64_only_phone-userdebug", # ], # # ... but aosp/3703317 is effectively not available from a fetch currently # so instead use a prebuilt. # # To run locally, build Cuttlefish from the Android16 release with: # # * `mkdir # * `cd # * `repo init -u https://android.googlesource.com/platform/manifest -b android16-release` # * `repo sync` # * Cherry-pick https://android-review.googlesource.com/c/3703317 # * `source build/envsetup.sh` # * `lunch aosp_cf_x86_64_only_phone-aosp_current-userdebug` # * `m` # # and then launch the test(s) with: # # `bazel test tests/emulator:gfxstream_cuttlefish_deqp_smoke --cuttlefish-prebuilt-directory-path=` # # For Android CTS, download the latest CTS from # https://source.android.com/docs/compatibility/cts/downloads and extract into # `/tmp/android-cts`. # # For Android VTS, build from the Android16 release with: # # * `mkdir # * `cd # * `repo init -u https://android.googlesource.com/platform/manifest -b android16-release` # * `repo sync` # * `source build/envsetup.sh` # * `lunch aosp_cf_x86_64_only_phone-aosp_current-userdebug` # * `m vts` # # and extract `out/host/linux-x86/vts/android-vts.zip` into `/tmp/android-vts`. # See NOTE_FOR_ANDROID16_RELEASE above for how to run locally: cuttlefish_gfxstream_deqp_test( name = "gfxstream_guest_angle_host_swiftshader_deqp_smoke", # Launch Cuttlefish with: (see `cvd create --help`): cuttlefish_create_args = [ "--gpu_mode=gfxstream_guest_angle_host_swiftshader", ], # Run dEQP via CTS: deqp_include_patterns = [ "dEQP-VK.api.smoke*", ], size = "medium", ) # See NOTE_FOR_ANDROID16_RELEASE above for how to run locally: cuttlefish_gfxstream_deqp_test( name = "gfxstream_guest_angle_host_swiftshader_deqp_presubmit", # Launch Cuttlefish with: (see `cvd create --help`): cuttlefish_create_args = [ "--gpu_mode=gfxstream_guest_angle_host_swiftshader", ], deqp_include_patterns = [ "dEQP-EGL.functional.create_surface.*", "dEQP-EGL.functional.image.create#gles2_android_native*", "dEQP-GLES2.functional.draw.draw_elements.*", "dEQP-GLES3.functional.draw.draw_elements.*", "dEQP-VK.api.external.memory.android_hardware_buffer.*", "dEQP-VK.api.smoke*", # TODO: Expand this to android_hardware_buffer.* after failures fixed. #"dEQP-VK.api.external.memory.android_hardware_buffer.dedicated.image*", #"dEQP-VK.api.external.memory.android_hardware_buffer.image_formats*", #"dEQP-VK.api.external.memory.android_hardware_buffer.suballocated.image*", ], size = "large", ) # See NOTE_FOR_ANDROID16_RELEASE above for how to run locally: cuttlefish_gfxstream_cts_test( name = "gfxstream_guest_angle_host_swiftshader_cts_graphics_tests", # Run CTS with `--include-filter=<>`: cts_include_patterns = [ "CtsGraphicsTestCases", ], # Launch Cuttlefish with: (see `cvd create --help`): cuttlefish_create_args = [ "--gpu_mode=gfxstream_guest_angle_host_swiftshader", ], size = "enormous", ) # See NOTE_FOR_ANDROID16_RELEASE above for how to run locally: cuttlefish_gfxstream_cts_test( name = "gfxstream_guest_angle_host_swiftshader_cts_native_hardware_tests", # Run CTS with `--include-filter=<>`: cts_include_patterns = [ "CtsNativeHardwareTestCases", ], # Launch Cuttlefish with: (see `cvd create --help`): cuttlefish_create_args = [ "--gpu_mode=gfxstream_guest_angle_host_swiftshader", ], size = "large", ) # See NOTE_FOR_ANDROID16_RELEASE above for how to run locally: cuttlefish_gfxstream_vts_test( name = "gfxstream_guest_angle_host_swiftshader_vts_allocator_aidl_tests", # Run VTS with `--include-filter=<>`: vts_include_patterns = [ "VtsHalGraphicsAllocatorAidl_TargetTest", ], # Launch Cuttlefish with: (see `cvd create --help`): cuttlefish_create_args = [ "--gpu_mode=gfxstream_guest_angle_host_swiftshader", ], size = "large", ) # See NOTE_FOR_ANDROID16_RELEASE above for how to run locally: cuttlefish_gfxstream_vts_test( name = "gfxstream_guest_angle_host_swiftshader_vts_composer3_tests", # Run VTS with `--include-filter=<>`: vts_include_patterns = [ "VtsHalGraphicsComposer3_TargetTest", ], # Launch Cuttlefish with: (see `cvd create --help`): cuttlefish_create_args = [ "--gpu_mode=gfxstream_guest_angle_host_swiftshader", ], size = "large", ) # See NOTE_FOR_ANDROID16_RELEASE above for how to run locally: cuttlefish_gfxstream_vts_test( name = "gfxstream_guest_angle_host_swiftshader_vts_mapper_stablec_tests", # Run VTS with `--include-filter=<>`: vts_include_patterns = [ "VtsHalGraphicsMapperStableC_TargetTest", ], # Launch Cuttlefish with: (see `cvd create --help`): cuttlefish_create_args = [ "--gpu_mode=gfxstream_guest_angle_host_swiftshader", ], size = "large", )