• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2019 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Separate asuite_metrics and asuite_cc_client libs to different tests, due to asuite_cc_client
16// also include asuite_metrics and other needed python files, in order to make sure asuite_metrics
17// tests result is accurate, separate them to two different test modules.
18
19// For testing asuite_metrics python2 libs
20package {
21    default_applicable_licenses: ["Android-Apache-2.0"],
22}
23
24// For testing asuite_metrics python3 libs
25python_test_host {
26    name: "asuite_metrics_lib_tests",
27    main: "asuite_lib_run_tests.py",
28    pkg_path: "asuite_test",
29    srcs: [
30        "asuite_lib_run_tests.py",
31        "asuite_metrics_test.py",
32    ],
33    libs: [
34        "asuite_metrics",
35    ],
36    test_options: {
37        unit_test: true,
38    },
39    defaults: ["atest_lib_default"],
40}
41
42// For testing asuite_cc_client python3 libs
43python_test_host {
44    name: "asuite_cc_lib_tests",
45    main: "asuite_lib_run_tests.py",
46    pkg_path: "asuite_test",
47    srcs: [
48        "asuite_lib_run_tests.py",
49        "asuite_cc_client_test.py",
50    ],
51    libs: [
52        "asuite_cc_client",
53    ],
54    test_options: {
55        unit_test: true,
56    },
57    defaults: ["atest_lib_default"],
58}
59