• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2020 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// The below module creates a standalone zip that end-to-end tests can depend
16// on for running the suite. This is a workaround since we can't use csuite.zip
17// which is defined in an external Makefile that Soong can't depend on.
18//
19// Besides listing jars we know the launcher script depends on which is
20// brittle, this is a hack for several reasons. First, we're listing our
21// dependencies in the tools attribute when we should be using the 'srcs'
22// attribute. Second, we're accessing jars using a path relative to a known
23// artifact location instead of using the Soong 'location' feature.
24//
25// Normally we would just use java_genrule_host to avoid these hacks but can't
26// do that since Soong currently complains when a python_host_test depends on
27// that target since, although compatible, the arch variants (x86_64 and
28// common) don't exactly match.
29
30package {
31    default_applicable_licenses: ["Android-Apache-2.0"],
32}
33
34python_library_host {
35    name: "csuite_test",
36    srcs: [
37        "csuite_test.py",
38    ],
39    defaults: [
40        "csuite_python_defaults",
41    ],
42}
43