1// Copyright 2008 The Android Open Source Project 2// 3 4package { 5 default_team: "trendy_team_platform_build", 6 // See: http://go/android-license-faq 7 default_applicable_licenses: ["Android-Apache-2.0"], 8} 9 10//############################################################### 11java_binary { 12 name: "monkey", 13 srcs: ["**/*.java"], 14 wrapper: "monkey.sh", 15} 16 17android_test { 18 // This test does not need to run on device. It's a regular Java unit test. But it needs to 19 // access some framework code like MotionEvent, KeyEvent, InputDevice, etc, which is currently 20 // not available for the host. 21 // Therefore, we are relying on 'android_test' here until ravenwood is ready. 22 name: "monkey_test", 23 srcs: ["**/*.java", 24 "**/*.kt", 25 ], 26 27 kotlincflags: [ 28 "-Werror", 29 ], 30 31 static_libs: [ 32 "androidx.test.runner", 33 ], 34 35 libs: [ 36 "junit", 37 ], 38 test_suites: [ 39 "general-tests", 40 ], 41} 42