summaryrefslogtreecommitdiff
path: root/cmds/monkey/Android.bp
blob: 85e12c675b407a3ab5bd8356609290c98bd6efe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2008 The Android Open Source Project
//

package {
    // See: http://go/android-license-faq
    default_applicable_licenses: ["Android-Apache-2.0"],
}

//###############################################################
java_binary {
    name: "monkey",
    srcs: ["**/*.java"],
    wrapper: "monkey.sh",
}

android_test {
    // This test does not need to run on device. It's a regular Java unit test. But it needs to
    // access some framework code like MotionEvent, KeyEvent, InputDevice, etc, which is currently
    // not available for the host.
    // Therefore, we are relying on 'android_test' here until ravenwood is ready.
    name: "monkey_test",
    srcs: ["**/*.java",
           "**/*.kt",
    ],

    kotlincflags: [
        "-Werror",
    ],

    static_libs: [
        "androidx.test.runner",
    ],

    libs: [
        "junit",
    ],
    test_suites: [
        "general-tests",
    ],
}