blob: 884cef2a3f0625cd96b06281db96a5c07b483d96 [file] [log] [blame]
Yuntao Xuf6572752021-04-28 17:16:23 -07001// Copyright 2008 The Android Open Source Project
2//
3
4package {
Aditya Choudhary39087ca2024-02-02 13:58:27 +00005 default_team: "trendy_team_platform_build",
Bob Badour082705b2022-01-19 18:29:06 -08006 // See: http://go/android-license-faq
7 default_applicable_licenses: ["Android-Apache-2.0"],
Yuntao Xuf6572752021-04-28 17:16:23 -07008}
9
Yuntao Xuf6572752021-04-28 17:16:23 -070010//###############################################################
Luca Stefani5f4839e2021-05-07 13:22:29 +020011java_binary {
Yuntao Xuf6572752021-04-28 17:16:23 -070012 name: "monkey",
Luca Stefani5f4839e2021-05-07 13:22:29 +020013 srcs: ["**/*.java"],
Cole Faust7bc42672022-09-01 15:13:34 -070014 wrapper: "monkey.sh",
Yuntao Xuf6572752021-04-28 17:16:23 -070015}
Siarhei Vishniakou6a3f1892023-10-16 16:41:53 -070016
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}