1package { 2 // See: http://go/android-license-faq 3 default_applicable_licenses: ["hardware_google_gfxstream_license"], 4} 5 6// Run with `atest --host GfxstreamEnd2EndTests` 7cc_test_host { 8 name: "GfxstreamEnd2EndTests", 9 defaults: ["mesa_platform_virtgpu_defaults"], 10 srcs: [ 11 "GfxstreamEnd2EndTests.cpp", 12 "GfxstreamEnd2EndTestUtils.cpp", 13 "GfxstreamEnd2EndCompositionTests.cpp", 14 "GfxstreamEnd2EndGlTests.cpp", 15 "GfxstreamEnd2EndVkTests.cpp", 16 "KumquatInstance.cpp", 17 ], 18 header_libs: [ 19 "virtgpu_kumquat_ffi_headers", 20 "gfxstream_headers", 21 "libgfxstream_guest_rendercontrol_headers", 22 ], 23 data: [ 24 "//external/crosvm:kumquat", 25 "testdata/256x256_android.png", 26 "testdata/256x256_android_with_transparency.png", 27 "testdata/256x256_golden_basic_composition.png", 28 ], 29 data_libs: [ 30 "libEGL_emulation", 31 "libgfxstream_guest_rendercontrol", 32 "vulkan.ranchu", 33 "libGLESv1_CM_emulation", 34 "libGLESv2_emulation", 35 ], 36 shared_libs: [ 37 "liblog", 38 "libdrm", 39 "libOpenglCodecCommon", 40 "libOpenglSystemCommon", 41 ], 42 static_libs: [ 43 "libgfxstream_androidemu_static", 44 "libgfxstream_common_image", 45 "libgfxstream_common_utils", 46 "mesa_gfxstream_guest_android", 47 "libgfxstream_thirdparty_stb", 48 "libgmock", 49 ], 50 cflags: [ 51 // TODO: remove 52 "-DVK_USE_PLATFORM_ANDROID_KHR", 53 "-Wno-macro-redefined", 54 "-Wno-unused-parameter", 55 "-Wno-extern-c-compat", 56 ], 57 local_include_dirs: [ 58 ".", 59 ], 60 test_options: { 61 // Disabled by default as requires host OpenGL and Vulkan. 62 unit_test: false, 63 test_runner_options: [ 64 { 65 name: "native-test-timeout", 66 value: "30m", 67 }, 68 ], 69 }, 70 test_suites: [ 71 "general-tests", 72 ], 73 compile_multilib: "64", 74} 75