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_binary_host { 16 name: "minijail_compile_seccomp_policy", 17 main: "compile_seccomp_policy.py", 18 srcs: [ 19 "arch.py", 20 "bpf.py", 21 "compile_seccomp_policy.py", 22 "compiler.py", 23 "parser.py", 24 ], 25 version: { 26 py2: { 27 enabled: false, 28 }, 29 py3: { 30 enabled: true, 31 }, 32 }, 33} 34 35python_test_host { 36 name: "minijail_parser_unittest", 37 main: "parser_unittest.py", 38 srcs: [ 39 "arch.py", 40 "bpf.py", 41 "parser.py", 42 "parser_unittest.py", 43 ], 44 data: [ 45 "testdata/arch_64.json", 46 ], 47 version: { 48 py2: { 49 enabled: false, 50 }, 51 py3: { 52 enabled: true, 53 }, 54 }, 55} 56 57python_test_host { 58 name: "minijail_compiler_unittest", 59 main: "compiler_unittest.py", 60 srcs: [ 61 "arch.py", 62 "bpf.py", 63 "compiler.py", 64 "compiler_unittest.py", 65 "parser.py", 66 ], 67 data: [ 68 "testdata/arch_64.json", 69 ], 70 version: { 71 py2: { 72 enabled: false, 73 }, 74 py3: { 75 enabled: true, 76 }, 77 }, 78} 79