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 15python_defaults { 16 name: "treble_build_default", 17 pkg_path: "treble", 18 version: { 19 py2: { 20 enabled: false, 21 }, 22 py3: { 23 enabled: true, 24 }, 25 }, 26} 27 28python_test_host { 29 name: "treble_build_test", 30 main: "test.py", 31 defaults: ["treble_build_default"], 32 srcs: [ 33 "sandbox/nsjail.py", 34 "sandbox/nsjail_test.py", 35 "sandbox/overlay.py", 36 "sandbox/overlay_test.py", 37 "test.py", 38 "sample_test.py", 39 ], 40 test_config: "test.xml", 41 test_suites: ["general-tests"], 42} 43