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 static_libs: [ 16 "monkey_aidl-java", 17 ], 18 jni_libs: [ 19 "libmonkey_jni", 20 ], 21} 22 23android_test { 24 // This test does not need to run on device. It's a regular Java unit test. But it needs to 25 // access some framework code like MotionEvent, KeyEvent, InputDevice, etc, which is currently 26 // not available for the host. 27 // Therefore, we are relying on 'android_test' here until ravenwood is ready. 28 name: "monkey_test", 29 srcs: [ 30 "**/*.java", 31 "**/*.kt", 32 ], 33 34 kotlincflags: [ 35 "-Werror", 36 ], 37 38 static_libs: [ 39 "androidx.test.runner", 40 "monkey_aidl-java", 41 ], 42 jni_libs: [ 43 "libmonkey_jni", 44 ], 45 46 libs: [ 47 "junit", 48 ], 49 test_suites: [ 50 "general-tests", 51 ], 52} 53