xref: /aosp_15_r20/kernel/tests/net/test/Android.bp (revision 2f2c4c7ab4226c71756b9c31670392fdd6887c4f)
1*2f2c4c7aSAndroid Build Coastguard Workerpackage {
2*2f2c4c7aSAndroid Build Coastguard Worker    default_team: "trendy_team_fwk_core_networking",
3*2f2c4c7aSAndroid Build Coastguard Worker    // See: http://go/android-license-faq
4*2f2c4c7aSAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
5*2f2c4c7aSAndroid Build Coastguard Worker}
6*2f2c4c7aSAndroid Build Coastguard Worker
7*2f2c4c7aSAndroid Build Coastguard Worker// Main target used for VTS tests.
8*2f2c4c7aSAndroid Build Coastguard Workerpython_test {
9*2f2c4c7aSAndroid Build Coastguard Worker    name: "vts_kernel_net_tests",
10*2f2c4c7aSAndroid Build Coastguard Worker    stem: "kernel_net_tests_bin",
11*2f2c4c7aSAndroid Build Coastguard Worker    srcs: [
12*2f2c4c7aSAndroid Build Coastguard Worker        "*.py",
13*2f2c4c7aSAndroid Build Coastguard Worker    ],
14*2f2c4c7aSAndroid Build Coastguard Worker    libs: [
15*2f2c4c7aSAndroid Build Coastguard Worker        "scapy",
16*2f2c4c7aSAndroid Build Coastguard Worker    ],
17*2f2c4c7aSAndroid Build Coastguard Worker    main: "all_tests.py",
18*2f2c4c7aSAndroid Build Coastguard Worker    version: {
19*2f2c4c7aSAndroid Build Coastguard Worker        py3: {
20*2f2c4c7aSAndroid Build Coastguard Worker            embedded_launcher: true,
21*2f2c4c7aSAndroid Build Coastguard Worker        },
22*2f2c4c7aSAndroid Build Coastguard Worker    },
23*2f2c4c7aSAndroid Build Coastguard Worker    test_config: "vts_kernel_net_tests.xml",
24*2f2c4c7aSAndroid Build Coastguard Worker    test_suites: [
25*2f2c4c7aSAndroid Build Coastguard Worker        "vts",
26*2f2c4c7aSAndroid Build Coastguard Worker        "general-tests",
27*2f2c4c7aSAndroid Build Coastguard Worker    ],
28*2f2c4c7aSAndroid Build Coastguard Worker}
29*2f2c4c7aSAndroid Build Coastguard Worker
30*2f2c4c7aSAndroid Build Coastguard Worker// Main target used for GKI tests.
31*2f2c4c7aSAndroid Build Coastguard Worker// equivalent to above, but has 'gki.IS_GKI == True'
32*2f2c4c7aSAndroid Build Coastguard Workerpython_test {
33*2f2c4c7aSAndroid Build Coastguard Worker    name: "gki_kernel_net_tests",
34*2f2c4c7aSAndroid Build Coastguard Worker    stem: "kernel_net_tests_bin",
35*2f2c4c7aSAndroid Build Coastguard Worker    srcs: [
36*2f2c4c7aSAndroid Build Coastguard Worker        "*.py",
37*2f2c4c7aSAndroid Build Coastguard Worker    ],
38*2f2c4c7aSAndroid Build Coastguard Worker    libs: [
39*2f2c4c7aSAndroid Build Coastguard Worker        "scapy",
40*2f2c4c7aSAndroid Build Coastguard Worker    ],
41*2f2c4c7aSAndroid Build Coastguard Worker    main: "all_tests_gki.py",
42*2f2c4c7aSAndroid Build Coastguard Worker    version: {
43*2f2c4c7aSAndroid Build Coastguard Worker        py3: {
44*2f2c4c7aSAndroid Build Coastguard Worker            embedded_launcher: true,
45*2f2c4c7aSAndroid Build Coastguard Worker        },
46*2f2c4c7aSAndroid Build Coastguard Worker    },
47*2f2c4c7aSAndroid Build Coastguard Worker    test_config: "vts_kernel_net_tests.xml",
48*2f2c4c7aSAndroid Build Coastguard Worker}
49