blob: 92bf41a013ab8ceede16250f3f2ab20ea796be64 [file] [log] [blame]
// Copyright (C) 2020 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// The below module creates a standalone zip that end-to-end tests can depend
// on for running the suite. This is a workaround since we can't use csuite.zip
// which is defined in an external Makefile that Soong can't depend on.
//
// Besides listing jars we know the launcher script depends on which is
// brittle, this is a hack for several reasons. First, we're listing our
// dependencies in the tools attribute when we should be using the 'srcs'
// attribute. Second, we're accessing jars using a path relative to a known
// artifact location instead of using the Soong 'location' feature.
//
// Normally we would just use java_genrule_host to avoid these hacks but can't
// do that since Soong currently complains when a python_host_test depends on
// that target since, although compatible, the arch variants (x86_64 and
// common) don't exactly match.
python_library_host {
name: "csuite_test",
srcs: [
"csuite_test.py",
],
defaults: [
"csuite_python_defaults",
],
}