android-cuttlefish
android-cuttlefish copied to clipboard
Adds CTS e2etests
Adds a new bazel test wrapper that uses the new
cvd fetch --test_suite_build= option from
https://github.com/google/android-cuttlefish/pull/1882 to download android cts, to run cts with some given args, and to convert the android cts xml back to bazel friendly xml.
Bug: b/466404901 Test:
bazel test cvd:aosp_android_latest_gfxstream_deqp_vk_smoke_tests \
--test_output=streamed \
--test_summary=detailed
shows
INFO: Found 1 test target...
Target //cvd:aosp_android_latest_gfxstream_deqp_vk_smoke_tests up-to-date:
bazel-bin/cvd/aosp_android_latest_gfxstream_deqp_vk_smoke_tests
INFO: Elapsed time: 154.359s, Critical Path: 154.27s
INFO: 3 processes: 1 action cache hit, 2 internal, 1 local.
INFO: Build completed successfully, 3 total actions
//cvd:aosp_android_latest_gfxstream_deqp_vk_smoke_tests PASSED in 154.2s
PASSED .dEQP-VK.api.smoke#create_sampler
PASSED .dEQP-VK.api.smoke#create_shader
PASSED .dEQP-VK.api.smoke#triangle
PASSED .dEQP-VK.api.smoke#asm_triangle
PASSED .dEQP-VK.api.smoke#asm_triangle_no_opname
PASSED .dEQP-VK.api.smoke#unused_resolve_attachment
Test cases: finished with 6 passing, 0 skipped and 0 failing out of 6 test cases
Executed 1 out of 1 test: 1 test passes.